Skip to main content
Glama

Attach a stored secret to an app

bind_app_secret
DestructiveIdempotent

Attach a secret that is already stored in the account vault to one app, under the environment variable name the app reads, and restart the app. Call this when the user says the key already exists in Dockhold (call list_secrets to see the names), or when a second app should use the same stored value: nothing passes through your context and no value is stored again. Sharing one entry between apps means they share the value; if the user wants separate credentials per app, store a new value with set_app_secret under a distinct vault_key_name instead. This token can attach any secret on the account to any app on the account.

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": {
      "app_id": "<app_id>",
      "vault_key_name": "<vault_key_name>"
    },
    "name": "bind_app_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe environment variable name the app code reads. Defaults to vault_key_name.
app_idYesThe app id returned by list_apps
vault_key_nameYesThe stored secret's name in the account vault, as list_secrets reports it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=true, so the safety profile is covered; the description adds real context beyond that: it restarts the app, no secret value passes through the agent's context, nothing is stored again, and sharing one vault entry means apps share the value. It also discloses the broad scope of the token ('can attach any secret on the account to any app on the account'), which is genuine authorization context. It doesn't say what restart implies for uptime or what happens on failure, so not 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?

Front-loaded with the action and effect, then the when-to-use, then the alternative. Dense but every sentence carries routing or behavioral information; the closing sentence about token scope is slightly tangential yet useful for authorization reasoning.

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 3-parameter mutation tool with no output schema, the description covers trigger conditions, the alternative tool, the identity-context guarantee, the sharing semantic, and the restart side effect. An agent can call it without further clarification or risk of credential misuse.

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 the baseline is 3; the description adds meaning by explaining the conceptual split between vault_key_name (the stored entry's name, per list_secrets) and the env var name the app reads, and that sharing the vault entry shares the value. It doesn't restate the default-to-vault_key_name behavior for the optional name parameter, which stays in the schema.

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?

Specific verb+resource: attaches an already-stored vault secret to one app under the env var name the app reads, and restarts it. It explicitly distinguishes itself from set_app_secret (which stores a new value) and references list_secrets, so an agent can pick it out of the sibling set.

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?

States explicit triggering conditions ('when the user says the key already exists in Dockhold', 'when a second app should use the same stored value') and names the alternative with the condition selecting it: use set_app_secret under a distinct vault_key_name for per-app credentials. Also names list_secrets as a prerequisite lookup.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.