Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

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

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": {
      "value": "<value>"
    },
    "name": "x402-json-type"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "value"
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  3. First observed

TDQS

B3.2/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 burden, and it does disclose one meaningful behavior: string inputs are parsed as JSON before the type is determined. It also enumerates the return values, which compensates for the missing output schema. It stops short of stating error behavior for unparseable/invalid JSON or what a non-JSON string yields.

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?

The definition is a single front-loaded sentence that leads with the tool name as a label and then states the operation and return domain. The trailing free-trial promo is minor noise but does not obscure the substance.

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?

For a simple pure function this covers purpose and return values adequately, and the missing output schema is offset by the enumerated type names. However, with zero annotation coverage and no parameter documentation in the schema, the input-format and error semantics remain underspecified.

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 coverage is 0%, and the single 'value' parameter is typed only as string, so the description must clarify input format. The note that a JSON string value is parsed first is genuinely useful, but it is ambiguous whether the caller should pass raw JSON text or a quoted JSON string — the exact ambiguity an agent would hit.

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 names a specific verb and resource ('Returns the JSON type name of value') and enumerates the exact return domain (array, null, string, number, boolean, object), so an agent knows precisely what it produces. It does not, however, distinguish itself from nearby siblings such as x402-is-json (a boolean predicate) or x402-content-type, leaving the agent to infer the boundary.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus the many sibling type/validation tools, and no prerequisites or exclusions are given. The only conditional language ('a JSON string value is parsed first') describes internal behavior, not when to select this tool.

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.