Skip to main content
Glama

validate_payload

Validates data payloads against ODGS governance rules and returns pass/fail verdicts with violations, warnings, and S-Cert audit data for compliance checks.

Instructions

Validate a data payload against ODGS governance rules.

Runs the payload through the Sovereign Validation Engine and returns a pass/fail verdict with violations, warnings, and S-Cert audit data.

Args: process_urn: Governance context URN (e.g., "urn:odgs:process:aml_check"). data_context: The data payload to validate (key-value pairs). project_root: Path to ODGS project root. Defaults to $ODGS_PROJECT_ROOT or cwd. required_integrity_hash: Optional sovereign handshake hash for tamper detection. override_token: Optional token to override SOFT_STOP rules.

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": {
      "process_urn": "<process_urn>",
      "data_context": "<data_context>"
    },
    "name": "validate_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
process_urnYes
data_contextYes
project_rootNo
override_tokenNo
required_integrity_hashNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A3.6/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 useful traits: it runs against the Sovereign Validation Engine, returns violations/warnings/S-Cert audit data, and the two optional params enable tamper detection and SOFT_STOP overrides. It does not say whether validation writes an audit record or otherwise has side effects, what permissions are needed, or whether the tool is read-only, which for an operation producing 'S-Cert audit data' is a meaningful gap.

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 summary sentence and return-value sentence are front-loaded, and the Args block is justified given 0% schema coverage. There is minor redundancy in restating defaults that already appear in the schema, but nothing is padded or off-topic.

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 5-parameter tool with a nested object payload, the description covers every parameter's role and the verdict shape, and an output schema exists so return details are not required. The one unresolved area is side effects and permissions around audit data generation, which an agent would need before calling in a sensitive governance path.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the Args block is doing real work: it gives a concrete URN example for process_urn, explains that data_context is key-value pairs, documents the project_root resolution order ($ODGS_PROJECT_ROOT then cwd), and clarifies the purpose of required_integrity_hash and override_token. The remaining weakness is that accepted token/hash formats and expected key-value structure are not specified.

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 a data payload against ODGS governance rules') and names the engine plus the verdict shape returned. It stops short of distinguishing itself from the close sibling validate_batch, so an agent cannot tell from the description which one handles a single payload versus many.

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?

Usage is implied by the nature of the operation and the mention of override_token for SOFT_STOP rules gives a hint about when an override path is relevant. However, there is no explicit when-to-use or when-not-to-use statement, and no routing against validate_batch, conformance_check, or check_drift, which appear to be adjacent validation surfaces.

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