Skip to main content
Glama
credential-use-mcp

credential-use-mcp

by aorizondo

Add a credential (the user confirms)

cred_add

Store a new password, token, or API key through a prefilled form the user reviews and submits. Omit the secret so the user types it; nothing is stored until submission.

Instructions

Store a new password, token or API key. Everything you pass comes prefilled in a form or page the user checks, edits and submits; nothing is stored until then. Without secret the user types it, so you never see it: do that whenever a task needs a secret the user has not stored, and never ask for one in the chat. Pass secret only when you already have it (you generated it, or the user gave it to you). You get public metadata back; then use the credential through proxy_open.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cred_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoWhere it is used, e.g. https://api.github.com (needed for proxies)
kindNoProposed kind
nameNoProposed name (e.g. github, stripe-prod). Asked if omitted.
notesNoProposed notes
headerNoHeader name for an API key, e.g. x-api-key
secretNoProposed secret, only if you already have it; shown to the user to check
usernameNoProposed username

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only tell us this is a non-read-only, non-destructive, closed-world write. The description adds real behavioral context: nothing is persisted until the user edits and submits the prefilled form, and the return value is public metadata only. That confirmation gate is exactly the kind of trait annotations cannot express.

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?

Front-loaded with the action, then the confirmation model, then the secret rule, then the exit path. Colon-joined clauses keep it dense without wasted sentences, and the most safety-critical instruction (never ask for a secret in chat) lands early.

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 an optionally-parameterized create tool with no output schema, this covers everything an agent needs: the human-in-the-loop confirmation, the secret-handling rule, what comes back (public metadata), and how to use the credential afterward via proxy_open.

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 coverage is 100%, so all seven parameters are already documented, and the baseline is 3. The description still adds consequence-level meaning to `secret` — omitting it routes input through the user so the agent never sees the value — but it does not touch url, kind, header or username, which are the fields that drive proxy_open behavior.

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?

Opens with a specific verb and resource: "Store a new password, token or API key." That distinguishes it from cred_edit, cred_reveal and cred_remove without needing their schemas, and the human-confirmation clause immediately sets it apart from a silent write.

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?

Gives explicit when-to-use and when-not-to guidance: omit `secret` when the task needs a secret the user hasn't stored, pass it only when you already have it, and never ask for a secret in chat. It also names the follow-up path (proxy_open) for actually using the credential, so the agent knows the next step.

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