Skip to main content
Glama

ivd_attest

Mechanically verifies that an agent followed the IVD process using an intent artifact and structured attestation, returning COMPLIANT, INCOMPLETE, or VIOLATION.

Instructions

Process-attestation gate: check that the agent actually FOLLOWED the IVD method, not just that the artifact is well-formed. Takes the intent plus a structured attestation and mechanically checks Rule 1 (segmentation mandatory at 3+ constraints), Rule 2 (re-read from disk, per-constraint coverage, joint satisfaction), Rule 3 (provenance cross-check — an ai_generated-only test cannot be attested PASS; this is artifact-derived and overrides the agent's claim), and Rule 4 probe coverage. Returns COMPLIANT | INCOMPLETE | VIOLATION. Structure-only: no LLM, no network, no disk write.

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": {
      "artifact_yaml": "<artifact_yaml>",
      "attestation_yaml": "<attestation_yaml>"
    },
    "name": "ivd_attest"
  }
}

Input Schema

NameRequiredDescriptionDefault
artifact_yamlYesYAML content of the intent artifact that was implemented.
attestation_yamlYesYAML attestation: implementation_mode (segmented|single_pass), reread_from_disk (bool), constraint_status (map of constraint name -> PASS|FAIL|NEEDS_REVIEW|NEEDS_EXTERNAL_ORACLE|UNVERIFIED), joint_satisfaction, stress_test.probes_run (list).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

A4.3/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 declares determinism ('no LLM, no network, no disk write'), names the three return states, and discloses a non-obvious behavioral rule — Rule 3 is artifact-derived and 'overrides the agent's claim', so attestation input is not trusted blindly. It does not say what happens on malformed YAML or how partial/missing attestation fields are treated.

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?

Front-loaded with the identity and purpose in the first sentence, then rules, then return values and execution profile — a sensible order. The parenthetical rule summaries are dense but each carries checks the agent needs (e.g. the 3+ constraint segmentation threshold); the whole thing is moderately long but not padded.

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 two-parameter, no-annotation, no-output-schema tool, the definition covers identity, checked rules, return enum, and execution constraints, so an agent can call it correctly. Remaining gaps are error/malformed-input behavior and the explicit hand-off to a sibling for the well-formedness case it distinguishes itself from.

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 coverage is 100%, so the baseline is 3, and the description earns above that by explaining what each input is consumed for: artifact_yaml is the implemented intent, attestation_yaml supplies claims that Rule 2 (per-constraint coverage, joint satisfaction) and Rule 4 (probes_run) are mechanically checked against. Crucially it tells the agent that the attestation is evidence to be cross-checked, not a declaration that is simply accepted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource (process-attestation gate) and immediately scopes it against the obvious neighboring concept: it checks that the method was followed, 'not just that the artifact is well-formed.' That contrast is what lets an agent separate this from validation-shaped siblings like ivd_validate without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The prefix 'Process-attestation gate' plus the requirement for an already-implemented artifact makes the usage window clear: call it after implementation, before declaring an intent done. It stops short of naming an alternative (e.g. 'for structure-only validation of the artifact, use ivd_validate') and gives no explicit exclusion cases, so an agent still has to infer the boundary.

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