Skip to main content
Glama
credential-use-mcp

credential-use-mcp

by aorizondo

Read a credential's secret (the user approves each time)

cred_reveal
Read-only

Retrieve a stored secret value after user approval when a CLI flag or config file needs it directly and proxy-based API calls cannot work.

Instructions

Get a stored secret's value, after the user approves this one read (they see your reason). Use it only when the secret itself is needed (a CLI flag, a config file) and proxy_open cannot do the job; for HTTP APIs use proxy_open. Do not repeat the value in your messages or write it anywhere it is not needed.

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>",
      "reason": "<reason>"
    },
    "name": "cred_reveal"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCredential name, as in cred_list
reasonYesWhat you need it for, shown to the user

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

Annotations declare a read-only, non-destructive, non-idempotent operation, but they cannot convey that every call triggers a user approval prompt that displays the supplied reason — the description does, and that is the single most important behavioral fact about this tool. It also adds handling constraints (do not repeat the value in messages, do not write it where unneeded) that no annotation covers, and its 'each time' framing is consistent with idempotentHint=false.

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?

Three short sentences, front-loaded with the approval caveat, then routing guidance, then handling constraints — no filler and no repetition of the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with full schema coverage, existing annotations, and no output schema, the description covers what comes back (the secret value), the approval precondition, the alternative path, and safe handling. Nothing an agent needs in order to call it correctly or safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented in the schema, and the description's mention that the user sees the reason largely restates the schema's own 'shown to the user' text. The 3 baseline applies; the description adds no syntax, format, or naming detail (e.g. that name must come from cred_list) beyond what the schema supplies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first clause names a specific verb and resource — get a stored secret's value — and immediately qualifies it with the approval gate the agent must expect. It is clearly distinguishable from cred_list (listing metadata) and proxy_open (using the secret without revealing it), so an agent can select it without opening the schema.

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

Usage Guidelines5/5

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

Explicit when-to-use ('only when the secret itself is needed (a CLI flag, a config file)'), explicit when-not ('proxy_open cannot do the job', 'for HTTP APIs use proxy_open'), and it names the alternative tool by name. This is the full when/when-not/alternative triad.

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