Skip to main content
Glama

get_secret

Retrieve a secret value from the vault by key name so sensitive data stays out of conversation messages.

Instructions

Retrieve a secret value from the vault by key name. The value is returned directly in the tool result and never surfaces in conversation messages.

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

Input Schema

NameRequiredDescriptionDefault
keyYesSecret key name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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, and it does disclose one genuinely useful trait: the value appears directly in the tool result and never in conversation messages, which signals sensitive-data handling. It says nothing about permission or auth requirements, audit logging, or what happens when the key does not exist, which are significant gaps for a secrets tool with zero annotation coverage.

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 short sentences, front-loaded with what is retrieved and followed by the one behavioral fact worth knowing. Nothing is padding.

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?

For a one-parameter read tool with no output schema, the description covers what is fetched and how the value is surfaced, which is the essential return-value information. Only error/permission behavior for a missing or forbidden key is left unaddressed.

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 single parameter is fully documented in the schema ('Secret key name'), so the baseline applies. The description's 'by key name' only restates the schema and adds no detail on format, case sensitivity, or namespacing conventions.

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 ('Retrieve a secret value from the vault') plus the selector ('by key name'), so an agent knows exactly what it gets. Differentiation from set_secret and list_secrets is implicit in 'retrieve ... by key name' rather than stated, keeping it below a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, and no mention of the alternatives that matter here — e.g. use list_secrets first if the key name is unknown, or set_secret to create one. Usage is only inferable from the purpose sentence.

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