Skip to main content
Glama

JSON MCP Boilerplate

json_extract

Extract specific data from JSON files using paths, filters, patterns, or slices to retrieve targeted values, filter by conditions, or transform JSON elements for focused analysis.

Instructions

Extract specific data using paths, filters, patterns, or slices from JSON files. Always use this tool when you need to retrieve particular values, filter arrays/objects by conditions, search for patterns, or slice data. Ideal for targeted data extraction, data transformation, and focused analysis of specific JSON elements.

Input Schema

NameRequiredDescriptionDefault
default_valueNoFallback if path not found
endNoArray slice end index
file_pathYesPath to the JSON file
filterNoJS condition to filter results (e.g., 'item.age > 18')
keysNoSpecific object keys to extract
pathNoDot notation path to target
patternNoRegex pattern to search for
search_typeNoWhat to search when using pattern
startNoArray slice start index

Input Schema (JSON Schema)

{ "properties": { "default_value": { "description": "Fallback if path not found" }, "end": { "description": "Array slice end index", "type": "number" }, "file_path": { "description": "Path to the JSON file", "type": "string" }, "filter": { "description": "JS condition to filter results (e.g., 'item.age > 18')", "type": "string" }, "keys": { "description": "Specific object keys to extract", "items": { "type": "string" }, "type": "array" }, "path": { "description": "Dot notation path to target", "type": "string" }, "pattern": { "description": "Regex pattern to search for", "type": "string" }, "search_type": { "description": "What to search when using pattern", "enum": [ "key", "value", "both" ], "type": "string" }, "start": { "description": "Array slice start index", "type": "number" } }, "required": [ "file_path" ], "type": "object" }

Other Tools from JSON MCP Boilerplate

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/RichardFelix999/JSON-MCP-Boilerplate'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server