Skip to main content
Glama

XSDHub XML validation

Check XML syntax

validate_xml
Read-onlyIdempotent

Check XML well-formedness. Returns bounded errors and warnings with locations; uses one validation from the daily allowance.

Input Schema

NameRequiredDescriptionDefault
xmlYesComplete UTF-8 XML text, at most 10 MiB. DTDs and entities are blocked.
max_findingsNoMaximum combined errors and warnings returned (1–100). Validation scope is unchanged.
include_guidesNoInclude guide URLs in validation results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, so the bar is lower. The description adds genuinely new context: results are bounded, findings carry locations, and each call consumes one validation from a daily allowance — a quota constraint an agent cannot learn from annotations or schema.

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 tight sentences with zero filler, and the core purpose is front-loaded ahead of the quota caveat. Every clause carries information an agent needs.

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?

With no output schema, the description correctly discloses the return shape (bounded errors and warnings with locations) and the quota cost. It stops short of explaining how findings relate to explain_validation_error or what guide URLs appear when include_guides is set, but the essentials for correct invocation are present.

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 all three parameters are already documented in the schema. The description's 'bounded errors and warnings' loosely echoes max_findings but adds no syntax or format detail beyond what the schema provides, making the baseline 3 appropriate.

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 ('Check XML well-formedness'), which is meaningfully distinct from the sibling validate_xml_against_xsd. It does not explicitly name that sibling, so the differentiation is inferable rather than stated.

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 well-formedness framing implies this is the syntax-only check to run before schema validation, but the description never says when to use it versus validate_xml_against_xsd or explain_validation_error. Usage is implied, not guided.

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