Skip to main content
Glama

data_query

Extract, filter, or transform data from JSON, YAML, or TOML files using yq expressions for targeted data retrieval without modifying original files.

Instructions

Extract specific data, filter content, or transform structure without modification.

Use when you need to extract specific data, filter content, or transform the structure of a JSON, YAML, or TOML file without modifying it.

Output contract: Returns {"success": bool, "result": Any, "format": str, "file": str, ...}. Side effects: None (read-only). Failure modes: FileNotFoundError if file missing. ToolError if format disabled or query fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to file
expressionYesyq expression to evaluate (e.g., '.name', '.items[]', '.data.users')
output_formatNoOutput format (defaults to same as input file format)
cursorNoPagination cursor from previous response (omit for first page)

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/bitflight-devops/mcp-json-yaml-toml'

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