AI Tools
Définissez un outil LLM une fois et générez des payloads de function-calling validés pour OpenAI, Anthropic et Gemini.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'http://127.0.0.1:3003/fr/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"}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST http://127.0.0.1:3003/fr/api/tools/llm-tool-calling-json-schema-builder| Nom | Type | Requis | Description |
|---|---|---|---|
| toolName | text | Oui | — |
| toolDescription | textarea | Oui | — |
| paramsInput | textarea | Oui | — |
| strictMode | checkbox | Non | — |
| toolChoice | select | Oui | — |
Résultat HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-llm-tool-calling-json-schema-builder": {
"name": "llm-tool-calling-json-schema-builder",
"description": "Définissez un outil LLM une fois et générez des payloads de function-calling validés pour OpenAI, Anthropic et Gemini.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=llm-tool-calling-json-schema-builder",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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"
}
}
}Des questions ou un problème ? Contactez [email protected]