oxml-mcp
v0.0.16XML tools for agents: XPath queries, inspection, and schema validation in Rust.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
xml_check
Check whether a document is well-formed, and report the line and column if it is not.
| Parameter | Type | Description |
|---|---|---|
xml * | string | The XML document |
xml_format
Format an XML document with configurable indentation (spaces) and empty element style, or minify it. Use this to pretty-print or compact XML.
| Parameter | Type | Description |
|---|---|---|
xml * | string | The XML document |
empty_elements | string | null | Empty element style: 'self-closing' (`<a/>`), 'spaced' (`<a />`), or 'expanded' (`<a></a>`). Default is 'self-closing'. |
indent | integer | null | Spaces per indentation level (e.g. 2 or 4). Set to 0 or omit to minify without extra whitespace. |
xml_inspect
Summarise a document's structure: element counts, depth, the element names present, and the namespaces it uses. Use this to understand a document's shape before querying it.
| Parameter | Type | Description |
|---|---|---|
xml * | string | The XML document |
xml_query
Evaluate an XPath 1.0 expression against an XML document and return the matching values. Use this instead of reading a large document into context.
| Parameter | Type | Description |
|---|---|---|
xml * | string | The XML document |
xpath * | string | An XPath 1.0 expression |
namespaces | object | Namespace prefixes used in the expression, mapping prefix to URI, e.g. {"m": "urn:example"}. A prefix must be bound here; it is not read from the document. Call xml_inspect to see which namespaces a d… |
xml_validate
Validate an XML document against an XML Schema (XSD). Returns every violation with the path to the element it concerns.
| Parameter | Type | Description |
|---|---|---|
xml * | string | The XML document |
xsd * | string | The XML Schema |