Skip to main content
Glama

mechacut

xml_to_json

XML to JSON where the conversion rules are PRINTED IN THE RESPONSE (every other converter takes six decisions silently). attributes=@name, mixed text=#text, empty=null, repeated siblings=array, and force_array pins a path to array at cardinality 1 β€” the one-item bug that passes tests with three fixtures and throws in production with one. Namespace prefixes kept raw; DTD refused by name (no XXE surface ever); coerce=true converts only unambiguous numbers β€” 00713 stays a string, because it is an identifier. Free under 32 KB (🟑).

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": {
      "xml": "<xml>"
    },
    "name": "xml_to_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesdocument text
coerceNo
force_arrayNoslash paths, e.g. "catalog/book" β€” always arrays

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

With zero annotations, the description carries the full burden and does so: attribute mapping (@name), mixed content (#text), empty handling (null), repeated-sibling arrays, force_array cardinality behavior, raw namespace prefixes, DTD refusal with the security rationale ('no XXE surface ever'), and the coerce numeric rule with the 00713 identifier example. It also discloses cost ('Free under 32 KB') and that the applied rules appear in the response, which is exactly the behavioral context an agent cannot get from structured fields.

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 and almost every clause conveys a real rule, but the paragraph is over-packed with editorializing that does not help an agent call the tool ('the one-item bug that passes tests with three fixtures and throws in production with one') plus an emoji cost marker. Parenthetical asides and a single run-on block make it denser than needed.

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 3-parameter, no-annotation, no-output-schema tool, the description covers transformation semantics, safety posture, and cost, which is most of what an agent needs. Gaps remain on failure behavior (malformed XML, oversized input) and on the shape of the emitted 'printed rules', so it is not fully self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description adds real meaning for the two undocumented-by-necessity parameters: coerce converts only 'unambiguous numbers' with a concrete counterexample, and force_array 'pins a path to array at cardinality 1'. The required 'xml' parameter is left as bare 'document text' in the schema and is not elaborated here, which keeps it from a 5.

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 opening clause names a specific verb and resource ('XML to JSON') and adds a distinctive trait ('conversion rules are PRINTED IN THE RESPONSE'). It differentiates against generic converters rather than any named sibling, but no sibling in the list is an XML-side converter, so an agent can place it confidently.

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 context is implied by 'every other converter takes six decisions silently' and by the 'Free under 32 KB' pricing note, which hints at a cost boundary for choosing this call. There is no explicit when-to-use / when-not statement, no mention of what happens above 32 KB, and no named alternative to pick instead.

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.