Skip to main content
Glama

validate_batch

Validate multiple data payloads in one call against ODGS governance rules, with optional fail-fast behavior for batch compliance checks.

Instructions

Validate multiple data payloads in a single call.

Each item should have: process_urn (str), data_context (dict), and optionally required_integrity_hash and override_token.

Args: items: List of payloads to validate. project_root: Path to ODGS project root. Defaults to $ODGS_PROJECT_ROOT or cwd. fail_fast: Stop on first failure if True.

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": {
      "items": "<items>"
    },
    "name": "validate_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
fail_fastNo
project_rootNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the per-item shape, the optional integrity-hash/override-token fields, and that fail_fast stops on the first failure. However, it never says what validation actually does (read-only check vs. mutation), whether override_token implies privileged behavior, or what happens on partial failure.

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?

Purpose is front-loaded in one sentence, followed by item shape and a compact Args block. There is minor redundancy between the prose item description and the Args entry for items, but nothing wasteful.

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?

An output schema exists, so return values need not be explained, and the inputs are well covered. For a batch validation tool with no annotations, the description is still thin on side effects, permission/override-token implications, and per-item error reporting, which an agent would want before invoking it.

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 description must compensate, and it does: it documents all three parameters plus the nested item keys (process_urn, data_context, required_integrity_hash, override_token) that the schema leaves as additionalProperties. The project_root default chain ($ODGS_PROJECT_ROOT or cwd) and fail_fast semantics are also clarified.

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?

The description gives a specific verb and resource ('Validate multiple data payloads in a single call'), making the batch nature explicit. It does not name the sibling validate_payload or state the distinction directly, but the plural/batch framing is enough for an agent to infer the difference.

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 only implied: 'multiple ... in a single call' suggests using this when validating many payloads rather than one. There is no explicit when-to-use/when-not guidance, no mention of validate_payload as the single-item alternative, and no stated prerequisites.

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