Skip to main content
Glama

duplicate-key-audit

Duplicate JSON object keys found in raw text, before a parser drops them — Scans raw JSON text (RFC 8259) for repeated object member names at any depth, including inside arrays and keys spelled differently but equal after unescaping ("a" vs "\u0061"), and reports each with its JSON pointer, UTF-8 byte offset, line, column and the value every occurrence carried, plus whether the values conflict. Also reports a leading BOM, unpaired surrogates, proto keys and the exact

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": {
      "text": "<text>"
    },
    "name": "duplicate-key-audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesRaw JSON text, up to 200000 characters and 64 levels of nesting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does so substantially: it discloses scanning at any depth, detection of escaped-equivalent keys, reporting of pointer/offset/line/column/conflict details, and additional BOM, surrogate, and __proto__ checks. It does not explicitly state side effects or malformed-input handling, and the final clause is truncated, but the core behavior is well described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the description is one long, densely packed sentence with nested parentheticals and an unfinished ending ('and the exact'), which reduces readability. It contains useful details, but the structure is not clean or concise.

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 one-parameter audit tool with no output schema or annotations, the description explains much of what is detected and reported, including output fields per duplicate occurrence and extra JSON issues. However, the truncation leaves the response description incomplete, and it does not explicitly cover error behavior or whether the operation is strictly read-only.

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 100%, so the single input parameter is already documented as raw JSON text with size and nesting limits. The description adds useful semantic context that the input is RFC 8259 text scanned before parsing, but does not provide additional parameter syntax or constraints beyond the schema.

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 identifies a specific verb and resource: scanning raw JSON text for duplicate object member names at any depth, including escaped-equivalent spellings. It is clearly distinguishable from a generic parser or diff tool, though it does not explicitly contrast itself with any sibling tool.

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 phrase 'before a parser drops them' implies the intended scenario: auditing raw JSON when duplicate keys must be detected before parsing. However, it gives no explicit when-to-use/when-not-to-use guidance and names no alternatives among 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