Data Processing
Batch rename JSON object keys with support for patterns, rules, and transformations. Perfect for API response formatting and data normalization.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/json-key-renamer' \
-H 'Content-Type: application/json' \
-d '{"jsonInput":"{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"userAge\": 30,\n \"emailAddress\": \"[email protected]\",\n \"profile\": {\n \"profileImage\": \"avatar.jpg\",\n \"profileBio\": \"Software Developer\"\n }\n}","renameMode":"rules","renameRules":"{\n \"firstName\": \"first_name\",\n \"lastName\": \"last_name\",\n \"userAge\": \"age\",\n \"emailAddress\": \"email\",\n \"profileImage\": \"avatar\",\n \"profileBio\": \"bio\"\n}","caseConversion":"none","maxDepth":0,"includeArrays":true,"handleConflicts":"error","preserveOriginal":false}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/json-key-renamer| Name | Type | Required | Description |
|---|---|---|---|
| jsonInput | textarea | Yes | — |
| renameMode | select | Yes | — |
| renameRules | textarea | Yes | — |
| caseConversion | select | Yes | — |
| maxDepth | number | No | — |
| includeArrays | checkbox | No | — |
| handleConflicts | select | Yes | — |
| preserveOriginal | checkbox | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-json-key-renamer": {
"name": "json-key-renamer",
"description": "Batch rename JSON object keys with support for patterns, rules, and transformations. Perfect for API response formatting and data normalization.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=json-key-renamer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "json-key-renamer",
"arguments": {
"jsonInput": "{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"userAge\": 30,\n \"emailAddress\": \"[email protected]\",\n \"profile\": {\n \"profileImage\": \"avatar.jpg\",\n \"profileBio\": \"Software Developer\"\n }\n}",
"renameMode": "rules",
"renameRules": "{\n \"firstName\": \"first_name\",\n \"lastName\": \"last_name\",\n \"userAge\": \"age\",\n \"emailAddress\": \"email\",\n \"profileImage\": \"avatar\",\n \"profileBio\": \"bio\"\n}",
"caseConversion": "none",
"maxDepth": 0,
"includeArrays": true,
"handleConflicts": "error",
"preserveOriginal": false
}
}
}Questions or issues? Contact [email protected]