Skip to main content
Glama

tomlquery

Extract specific values from TOML files using dot-notation queries to save tokens and avoid loading entire files. Supports nested keys, array indices, and wildcards for precise data retrieval.

Instructions

Query a TOML file using dot-notation paths without loading the entire file into context. Supports nested keys (a.b.c), array indices ([0], [-1] for last), and wildcards ([] for all elements). Examples: "dependencies.react", "tool.poetry.name", "servers[0].host", "servers[].role". Returns the matched value with its type. Objects and arrays are pretty-printed as JSON. Use this to extract specific values from large TOML files to save tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to the TOML file
queryYesDot-notation query path (e.g. dependencies.react, tool.poetry.name, servers[0].host)

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/knewstimek/agent-tool'

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