Skip to main content
Glama

inspect_payload

Detect and summarize JSON, XML, SOAP, or plain-text payloads to identify structure; returns JSON field paths and XML root elements without fetching URLs.

Instructions

Detect and summarise a JSON, XML, SOAP or plain-text payload. Returns field paths for JSON and root element for XML. Does not fetch URLs or evaluate content.

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": {
      "payload": "<payload>"
    },
    "name": "inspect_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYes

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 disclosure burden and does a fair job: it reveals the return shape (field paths for JSON, root element for XML) and rules out network fetching and content evaluation, implying a safe read-only inspection. It omits error behavior on malformed or unrecognised payloads, input size limits, and whether the whole payload is echoed back.

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?

Three short sentences, front-loaded with the action and formats, then the return shape, then the boundaries. No filler and nothing buried.

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 one-parameter inspection tool with no output schema and no annotations, the description covers purpose, format scope, return shape and hard limits adequately. Only edge-case behavior (malformed input, oversized payloads) is left unstated, which is a minor gap.

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?

The single parameter has 0% schema description coverage, so the schema says only "string, minLength 1". The description partially compensates by implying the payload is the raw content itself rather than a URL or file path, which is the key ambiguity, but it never states the accepted encoding or whether file paths are accepted.

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?

Specific verb pair ("Detect and summarise") plus a named resource (JSON, XML, SOAP or plain-text payload), so the agent knows exactly what comes back. It does not name a sibling to contrast with, but the scope is narrow enough that confusion with list_protocols or validate_jdbc_url is unlikely.

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 negative constraints ("Does not fetch URLs or evaluate content") usefully tell the agent what input is not acceptable and what the tool will not do. However, there is no explicit statement of when to reach for this tool versus validate_jdbc_url or list_protocols, so selection still requires inference.

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