Skip to main content
Glama

x402-json-type

JSON Type: Returns the JSON type name of value as array, null, string, number, boolean or object; a JSON string value is parsed first 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.5/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 usefully discloses that string inputs are JSON-parsed first, which is non-obvious behavior an agent needs, but says nothing about what happens on malformed JSON, error responses, or whether the string is parsed once or recursively.

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?

One dense sentence that front-loads the return semantics before the parsing caveat, with no redundancy. The trailing emoji and free-trial pricing note are promotional clutter unrelated to tool selection, keeping it out of 5 territory.

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 trivial one-parameter tool with no annotations and no output schema, the description covers both the return values and the key input-handling behavior, which is nearly enough. Only the invalid-input path is left unspecified.

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 0% and the single 'value' parameter is undocumented in the schema, so the description must compensate. It does add real meaning ('a JSON string value is parsed first'), clarifying how the parameter is interpreted, but does not specify format expectations or failure modes for the input.

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?

States a specific verb ('Returns') and resource ('the JSON type name of value') and enumerates the exact possible outcomes (array, null, string, number, boolean, object), so an agent knows precisely what this produces. It does not explicitly differentiate itself from nearby siblings like x402-is-json or x402-json-validate, which would have pushed it to a 5.

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?

There is no explicit when-to-use / when-not-to-use guidance or named alternative, but the clause 'a JSON string value is parsed first' implies the intended input context (raw JSON text vs. pre-parsed values). Usage is inferred rather than directed.

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