Data Processing
Convierte entre diferentes formatos de clave-valor de objeto y manipula estructuras de objeto
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/object-key-value-converter' \
-H 'Content-Type: application/json' \
-d '{"objectInput":"Enter your object data...","inputFormat":"json","convertMode":"none","outputFormat":"json","keyCase":"none","valueCase":"none","separator":"=","sortBy":"none"}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/object-key-value-converter| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| objectInput | textarea | Sí | — |
| inputFormat | select | Sí | — |
| convertMode | select | Sí | — |
| outputFormat | select | Sí | — |
| keyCase | select | Sí | — |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-object-key-value-converter": {
"name": "object-key-value-converter",
"description": "Convierte entre diferentes formatos de clave-valor de objeto y manipula estructuras de objeto",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=object-key-value-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "object-key-value-converter",
"arguments": {
"objectInput": "Enter your object data...",
"inputFormat": "json",
"convertMode": "none",
"outputFormat": "json",
"keyCase": "none",
"valueCase": "none",
"separator": "=",
"sortBy": "none"
}
}
}| valueCase |
| select |
| Sí |
| — |
| separator | select | Sí | — |
| sortBy | select | Sí | — |
Resultado de texto
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}¿Dudas o problemas? Contacta con [email protected]