Skip to main content
Glama

drift_check

Read-onlyIdempotent

Check ONE proposed action against a signed agent mandate BEFORE it happens. Returns {"verdict": "ALLOW"|"DENY", "rule": } plus a report with a ledger fingerprint.

Six rules run in a fixed order, so a refusal names the most important reason rather than an incidental one: amount, payee, audience, currency, window, intent. Anything unclassified is DENY.

Use immediately before any action that spends money, moves a credential or changes state on someone else's behalf.

Do NOT use to: verify mandate signatures (AP2 does that, and this server runs after signature verification), execute the action (it only decides), or certify that an intent is truthful — "intent" arrives from the agent and is untrusted input. An agent that lies within its limits still leaves a ledger entry; proving what really happened is attest's job, not this one's.

Amounts are integer minor units (cents), never floats. Window bounds are inclusive. Fully idempotent: the same inputs always give the same verdict and the mandate is never mutated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesThe action being proposed.
mandateYesThe signed authority being enforced. Treat as read-only input.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly/idempotent/non-destructive): deny-by-default for anything unclassified, fixed rule ordering so refusals name the most important reason, inclusive window bounds, integer minor units only, and the explicit warning that 'intent' is untrusted agent input. It also clarifies the mandate is never mutated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads purpose, then usage, then exclusions, then numeric conventions. Every sentence carries decision-relevant information; nothing is filler despite the length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still tells the agent what comes back (verdict, rule name, report with ledger fingerprint). Combined with the nested 2-parameter schema and full annotation coverage, an agent has everything needed to call it correctly.

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; the description adds real semantics on top — amounts are integer minor units never floats, window bounds are inclusive, and the mandate must be treated as read-only input. It doesn't add per-field syntax beyond that, so it stops short of a 5.

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 specific verb+resource+scope: check ONE proposed action against a signed agent mandate BEFORE it happens. It even specifies the return shape (verdict/rule plus a report with a ledger fingerprint) and the fixed six-rule order, so the agent knows exactly what this tool decides.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('immediately before any action that spends money, moves a credential or changes state on someone else's behalf') and three explicit exclusions with named alternatives: signature verification belongs to AP2, execution is not this tool, truthfulness certification belongs to attest.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources