Skip to main content
Glama

Create a Secret

create_secret
Idempotent

Create an org-scoped secret whose values never pass through this chat. With values "generate", Control Plane fills dictionary keys or an opaque payload with random values now. With values "user", returns a Console link prefilled with the name, type, and keys where the user types the values. No input accepts a value and no result contains one. Databases through add_database get their credentials without this tool. A workload reads a key as cpln://secret/NAME.KEY; deploy_app grants the access, grant_workload_secret_access does it for an existing workload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgNoOrganization slug.
keysNoDictionary key names. Required to generate a dictionary. For "user", prefills the Console form with these keys.
nameYesName for the new org-scoped secret. Pass the name only; names are immutable.
typeYesSecret type. Generated values support "dictionary" (one value per key) and "opaque" (one payload).
lengthNoGenerated value length in characters (default 32). Only with values "generate".
valuesYesWho supplies the values. "generate": Control Plane fills them with random values now and nobody sees them, for values nobody needs to know (database passwords, signing and session keys, internal tokens). "user": returns a Console link where the user types them, for values only the user has (third-party keys, existing credentials, certificates). Nothing is created in "user" mode until the user saves the form.
charsetNoGenerated value alphabet (default "alphanumeric", which is safe in connection strings). Only with values "generate".
descriptionNoOptional description shown on the secret.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNoThe full result. Read this, not only the summary.
detailsNo
summaryYes
nextStepsNo

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 cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), and the description adds substantial non-obvious behavior: no input accepts a value, no result contains one, the Console-link flow creates nothing until the user saves, and access must be granted separately. It does not, however, address the implication of idempotentHint=true on repeated creates with the same immutable name.

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?

Dense but front-loaded: the core guarantee (values never traverse the chat) leads, followed by mode semantics, then consumption. Individual sentences are information-rich, though the run-on closing sentence about cpln:// references and grant tools is slightly compressed.

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 an output schema present, return values need no explanation, and the description still covers the two operating modes, the secrecy invariant, what gets created when, and how the secret is subsequently consumed. Everything an agent needs to call this correctly is present.

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, but the description adds meaning beyond the schema: it explains what 'generate' vs 'user' do to the result, clarifies that keys prefill the Console form in user mode, and reinforces that names are immutable. This goes past restating the schema without fully re-documenting all 8 parameters.

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?

Opens with a specific verb+resource+scope: 'Create an org-scoped secret.' It immediately distinguishes itself from sibling secret tools by stating a defining property (values never pass through the chat), so an agent can tell it apart from rotate_secret or add_database without further reading.

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?

Gives explicit mode-selection guidance ('generate' for values nobody needs to know, 'user' for values only the user has) with concrete examples, states an exclusion (databases via add_database get credentials without this tool), and names the downstream siblings (deploy_app, grant_workload_secret_access) needed to actually consume the secret.

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.