Skip to main content
Glama

Secrets

secrets
DestructiveIdempotent

For reading use secrets_read, which is read-only and needs no approval: "list" here is deprecated (still works). Environment variables with secret values (API keys) per environment. action "request" (names, env, note): a link for the user to paste the values in the portal, one by one or as a .env block; prefer it whenever the user would otherwise paste a key into the chat, so the value never passes through you. "set" (name, value, env; build: true also exposes it to production builds; generate instead of value makes a random one here, e.g. a session secret, so it never passes through you; values are never shown back, so for a key that encrypts stored data use "request" instead: the owner makes the key and keeps a copy, or nothing can decrypt an export), "delete", "list" (names only; values are never shown). Preview sandboxes get preview secrets only, production gets production secrets only. Moving keys, passwords or salts found written in the code (deploy preflight and project_scan list them as secrets_in_code): ask the user once for the whole batch first; after a yes, set the ones marked generatable with generate, and use request for real third-party credentials (payment, API, mail and database passwords), which you never type; then change the code to read them from the environment. Setting one restarts nothing: a preview service gets it when restarted (service restart) or at the next wake, production when its services restart (service restart with environment production), or at its next publish or wake.

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": {
      "project": "<project>",
      "action": "<action>"
    },
    "name": "secrets"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNopreview
nameNo
noteNo
buildNo
namesNo
valueNo
actionYes
projectYesProject slug or id.
generateNoset: a random value made here instead of value (it never passes through you); "laravel" is an APP_KEY (base64:…)
idempotency_keyNoAny unique string; a repeated call with the same key has no second effect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Well beyond the annotations, it discloses that values are never shown back, that generate produces the value server-side so it never passes through the agent, that environment isolation is strict (preview secrets to preview, production to production), and precisely when a newly set secret takes effect. The restart/wake/publish timing is operational context that appears nowhere in the structured fields.

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 routing warning is correctly front-loaded, and virtually every clause carries operational information rather than filler. However, it is a dense run-on of nested parentheticals that an agent must parse carefully to separate the request, set, and delete behaviors.

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 10-parameter mutating tool with no output schema, the description covers all four actions, mutation effects on running services, environment scoping, and even the recommended migration workflow for credentials in code. There is no material gap an agent would need to guess at before invoking it.

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 only 30%, so the description must carry meaning, and it does: it explains which parameters belong to "request" (names, env, note) versus "set" (name, value, env, build, generate), what build:true does, and what generate substitutes for. It leaves idempotency_key and the project parameter unaddressed, though the schema documents both, so it falls just short of full compensation.

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 description states a concrete verb-and-resource scope: "Environment variables with secret values (API keys) per environment," and enumerates the four actions. It explicitly distinguishes itself from the sibling by opening with "For reading use secrets_read." An agent can route correctly without opening any 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?

It gives explicit when-to-use routing: prefer secrets_read for reads, "request" whenever the user would otherwise paste a key into chat, and "request" rather than "set" for keys that encrypt stored data. It also flags "list" here as deprecated but still working, and prescribes a batch-confirmation workflow for secrets_in_code. That is as close to a complete decision procedure as a description gets.

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.

Resources