Skip to main content
Glama

create_secret

Store a new workspace secret (UPPER_SNAKE_CASE name). Fails if the name already exists; use update_secret to rotate. The value is never returned. Use when a playbook or tool needs a new API key or credential the vault does not already hold.

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>",
      "value": "<value>"
    },
    "name": "create_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesUPPER_SNAKE_CASE name, e.g. STRIPE_SECRET_KEY
valueYesSecret value. Never echoed in the result.
connectorIdNoConnector to put the secret under, when it is one more value of an account that already has secrets (id from list_secrets). Omit to start a new connector. Refused for an integration's secret, which goes on its integration's connector.
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connectorId
      Added value: +{
      +  "description": "Connector to put the secret under, when it is one more value of an account that already has secrets (id from list_secrets). Omit to start a new connector. Refused for an integration's secret, which goes on its integration's connector.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already state that this is not read-only and is non-destructive; the description adds the failure-on-duplicate behavior, the rotation alternative, and the guarantee that the secret value is never returned. It does not cover auth requirements or connector-specific refusal behavior beyond the schema, so it is strong but not exhaustive.

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?

Four short sentences, front-loaded with the core action and followed by failure/alternative and secrecy constraints. No filler; the only mild redundancy is that the value-non-return point also appears in the schema.

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

Completeness4/5

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

For a creation tool with no output schema, the description notes duplicate failure, value secrecy, and the update_secret alternative. The nuanced connectorId rules are left to the schema, which is acceptable given the 75% schema coverage, though the description could mention connector context.

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

Parameters3/5

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

Schema coverage is 75%, so most parameters are documented structurally. The description repeats the UPPER_SNAKE_CASE name rule and value non-return behavior that already appear in the schema, and it says nothing additional about connectorId or description, so it adds little beyond 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?

The description opens with a specific verb and resource ('Store a new workspace secret') and immediately distinguishes the operation from update_secret by naming it as the rotation path. An agent can identify the scope without reading 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?

It gives an explicit usage condition ('Use when a playbook or tool needs a new API key or credential the vault does not already hold') and names update_secret as the alternative when the name already exists. This covers both when-to-use and the main when-not-to-use case.

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