Skip to main content
Glama

Validate input before paying

validate_input
Read-onlyIdempotent

Check an input against a listing's call spec and get the exact request to send.

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": {
      "id": "<id>",
      "input": "<input>"
    },
    "name": "validate_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=true, so safety and repeatability are covered. The description adds a genuine behavioral fact beyond them - that a successful call yields the exact request to send - but says nothing about what happens on invalid input (rejection vs. corrected output) or any external lookup implied by openWorldHint.

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?

A single tight sentence with no filler, and the action is front-loaded so the agent reads the verb and resource first. It is arguably over-compressed given the undocumented nested input object, but nothing in it is wasted.

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

Completeness2/5

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

With a required nested object, zero schema description coverage, and no output schema, the description does the bare minimum: it never explains the input object's expected structure or how validation failures surface. For a pre-payment gate where getting the payload shape wrong blocks the transaction, this leaves material gaps.

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%, so the schema supplies only types and a length cap on 'id' with no textual meaning. The description partially compensates by implying 'id' identifies a listing and 'input' is the payload to be validated, but it never explains the shape of the nested input object or what the 'call spec' constrains.

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 ('Check') plus the resource it checks against ('a listing's call spec') and names the useful output ('the exact request to send'). This is far more informative than the title alone, though it never names a sibling such as prepare_mission_step or start_purchase to draw 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 Guidelines3/5

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

Usage is only implied by the title ('before paying') and by the phrase 'a listing's call spec', suggesting it runs between picking a listing and sending a request. The description itself gives no explicit when-to-use, prerequisites (e.g. that a listing id must already exist), or when-not guidance relative to the sibling tools.

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