Skip to main content
Glama

Get audit chain head

stack_audit_chain_head
Read-only

Get the account's audit chain head: latest entry hash, total count and latest timestamp. A recorded head lets a third party later confirm, from an export, that no earlier entry was altered. 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_chain_head"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), yet the description adds real context: the three values returned and, importantly, the failure mode 'without controls the API answers 402 CONTROLS_REQUIRED'. That preconditions disclosure is exactly the kind of behavioral detail annotations cannot express.

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?

Two sentences, front-loaded with the concrete result fields before the rationale and the 402 caveat. Every clause carries information: return contents, purpose of recording, and the controls prerequisite; nothing is repeated from the title 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 carries the burden of explaining returns and does so by naming the hash, count and timestamp. The controls precondition is also disclosed. Only minor gaps remain, such as the behavior for an account with no audit entries or the hash algorithm/format.

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 tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description correctly spends no words on inputs and instead describes outputs.

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 ('Get the account's audit chain head') and enumerates the returned data: latest entry hash, total count, latest timestamp. It does not explicitly contrast itself with the sibling tools stack_audit_verify_chain or stack_audit_export, so an agent must infer the boundary between reading the head versus verifying or exporting the chain.

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 description explains why one would record a head ('lets a third party later confirm, from an export, that no earlier entry was altered'), which implies the verification workflow, but never states when to call this instead of stack_audit_verify_chain or stack_audit_export. There are no explicit exclusions or ordering guidance, leaving the choice among audit siblings to inference.

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.