Skip to main content
Glama

Convert a message between XML and JSON

askiso_convert

Convert ISO 20022 messages between XML and JSON while preserving element order to keep documents schema-valid.

Instructions

Convert an ISO 20022 message from XML to JSON or back. Element order is preserved in both directions, which matters because ISO 20022 schemas are ordered sequences and a reordered document is invalid.

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": {
      "content": "<content>"
    },
    "name": "askiso_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget format: "json" or "xml". Inferred from the content when omitted.
contentYesThe message, as XML or as JSON.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.8

TDQS

B3.3/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 it does disclose one genuinely valuable behavioral trait: element order is preserved in both directions, and reordering invalidates the document. However, it says nothing about what happens with malformed input, whether the message is validated, or whether any errors are raised, which matters for a conversion tool.

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

Conciseness5/5

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

Two sentences, no waste: the operation comes first and the ordering guarantee follows with a one-clause rationale. Every sentence earns its place.

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?

The tool is simple (two parameters, both documented) and the description covers the operation and the key correctness constraint. But with no output schema, the description should indicate what is returned (e.g., a string in the target format); that gap leaves the return shape unstated.

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 100%: both 'to' and 'content' are documented in the schema, including the inference behavior when 'to' is omitted. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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: convert an ISO 20022 message from XML to JSON or back. The bidirectional scope is clear. It does not differentiate itself from a potentially overlapping sibling such as askiso_translate, leaving the agent to infer which to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives, and no prerequisites or exclusions. The only conditional statement ('inferred from the content when omitted') is about a parameter default, not about tool selection. When-not guidance is entirely absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.