Skip to main content
Glama

acr_run_assertions

Run deterministic assertion checks on an agent run to validate schemas, detect secret leaks, verify tool idempotency, and confirm grounding.

Instructions

Run deterministic assertion checks (schema validation, secret leaks, tool idempotency, grounding).

Args: run_id: The UUID or string ID of the agent run.

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": {
      "run_id": "<run_id>"
    },
    "name": "acr_run_assertions"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It says the checks are 'deterministic' but never states whether this mutates the run, requires authentication or specific run states, or has rate/latency implications. The output schema does cover the return shape, which limits the damage.

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?

Two compact elements: a one-line purpose enumerating the checks, then the argument note. Front-loaded and free of filler, though the 'Args:' block is a thin wrapper around a single parameter.

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 output schema removes the need to explain return values, and the single parameter is named and typed in prose. Still missing is the surrounding workflow context an agent needs: when in the run lifecycle to invoke it, and whether the checks are read-only observations or gate-enforcing actions.

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 0% and the schema only labels the field 'Run Id'. The description compensates partially by stating it accepts a UUID or string ID, which is real added meaning, but it does not say how to obtain a run_id or what happens if the ID is invalid.

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?

Names a specific verb (run) and resource (assertion checks) and enumerates the check categories: schema validation, secret leaks, tool idempotency, grounding. That distinguishes it from diagnostic siblings like acr_diagnose_failure or acr_check_deadlock, though it never explicitly contrasts with them.

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?

No guidance on when to run assertions versus using acr_get_run_trace or acr_diagnose_failure, no stated prerequisites (e.g., must the run be finished?), and no exclusions. The agent must infer that this is a post-run verification step.

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