Skip to main content
Glama

Validate a message against its XSD

askiso_validate

Validates ISO 20022 XML against the XSD schema named by its namespace, checking element order, cardinality, patterns, lengths and enums; names the missing schema set to install.

Instructions

Validate an ISO 20022 message against the schema its namespace names. This is full XSD validation -- element order, cardinality, patterns, lengths, enumerations -- performed in Go, with no external tools.

Needs the ISO 20022 schemas the user downloaded from iso20022.org. If none are installed the tool says so and names the message set to download.

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": {
      "xml": "<xml>"
    },
    "name": "askiso_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesThe full ISO 20022 XML message.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.8

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that validation is full XSD (order, cardinality, patterns, lengths, enumerations), runs in Go without external tools, and reports a specific actionable message when schemas are missing. The remaining gap is that it doesn't say what a result looks like (pass/fail flag versus a list of errors, whether it stops at the first error).

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?

Three short sentences, front-loaded with what the tool does and then the precondition. Every sentence carries information (scope, mechanism, prerequisite, failure path); nothing is padded or repeated.

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?

For a single-parameter validation tool with no output schema and no annotations, the definition covers purpose, mechanism, and the schema-installation prerequisite that would otherwise cause a confusing failure. Only the shape of the validation result is left unspecified, which is a minor omission given no output schema is declared.

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?

Only one parameter and schema description coverage is 100%, so the schema already explains that 'xml' is the full ISO 20022 message. The description adds no syntax or formatting guidance beyond that, which is the baseline expectation when the schema does the work.

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 ('Validate an ISO 20022 message') plus the mechanism (schema selected by the message's namespace). It does not distinguish itself from plausible siblings like askiso_lint or askiso_check_profile, so an agent still has to infer the boundary, but the core purpose is unambiguous.

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?

Implied usage is clear: call this when you want schema-level conformance of an XML message. It also states a precondition (schemas must be downloaded from iso20022.org) and the failure behavior when they are not. It never says when NOT to use it or which sibling to prefer for linting/profile checks, so guidance is contextual but incomplete.

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