Skip to main content
Glama

ScorpTech x402 Tools

Jsonpath

jsonpath
Read-onlyIdempotent

Query JSON with JSONPath (RFC 9535): dot and bracket names, indexes, slices, wildcards, recursive descent (..) and filters with comparisons, && || !, and length() / count() / match() / search() / value() functions, e.g. $.store.book[?@.price < 10].title. Returns matched values with their normalized paths. Several queries per call. POST JSON body {json, query}. Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/jsonpath

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "json": "<json>"
    },
    "name": "jsonpath"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesJSON document to query
limitNo
queryNoJSONPath expression starting with $
queriesNoSeveral expressions at once (alternative to query)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds real value beyond that: the return shape ('matched values with their normalized paths'), batching behavior, a per-call price under x402/Solana, and an equivalent HTTPS endpoint. It stops short of stating payment setup requirements, failure/charge behavior in detail, or how the limit parameter truncates results.

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

Conciseness4/5

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

Front-loaded with purpose and a worked example, then return format, then transport and pricing — a sensible ordering. The feature enumeration is long but each item is informative for writing a query; only the closing HTTPS-endpoint sentence feels appended rather than integrated.

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?

With no output schema, the description carries the return-value burden and does so ('matched values with their normalized paths'), and it discloses cost and transport. The remaining gap is that limit (default 1000, max 10000) and truncation behavior are never explained, which matters for large documents.

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 coverage is 75%, so the baseline is already high; the description goes further by spelling out the JSONPath grammar (dot/bracket names, indexes, slices, wildcards, recursive descent, filters, function extensions) that the schema only gestures at with 'JSONPath expression starting with $'. It also clarifies the multi-query capability that maps to the queries parameter. The limit parameter is not mentioned in the description.

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 and resource ('Query JSON with JSONPath (RFC 9535)') and enumerates the supported syntax features, so the agent knows exactly what the tool does and can distinguish it from siblings like json_diff, json_patch, or xml_xpath. The cited example expression makes the capability concrete.

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?

The description implies the use case (extracting values from a JSON document via path expressions) and notes that several queries can be run per call, but it never states when to prefer this over siblings such as json_to_types or schema_validate, nor any exclusions or prerequisites beyond the payment note. Usage is inferable rather than guided.

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.

Resources