Skip to main content
Glama

Set secret

set_secret
Destructive

Set or unset one app secret {app, key, value}: a string value sets it (names use uppercase letters, digits and _, at most 64 characters, at most 50 secrets per app, reserved names refused; encrypted at rest, never shown again), null unsets it. Applies on the next deploy. Owner only; secret names are listed by open_app {include: ["secrets"]}.

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": "<app>",
      "key": "<key>",
      "value": "<value>"
    },
    "name": "set_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app slug.
keyYesWorker-env name: uppercase letters, digits and `_`, at most 64 characters; platform-reserved names refused.
valueYesThe secret value (at most 4 KiB). Encrypted at rest, never shown again. Required: pass a string to set, null to unset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the supplied annotations (destructiveHint=true, idempotentHint=false) by disclosing concrete limits (64-char names, 50 secrets per app, reserved names refused), encryption at rest, that values are never shown again, and that changes only take effect on the next deploy. 'Owner only' and the overwrite-capable 'set' semantics are consistent with destructiveHint=true, not contradictory.

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?

A single dense sentence with the core action first, followed by constraints and the deploy/permission caveats. Parenthetical clauses are information-bearing; there is no filler to cut.

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?

With no output schema and a fully documented 3-parameter schema, everything an agent needs is present: mutation semantics, limits, auth requirement, effect timing, and how to discover existing secret names. Nothing material is missing for correct invocation.

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 already 100%, so the baseline is 3; the description adds real value by spelling out the string-vs-null polarity of `value` and the naming constraints on `key`. It does not add much about `app` beyond what the schema says, keeping it from a 5.

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?

States the specific verb pair (set/unset), the exact resource (one app secret), and enumerates the three fields involved. It also separates the set path (string value) from the unset path (null), so the agent knows exactly what operation it is performing.

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

Usage Guidelines4/5

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

Explains how to unset (pass null) versus set, states a prerequisite ('Owner only'), and routes secret-name listing to a named sibling, open_app {include: ["secrets"]}. It lacks an explicit 'do not use when...' exclusion, but the operational context is clear.

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.