Haldir
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HALDIR_API_KEY | Yes | Haldir API key (hld_xxx) used by the MCP server to authenticate against the Haldir API. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| haldir_create_sessionA | Create a scoped Haldir session for an AI agent. Returns a session_id the agent uses for every subsequent tool call. Use spend_limit to cap the agent's total spend; scopes (e.g. ['stripe:refund', 'postgres:read']) gate which secrets and approvals it can access. |
| haldir_get_sessionB | Get a session's current state — remaining budget, scopes, TTL, validity. |
| haldir_check_permissionA | Check whether a session is authorized for a given scope. Returns {allowed: bool} — call before a risky tool to gate it. |
| haldir_revoke_sessionB | Revoke a session immediately. Idempotent; returns 404 if already gone. |
| haldir_store_secretB | Store an encrypted secret (API key, token, credential) in the Vault. AES-256-GCM with AAD binding. scope_required gates which sessions can later read it. |
| haldir_get_secretB | Retrieve a secret by name. Requires a session_id that holds the secret's scope_required. Returns {value: ...}. |
| haldir_list_secretsA | List all secret names in this tenant's vault (values never leak). |
| haldir_log_audit_actionB | Log a tool call to the audit trail. The entry is SHA-256 hash-chained and leaf-hashed into the tenant's RFC 6962 Merkle tree so it's retroactively provable. |
| haldir_query_audit_trailC | Query the audit trail. Filter by agent_id, session_id, tool, flagged. |
| haldir_get_spendB | Spend summary for an agent or session: total USD and a breakdown by tool. The question a budget owner asks. |
| haldir_verify_audit_chainA | Verify the SHA-256 hash chain end-to-end for this tenant's log. |
| haldir_get_tree_headA | 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. |
| haldir_get_inclusion_proofB | Get an RFC 6962 inclusion proof for a specific audit entry. Returns audit_path + root_hash + STH that an auditor can verify offline — no trust in the server needed. |
| haldir_get_consistency_proofB | Prove the tree of size |
| haldir_request_approvalA | Request human-in-the-loop approval for a risky action. Returns a request_id; pass that to haldir_get_approval_status, or wait for a webhook, until the status becomes 'approved' or 'denied'. |
| haldir_get_approval_statusA | Check the current status of an approval request. Takes the request_id that haldir_request_approval returned. |
| haldir_compliance_scoreA | Get the tenant's live audit-prep readiness score (0-100) with per-criterion pass/warn/fail + remediation hints. Criteria are relevant to SOC2 Trust Services Criteria (CC5.2, CC6.1, CC6.7, CC7.2, CC7.3, CC8.1) but this is NOT a SOC2 attestation. |
| haldir_build_evidence_packA | Build a signed audit-prep evidence pack for a given period. Returns JSON with all eight evidence sections + SHA-256 document signature. |
| haldir_authorize_paymentA | Authorize a payment against a session's spend_limit. Returns 403 if it would over-run the budget — use this BEFORE calling the payment provider so the governance layer gets a chance to block. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 19 tools
Each tool targets a distinct resource+action, and the descriptions draw clear lines between the easily-confused pairs (get_session vs. check_permission, get_spend vs. authorize_payment, compliance_score vs. build_evidence_pack). The only real softness is among the cryptographic audit tools (verify_audit_chain, get_tree_head, get_inclusion_proof, get_consistency_proof), where an agent must understand Merkle-log semantics to pick correctly, but the descriptions do enough work to separate them.
All 19 tools use snake_case with a uniform haldir_ prefix and a verb_noun shape (create_session, store_secret, query_audit_trail, request_approval). The single deviation is haldir_compliance_score, which drops the verb, and haldir_get_spend which reads slightly awkwardly, but the pattern is otherwise highly predictable.
19 tools is on the heavy side, but this is a multi-surface governance product (sessions, vault, audit log, Merkle proofs, spend, approvals, compliance), and nearly every tool maps to a real capability rather than a convenience wrapper. The audit-proof cluster is the only place where the count feels denser than strictly necessary.
Core lifecycle coverage is strong: sessions have create/get/revoke, secrets have store/list/get, approvals have request/status, and audit has log/query/verify plus full proof primitives. Notable gaps remain — there is no delete or rotate for secrets, no list_sessions, no list or cancel for approvals, and no way to update a session's scopes or spend_limit after creation.