Skip to main content
Glama

haldir_get_secret

Retrieve a named secret using a scoped session_id so AI agents can access values only within approved permissions.

Instructions

Retrieve a secret by name. Requires a session_id that holds the secret's scope_required. Returns {value: ...}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "session_id": "<session_id>"
    },
    "name": "haldir_get_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the authorization model (session_id must hold scope_required) and the response shape, which are the two most important behaviors for a secret-read tool. It omits denial/error behavior, whether retrieval is audited, and any sensitivity caveats about handling the returned value.

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 with zero filler, and the retrieval action is front-loaded before the constraint and return shape. Slightly terse jargon ("scope_required") is used without defining it.

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 two-required-parameter read tool with no output schema, the definition is adequate: it covers purpose, the auth prerequisite, and a rough return shape. It falls short on failure modes and audit implications, which matter for secret access.

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?

Schema description coverage is 0%, so the description must compensate for two undocumented parameters. It explains session_id meaningfully as the scope-carrying credential, but only says "by name" for the name parameter — no format, casing, or naming-convention guidance.

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?

Uses a specific verb and resource ("Retrieve a secret by name"), which cleanly separates it from list-style siblings such as haldir_list_secrets. It does not, however, explicitly reference any sibling or state why this retrieval differs from other read tools like haldir_get_session.

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 prerequisite gating condition is stated — the session must hold the secret's scope_required — which tells the agent when the call can succeed. There is no explicit guidance on when to prefer or avoid this tool versus alternatives, nor what to do when the scope check fails.

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