Skip to main content
Glama
SemanticDataCharter

sdcvalidator

Official

validate_and_report

Validates an XML instance against an SDC4 XSD schema and returns a detailed report separating structural and semantic errors, with optional SDC4 compliance checks.

Instructions

Validate an XML instance and return a detailed report with two-tier error classification (structural vs semantic).

Input Schema

NameRequiredDescriptionDefault
schema_pathYesPath to the SDC4 data model XSD file.
instance_pathYesPath to the XML instance file to validate.
check_complianceNoCheck schema follows SDC4 principles. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.6.1

TDQS

B3.2/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 behavioral trait beyond the name: the report uses two-tier classification (structural vs semantic). It does not say whether failures raise errors or are reported in the payload, whether the tool is read-only, or what permissions/inputs are required.

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?

A single efficient sentence with the resource and the return value front-loaded. It is arguably too terse for a tool with two competing siblings, but nothing in it is wasted.

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 schema is simple and fully documented, and there is no output schema, so the description needn't explain return values. However, for a tool sitting beside validate_instance and check_schema_compliance, the definition omits the comparison that an agent most needs to choose correctly.

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%, so all three parameters are already fully documented in the schema. The description adds no parameter-level detail (for example, what check_compliance=false actually changes in the output), so baseline 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 (validate) and resource (XML instance) plus the report it returns. It does not differentiate itself from the sibling validate_instance, which sounds functionally identical, so an agent cannot tell them apart from the description alone.

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?

There is no indication of when to use this versus validate_instance or check_schema_compliance, nor any prerequisites. The description gives no routing signal at all despite two overlapping siblings.

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