Skip to main content
Glama

verify_audit_chain

Verifies the cryptographic integrity of the audit trail by checking the SHA-256 hash chain from genesis to latest entry. Detects tampering for compliance or dispute resolution.

Instructions

Verify the cryptographic integrity of AVP's immutable audit trail.

Checks that no audit entries have been tampered with by verifying
the SHA-256 hash chain from genesis to the latest entry.

Use this before relying on audit data for compliance or dispute resolution.
For an individual agent's audit history, use get_audit_trail instead.

Read-only — no authentication required. Safe to call at any time.

Returns:
    JSON with is_valid (true/false), total_entries count, latest_hash,
    and verification timestamp. is_valid=false means tampering detected.
    Returns {"error": "..."} on network errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations are provided, so the description fully bears the burden. It discloses that the tool is read-only, requires no authentication, is safe to call anytime, and describes the return values including error handling.

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?

The description is structured with clear sections (purpose, usage, return values) and is moderately sized without unnecessary words. Minor improvement could be to further condense, but it remains effective.

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?

Given the tool's simplicity (no parameters) and the presence of an output schema, the description covers all necessary aspects: purpose, usage guidance, behavioral traits, and return values. Nothing essential is missing.

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?

The input schema has no parameters (0 params), and schema coverage is 100%. With no parameters to describe, the baseline is 4, and the description provides context about return values but adds no parameter-level details.

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?

The description uses a specific verb ('verify') and resource ('AVP's immutable audit trail'), and distinguishes from the sibling tool 'get_audit_trail' by noting that it checks chain integrity for the entire trail rather than an individual agent's history.

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?

Explicitly states when to use this tool ('before relying on audit data for compliance or dispute resolution') and provides an alternative ('For an individual agent's audit history, use get_audit_trail instead').

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/agentveil-protocol/avp-sdk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server