AI Tools
Definiere ein LLM-Tool einmal und erzeuge validierte Function-Calling-Payloads für OpenAI, Anthropic und Gemini.
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'http://127.0.0.1:3003/de/api/tools/llm-tool-calling-json-schema-builder' \
-H 'Content-Type: application/json' \
-d '{"toolName":"get_weather","toolDescription":"Get the current weather for a city. Use when the user asks about temperature, conditions, or whether it will rain today.","paramsInput":"city | string | required | City name, e.g. \"Paris\"\nunits | enum<celsius,fahrenheit> | optional | Temperature unit for the report\nforecast_days | integer | optional | Days of forecast to include (1-7)","strictMode":true,"toolChoice":"auto"}'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST http://127.0.0.1:3003/de/api/tools/llm-tool-calling-json-schema-builder| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| toolName | text | Ja | — |
| toolDescription | textarea | Ja | — |
| paramsInput | textarea | Ja | — |
| strictMode | checkbox | Nein | — |
| toolChoice | select | Ja | — |
HTML-Ergebnis
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-llm-tool-calling-json-schema-builder": {
"name": "llm-tool-calling-json-schema-builder",
"description": "Definiere ein LLM-Tool einmal und erzeuge validierte Function-Calling-Payloads für OpenAI, Anthropic und Gemini.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=llm-tool-calling-json-schema-builder",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "llm-tool-calling-json-schema-builder",
"arguments": {
"toolName": "get_weather",
"toolDescription": "Get the current weather for a city. Use when the user asks about temperature, conditions, or whether it will rain today.",
"paramsInput": "city | string | required | City name, e.g. \"Paris\"\nunits | enum<celsius,fahrenheit> | optional | Temperature unit for the report\nforecast_days | integer | optional | Days of forecast to include (1-7)",
"strictMode": true,
"toolChoice": "auto"
}
}
}Fragen oder Probleme? Kontakt: [email protected]