Skip to main content
Glama

get_secret

Retrieve Barbican secret metadata by ID without exposing its payload; set reveal=true to fetch the secret value when needed.

Instructions

Get a Barbican secret.

Service: Barbican (key-manager). Read-only. Does not mutate state. By default this returns metadata only: name, type, algorithm, bit length, mode, id, and expiration, plus a warning. The payload is fetched only when reveal=true. Payloads are not logged.

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": {
      "secret_id": "<secret_id>"
    },
    "name": "get_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
revealNo
secret_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares read-only behavior ('Does not mutate state'), discloses the important default that only metadata is returned, and notes that payloads are not logged. It omits permission requirements and error behavior (e.g., missing secret), which keeps it from a 5.

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?

The description is front-loaded with purpose and then structured into service context, safety, and default behavior. It is appropriately sized, though 'Read-only' and 'Does not mutate state' are slightly redundant and could be consolidated.

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?

An output schema exists, so return-value explanation is unnecessary, and the description still usefully lists the metadata fields returned by default. For a simple two-parameter read tool, it covers the essential behavioral context, with only minor gaps around auth and error handling.

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?

Schema description coverage is 0%, so the description must compensate. It gives the critical meaning for 'reveal' ('The payload is fetched only when reveal=true'), which the schema only labels as a boolean. It does not elaborate on secret_id format, but that parameter is self-evident as a required string identifier.

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 opens with a specific verb and resource ('Get a Barbican secret') and clarifies the two modes (metadata by default, payload with reveal=true). It does not explicitly distinguish this from siblings like get_secret_container or store_secret, so it falls short of a 5, but the core purpose is unambiguous.

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?

It explains the key operational choice: metadata-only by default, payload only when reveal=true. However, it offers no guidance on when to use this tool versus get_secret_container or other secret-related siblings, so usage is only implied via the tool name and description.

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

Deploy Server

Other Tools