Skip to main content
Glama
CaptainCrouton89

MCP Server Boilerplate

json_extract

Extract specific data from JSON files using paths, filters, patterns, or slices to retrieve targeted values, transform data, and analyze specific elements.

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

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

Other Tools

Latest Blog Posts

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/CaptainCrouton89/json-mcp'

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