Skip to main content
Glama

MoneyTools x402 agent toolkit

XML ↔ JSON converter

xml_json_convert
Read-onlyIdempotent

Convert XML to JSON (attributes as @_*) or JSON to XML. Pure string transform, SSRF-safe (no external entity fetch). Body ≤500 KB. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]

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

Input Schema

NameRequiredDescriptionDefault
inputYesXML text or JSON text
rootNameNowrap JSON value under this element name
directionNoxml-to-json | json-to-xml (auto)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety bar is partially met; the description then adds genuinely new behavioral facts: no external entity fetching (SSRF-safe), a 500 KB body cap, and a 10-call/day free tier followed by per-call x402 or API-key billing. That is exactly the kind of limit and cost context an agent needs before invoking, though the failure mode on oversized or invalid input is still unstated.

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?

Front-loads the purpose in the first clause, then layers safety, size limit, and billing. Every clause carries information, though the trailing pricing and host attribution add density that is peripheral to the call itself.

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

Completeness5/5

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

An output schema exists so return shapes need no explanation, all three parameters are documented in the schema, and the description closes the remaining gaps an agent would care about: safety, size ceiling, and cost before invocation. Nothing needed to call it correctly is missing.

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 description coverage is 100%, so the baseline is 3; the description earns more by specifying how XML attributes appear in JSON output (@_*), a convention that changes how callers should read results and is not in the schema. It does not clarify rootName's effect on conversion direction, leaving one parameter to the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Convert) and both resources (XML and JSON) plus the exact attribute-mapping convention (@_*) the output will use. An agent can immediately tell this apart from csv_json_convert or yaml_json_convert because the formats are named explicitly.

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?

Implies usage through the direction parameter ('xml-to-json | json-to-xml (auto)') and states it is a pure string transform with no external fetches, but never says when to prefer this over format-specific siblings or what happens on malformed input. Usage is inferable rather than stated.

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