Skip to main content
Glama

Verify audit chain

stack_audit_verify_chain
Read-only

Verify the integrity of the account's audit chain. Returns valid: true when every entry's hash matches its content and links to the previous entry; otherwise returns the first break and its reason. Reading the record is a controls feature: without controls the API answers 402 CONTROLS_REQUIRED.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stack_audit_verify_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO 8601 datetime — walk only entries up to this point
fromNoISO 8601 datetime — walk only entries from this point
limitNoMost entries to walk, 1 to 100,000. Leave out to walk the whole chain (or the whole from-to range)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish a safe read-only, closed-world operation, but the description adds real value on top: it defines the return contract (valid: true, or the first break plus its reason) and discloses a failure mode the agent would otherwise hit blind (402 CONTROLS_REQUIRED without controls). It does not mention cost or performance of walking very large chains, but the behavioral picture is substantially richer than the annotations alone.

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?

Three sentences, each earning its place: purpose, return contract, and access prerequisite. The essential function is front-loaded and nothing is repeated from the schema or annotations.

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?

With no output schema, the description correctly carries the return-shape burden and also covers the authorization prerequisite, which is the main thing an agent could get wrong. The remaining gap is minor: no guidance on how to interpret or act on a reported break, and no note on chain size or timeout behavior.

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?

All three parameters are fully documented in the schema (100% coverage) including ISO 8601 format and the 1–100,000 limit range. The description adds no parameter-level meaning beyond noting that the walk is scoped, so the baseline of 3 applies.

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: 'Verify the integrity of the account's audit chain', which an agent can distinguish from listing/exporting tools in the stack_audit_* family. It stops short of naming a sibling alternative, so the differentiation is inferable rather than explicit.

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 purpose (call it when you need to confirm the chain has not been tampered with), and the prerequisite of having controls is stated via the 402 note. There is no explicit when-to-use-versus-alternative guidance, e.g. versus stack_audit_list or stack_audit_export for inspection tasks.

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.