Skip to main content
Glama

create_secret

Creates an encrypted tenant secret for referencing as secret_ref in API tools, MCP servers, and trigger callbacks; save the plaintext before submitting because it is not returned.

Instructions

Create an encrypted tenant secret. Save its value before submitting; plaintext is not returned afterward. Reference its name as secret_ref in API tools, MCP servers and trigger callbacks. Names starting with platform/ are reserved.

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
nameYesUnique tenant secret name, such as ERP_API_KEY or CRM_WEBHOOK_TOKEN
valueYesValor plaintext a ser criptografado (ex: a API key ou o token)
categoryNoSecret category, for organization only; database is a legacy categoryapi
usage_hintNoInformational usage hint, such as bearer_token, api_key, password or oauth_client. Does not change runtime behavior.
descriptionNoDescription of the secret purpose

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.2.4
    • changedInput schema / properties / category / description
      Previous value: -"Categoria do secret"New value: +"Secret category, for organization only; database is a legacy category"
    • changedInput schema / properties / description / description
      Previous value: -"Descrição do uso do secret"New value: +"Description of the secret purpose"
    • changedInput schema / properties / name / description
      Previous value: -"Nome do secret (ex: \"ZIGMA_API_KEY\", \"DB_PASSWORD_PROD\"). Deve ser único por tenant."New value: +"Unique tenant secret name, such as ERP_API_KEY or CRM_WEBHOOK_TOKEN"
    • changedInput schema / properties / usage_hint / description
      Previous value: -"Dica de uso para desenvolvedores. Valores recomendados: \"bearer_token\", \"api_key\", \"password\", \"connection_string\", \"oauth_client\". Puramente informativo — não afeta comportamento."New value: +"Informational usage hint, such as bearer_token, api_key, password or oauth_client. Does not change runtime behavior."
    • changedInput schema / properties / value / description
      Previous value: -"Valor plaintext a ser criptografado (ex: a API key, senha do banco)"New value: +"Valor plaintext a ser criptografado (ex: a API key ou o token)"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent write. The description adds the crucial behavior beyond that: the plaintext is not returned after submission, which tells the agent this is effectively write-once with an irreversible loss window. It does not state what happens if a duplicate name is submitted, which matters given idempotentHint=false, but the disclosure it does provide is high-value.

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 action, then the loss warning, then downstream usage, then the naming constraint. No filler and nothing repeated from 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 five-parameter mutation tool with no output schema, the description covers the essential surprises: write-once plaintext, downstream reference semantics, and reserved names. Missing only the duplicate-name/error behavior, which would round out an otherwise complete picture.

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 real meaning: the name is not just a label but the identifier used as secret_ref elsewhere, and names with a platform/ prefix are reserved. Those are constraints an agent cannot infer from the schema alone.

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 ("Create an encrypted tenant secret") and immediately characterizes what makes it distinct — an encrypted secret whose name becomes a secret_ref for API tools, MCP servers and triggers. That scope distinguishes it from sibling creators like create_api_key or create_mcp_server, which create other resource types.

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?

Gives clear operational context: save the value before submitting, and reference the name as secret_ref in API tools, MCP servers and trigger callbacks. It also flags a naming exclusion (platform/ prefix is reserved). It stops short of saying when to choose this over create_api_key for credential storage, so routing between sibling creation tools is left partly implicit.

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