Skip to main content
Glama

ao_audit_head

Return the current audit chain head sequence and hash so it can be stored outside the vault as a tamper-evident anchor.

Instructions

Current audit chain head {seq, hash}; store it outside the vault as an anchor.

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": "ao_audit_head"
  }
}

Input Schema

NameRequiredDescriptionDefault
principalNoUser/agent id to act as (ACL + audit actor); ignored if the server pins $OMPA_PRINCIPAL
vault_pathNo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It discloses the return payload shape and implies a read-only snapshot of the current head, but it does not state ACL/permission requirements, whether the call mutates anything, or how principal and vault_path affect execution. The anchoring advice adds context, but key operational behavior remains undisclosed.

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?

The definition is a single short sentence with no filler, and the key resource plus return shape are front-loaded. The anchor storage instruction is compact and relevant.

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?

For a simple two-parameter read tool, the description provides the return shape and one intended use case. However, without annotations or an output schema, it omits enough about execution scope, acting principal, and side effects that it is not fully self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema documents principal as the acting user/agent, while vault_path has only a default and no description. The description adds no meaning for either parameter and does not explain how principal acts as an ACL/audit actor or what vault_path scopes. With only 50% schema description coverage, this leaves a real gap.

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?

The description names a specific resource, the 'audit chain head,' and its returned fields, '{seq, hash},' so an agent can recognize it as a point-in-time read. It does not explicitly use a retrieval verb or contrast with siblings such as ao_audit_verify or ao_audit_export, but the resource is distinct enough to identify the tool.

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?

The instruction to store the result outside the vault as an anchor implies a use case, but it does not explicitly say when to use this tool versus ao_audit_verify, ao_audit_export, or other audit tools. The guidance is useful but only implicitly contextual.

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