Skip to main content
Glama
GautamVhavle

Universal JSON Agent MCP

by GautamVhavle

describe

Summarizes numeric values matched by a JSONPath with count, mean, median, standard deviation, min, max, percentiles, and sum for direct JSON analysis.

Instructions

Get a full statistical summary of numeric values matched by a JSONPath.

Returns count, mean, median, standard deviation, min, max, 25th/75th percentiles, and sum — like pandas .describe() for JSON.

Args: alias: The alias of the loaded document. expression: A JSONPath expression resolving to numbers (e.g. "$.orders[*].total").

Returns: A formatted statistical summary table.

Input Schema

NameRequiredDescriptionDefault
aliasYes
expressionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the operation reads a loaded document and returns a formatted table, and that the expression should resolve to numbers, but it says nothing about permission/auth (not applicable), error behavior for empty or non-numeric matches, or whether the document alias must already be loaded.

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?

The summary sentence is front-loaded and precise, the Args block is tight, and the Returns line is short. Nothing is redundant for a tool of this size.

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

Completeness3/5

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

An output schema exists, so the Returns line is technically redundant, but the description omits the edge cases an agent needs: what happens when the JSONPath matches zero numeric values, mixed types, or an unloaded alias. That leaves a meaningful gap for a statistics tool.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: alias is explained as the loaded document's alias and expression is explained as a JSONPath resolving to numbers with a concrete example ('$.orders[*].total'). The only gap is that 'expression' does not state the expected syntax flavor or failure mode.

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

Purpose4/5

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

The description uses a specific verb and resource ('Get a full statistical summary of numeric values matched by a JSONPath') and enumerates the exact metrics returned, which distinguishes it from thin siblings like sum_values, count, and min_max. It stops short of naming those siblings explicitly, so the differentiation is inferential rather than stated.

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 phrase 'numeric values matched by a JSONPath' and by the comparison to pandas .describe(), but there is no explicit guidance on when to prefer this over sum_values/count/min_max or what to do when the path matches non-numeric or zero values.

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