Skip to main content
Glama
bicibg

Apixies MCP Server

by bicibg

json_to_xml

Read-only

Convert JSON objects into well-formed XML, with options for custom root element, attribute conversion, and XML declaration.

Instructions

Convert a JSON object to well-formed XML. Supports custom root element, attribute conversion, and XML declaration toggle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonYesJSON content to convert (must be an object)
prettyNoPretty-print XML output (default: true)
root_elementNoRoot element name (default: "root")
xml_declarationNoInclude XML declaration header (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true, so the agent knows this is a safe read/transform operation. The description adds behavioral context by mentioning 'well-formed XML', 'custom root element', 'attribute conversion', and 'XML declaration toggle', which go beyond the schema. However, it does not disclose edge-case behaviors such as how JSON arrays are handled, how attribute conversion is triggered (e.g., keys prefixed with '@'), or what happens with invalid JSON. No contradiction with annotations.

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?

The description is a single, efficient sentence that front-loads the core purpose and then lists key features. It earns its place with no filler. It could be slightly more structured (e.g., separating the core conversion from the options), but it is appropriately sized for a tool with four parameters.

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 read-only conversion tool with 100% schema coverage and no output schema, the description is mostly adequate. However, it omits important conversion details that an agent might need to predict output: how JSON arrays are converted, how attribute conversion is indicated, and whether the output is a string or a file. The sibling list includes xml_to_json, so a brief note on when to choose this over that would improve completeness.

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 schema already documents all four parameters. The description adds high-level context (custom root element, attribute conversion, XML declaration toggle) that maps to root_element, xml_declaration, and possibly json structure, but it does not add syntax-level detail beyond the schema. Baseline 3 is appropriate because the schema carries the parameter documentation burden.

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?

The description states a specific verb ('Convert'), a clear resource ('JSON object'), and the target format ('well-formed XML'). It also names three configurable features (custom root element, attribute conversion, XML declaration toggle), which distinguishes it from sibling tools like json_to_csv, yaml_to_json, and xml_to_json. The title 'Convert JSON to XML' reinforces the purpose without being a tautology.

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 description implies usage context (converting JSON to XML) but does not explicitly state when to use this tool versus alternatives like json_to_csv, yaml_to_json, or xml_to_json. It does not mention exclusions or prerequisites (e.g., input must be a JSON object, not an array). The sibling list provides context, but the description itself offers no explicit routing guidance.

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