Skip to main content
Glama

agentkit__repair

Repair malformed JSON (single quotes, unquoted keys, None, trailing commas). Price: $0.01 per call in USDC on Base (eip155:8453), paid with x402 in params._meta["x402/payment"]. HTTP: POST https://api.firstmention.uk/s/agentkit/repair

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agentkit__repair"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / required
      Removed value: -[
      -  "json"
      -]
  2. Changed3 schema fields changed
    • addedInput schema / properties / json
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / text
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / required
      Added value: +[
      +  "json"
      +]
  3. Changed2 schema fields changed
    • removedInput schema / properties / json
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / text
      Added value: +{
      +  "type": "string"
      +}
  4. Added

TDQS

B3.4/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 does disclose critical commercial behavior: cost ($0.01 USDC on Base, eip155:8453) and the required x402 payment envelope in params._meta. It omits what happens on unrecoverable input, whether repairs are lossy, and what the response contains, which for a mutation-like transformation tool are notable gaps.

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?

Purpose and repair categories are front-loaded in the first clause, followed by the commercial and transport facts. Dense and waste-free, though the raw HTTP endpoint line is of marginal use to a calling agent already invoking the MCP tool.

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 paid, unannotated, single-parameter tool with no output schema, the definition covers purpose and payment but leaves the return value, failure modes, and the undocumented _meta payment parameter ambiguous. An agent knows what it does and what it costs, but not fully how to call it or what to expect back.

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% for the single 'json' parameter, and the description never explicitly names or describes it beyond implying the input is the malformed JSON string. It does add meaning for the payment carrier params._meta['x402/payment'], though that field is not even present in the declared input schema, creating ambiguity about how to actually supply it.

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 and resource ('Repair malformed JSON') and enumerates concrete failure classes it handles (single quotes, unquoted keys, None, trailing commas), which is far more informative than the bare name. It does not, however, distinguish itself from the sibling agentkit__validate, which an agent could easily confuse with repair.

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 implied by the malformation list — use this when JSON is syntactically broken — but there is no explicit when-to-use versus agentkit__validate or agentkit__convert, and no statement about what to do when the input is already valid or cannot be repaired.

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