Skip to main content
Glama

create_secret

DestructiveIdempotent

Store a named secret in the caller workspace and receive only metadata, with the plaintext never echoed. Use it to save credentials or configuration values for shared agent and human workflows.

Instructions

Store a named secret in the caller workspace. Returns metadata only; the plaintext is not echoed. Requires secret:admin.

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
nameYes
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the write/destructive/idempotent profile, and the description adds genuinely new context: the required secret:admin scope and the fact that only metadata is returned while the plaintext is never echoed. The main undisclosed behavior is overwrite semantics — idempotentHint=true together with destructiveHint=true implies re-creating an existing name may replace it, yet the description is silent on this.

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?

Three short sentences, each carrying distinct information (purpose, return behavior, authorization), with the operation stated first. No filler or redundancy.

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 two-parameter tool whose annotations and schema cover the structural side, the description supplies purpose, auth scope, and return-content expectations. It falls short only on the overwrite/replace behavior, which matters for a destructive, idempotent secret store.

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 0% for both parameters, so the description must carry the load and it only partly does: 'named secret' clarifies that name is a lookup label and 'plaintext' clarifies that value is the raw secret. It adds nothing about format, encoding, size limits, or name constraints, leaving real ambiguity for a credential-writing tool.

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 a specific verb and resource ('Store a named secret') plus scope ('in the caller workspace'), which cleanly separates it from sibling write/read operations like resolve_secret, delete_secret, and revoke_secret_egress_host. An agent can identify the operation without opening 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 Guidelines3/5

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

The description gives a hard prerequisite ('Requires secret:admin') but never says when to choose this versus alternatives such as resolve_secret or delete_secret, nor what to do when a secret with that name already exists. Usage is only implied by the verb 'Store'.

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

Deploy Server

Other Tools