Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

extract_json_path

Read-onlyIdempotent

Extract a value from a JSON string using dot-notation path (e.g., "user.address.city", "items.0.name", "meta.tags"). Supports array index access via numeric path segments.

Input Schema

NameRequiredDescriptionDefault
pathYesDot-notation path, e.g. "user.address.city" or "items.0.name"
inputYesThe JSON to traverse — a JSON string, or the object/array itself.

Output Schema

NameRequiredDescriptionDefault
pathNo
typeNo
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "input": {
      +      "a": {
      +        "b": [
      +          {
      +            "c": 1
      +          },
      +          {
      +            "c": 2
      +          }
      +        ]
      +      }
      +    },
      +    "path": "a.b.0.c"
      +  }
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / input / description
      Previous value: -"A valid JSON string to traverse"New value: +"The JSON to traverse — a JSON string, or the object/array itself."
    • changedInput schema / properties / input / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "object",
      +  "array"
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "path": {},
      +  "type": {},
      +  "value": {}
      +}
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds useful path-syntax context (array index via numeric segments) but omits the most behaviorally relevant fact: behavior on missing paths, type coercion, or how a JSON string input is parsed versus an object input. With annotations carrying the safety burden, this lands at a moderate 3.

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

Conciseness5/5

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

Two tight sentences, front-loaded with the core action and followed by the two syntax variants that matter most. Nothing is wasted.

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

Completeness4/5

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

For a simple two-parameter read tool with a full schema and an output schema, the description covers what an agent needs to invoke it correctly. The only real omission is missing-path/edge-case behavior, which keeps it short of a 5.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented, and the description's path examples duplicate the schema's own example. No additional semantics (escaping, edge cases, root path) are provided beyond the structured fields.

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

Purpose5/5

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

States a specific verb+resource ('Extract a value from a JSON string') and immediately distinguishes itself from JSON-reshaping siblings like flatten_json or format_json by scoping to path-based traversal. The example paths make the operation unambiguous.

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

Usage Guidelines3/5

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

Usage is implied by the examples rather than stated. It never says when to prefer this over flatten_json or json_to_csv, nor what happens if the path doesn't resolve (error vs null). Adequate but with a clear gap.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.