Skip to main content
Glama

haldir_get_tree_head

Retrieves the current Signed Tree Head for a tenant’s audit log, returning tree size, root hash, timestamp, and HMAC signature so auditors can pin it and later verify inclusion proofs.

Instructions

Get the current Signed Tree Head (STH) for the tenant's audit log. Returns tree_size, root_hash, signed_at, and HMAC signature. Auditors pin the STH and demand inclusion proofs against it later.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does useful work by enumerating what is returned (tree_size, root_hash, signed_at, HMAC signature), which confirms this is a read operation yielding a signed, pinnable artifact. It does not address auth requirements, rate limits, or what the HMAC attests to, so gaps remain for a zero-annotation tool.

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?

Three short sentences, front-loaded with the action and followed by the return payload and the motivating context. Nothing is redundant, and no sentence is filler. Minor deduction because the closing sentence is contextual color rather than an operational instruction.

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?

No output schema exists, and the description compensates by listing the returned fields, which is exactly what an agent needs here. For a zero-parameter read tool this is nearly sufficient, with only auth/permission context left unstated.

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?

The tool takes no parameters, so there is no parameter semantics for the description to add. Per the zero-parameter baseline this dimension is a non-issue; scored at the neutral midpoint rather than rewarded, since nothing here can exceed baseline.

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 current Signed Tree Head (STH) for the tenant's audit log.' It also names the concrete returned fields, so an agent knows exactly what this call yields. It stops short of naming the sibling proof tools (haldir_get_consistency_proof, haldir_get_inclusion_proof) as distinct destinations, so sibling differentiation is only implied.

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 final sentence ('Auditors pin the STH and demand inclusion proofs against it later') conveys the audit-verification workflow this belongs to, which implies when to call it. However, it never explicitly says to use the sibling tools for proofs or states any prerequisite/exclusion, so the agent must infer the routing.

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