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, keys, and defaults for keys whose values are not secret, where the user types the rest. No input accepts a secret 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

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".
defaultsNoOnly with values "user" and a dictionary: starting values the form fills in for some of keys, which the user can change before saving. Only values that are not secret, such as a host, port, username, region, or mode.
descriptionNoOptional description shown on the secret.

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / defaults
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Only with values \"user\" and a dictionary: starting values the form fills in for some of keys, which the user can change before saving. Only values that are not secret, such as a host, port, username, region, or mode.",
      +  "propertyNames": {
      +    "pattern": "^[-._a-zA-Z0-9]+$"
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.