Skip to main content
Glama

tool_json_path

Extract data from JSON using JSON Path queries. Returns the matched value as a string, number, boolean, object, or array.

Instructions

[data] JSON Path

Parameters:

  • json (json): JSON

  • path (string): Path

Outputs:

  • string (string): String

  • number (number): Number

  • boolean (boolean): Boolean

  • object (json): Object

  • array (json): Array

  • type (string): Type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonNoJSON
pathNoPath
typeNoType
arrayNoArray
numberNoNumber
objectNoObject
stringNoString
booleanNoBoolean
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description only lists parameters and outputs. It does not disclose any behavioral traits such as error handling, path syntax, side effects, or return format, so an agent has no idea what to expect upon invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and uses clear section labels, making it easy to scan. However, the parameter/output lists largely repeat the schema fields, and the title contributes no functional information. It is acceptable in size but not exceptionally efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description should provide robust behavioral context, but it only offers a skeletal parameter/output list. It omits path syntax, error behavior, usage examples, and any clarification of the confusing schema, making it insufficient for reliable tool invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds some semantic value by distinguishing inputs (json, path) from outputs (string, number, boolean, object, array, type), which the flat schema does not clarify. However, it omits the other six schema properties and does not explain the path syntax or the meaning of 'type', so it only partially compensates for the schema's minimal descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is essentially a noun phrase, 'JSON Path', which merely restates the tool name. It lists json and path as parameters, but the core action (extracting a value from JSON using a path) is not explicitly stated, leaving the purpose implied rather than clearly defined.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool, when not to use it, or how it differs from sibling tools such as tool_json_format or tool_json_parse. The description offers no practical usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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/maple-awa/tool-mcp'

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