Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Store secret

tzcloud_store_secret
Destructive

Store a named secret, or replace it with replace: true. value must already be in this chat. Your host may record arguments. Without value or generate, nothing is stored. You get state: awaiting_value and four commands. Run command_npx (command_npx_windows on Windows) or installed command (command_windows) once as given before expires_at. Send an on-disk value with value_file, keeping it out of chat.

No tool reads stored values. Replace an existing secret without generate. Apply a replaced bound setting by deploy, promote or the tzcloud_restart_application in next. Check tzcloud_read_status for rotated_since_read.

For outside API keys, use tzcloud_declare_outbound_api's gateway. Use sdk_settings for an unchanged SDK. Bind in manifest settings only when your user requires the client's fixed host unchanged, or library source fixes it with no configurable gateway address. For that binding, declare no upstream and list its host in manifest egress.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe name to store under; it keeps the scope it was first stored with, though it may exist at both environment scopes of one application, and another scope is refused `scope_fixed`.
valueNoThe secret value, sent once and never read back. Through the MCP tool, pass it only for a value the person already put in the conversation, since a value on disk goes through the command, which never shows it to the assistant.
replaceNo`true` replaces the value of a name already in custody at this scope, and refuses a name that was never stored. `generate` is refused with it.
generateNoThe platform creates the value, one nobody chooses, such as a session signing secret. A value a sender must also hold, such as a webhook's signing secret, is never generated. A stored name refuses `secret_exists`; beside `value_file` or a value, or without `application`, `invalid_request`.
value_fileNoOn a call with no value, the local file holding the secret. Keep it outside the application's folder; delete it after the command exits 0 unless a sender needs it. Pass it because a tool cannot type into the command's prompt. `~` or a path the pattern refuses is refused `invalid_request`.
applicationNoAn application id, to hold the secret at that application's scope; omitted, the secret is held at the account scope.
environmentNoWith `application`, the environment whose scope of that application holds the secret; absent, `production`. Refused if given without `application`.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the destructive/not-readOnly annotations: warns the host may record arguments, explains that nothing is stored without value or generate, describes the awaiting_value state plus four commands, the command/expires_at execution window, and the Windows command variants. Also discloses that no tool reads stored values and that a replaced bound setting needs deploy, promote, or restart.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the text is dense and jumps between storage flow, post-store application, outbound API routing, SDK settings, and manifest egress binding. Fragments like 'Apply a replaced bound setting by deploy, promote or the tzcloud_restart_application in next' and the trailing manifest paragraph cost the reader more than they give.

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 no output schema, the description supplies the missing return-side information (awaiting_value state, the four commands, expires_at, rotated_since_read via tzcloud_read_status) and covers all usage modes of a 7-parameter destructive tool. An agent can complete the two-phase store flow from this text alone.

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 operational meaning the schema does not emphasize: value must already be in the conversation, on-disk values go through value_file to stay out of chat, and replace should not be combined with generate. Some of this overlaps the already-verbose schema descriptions, limiting it to a 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource ('Store a named secret, or replace it with replace: true') and the body names sibling destinations for related tasks (tzcloud_declare_outbound_api, sdk_settings, tzcloud_read_status). It is distinguishable from deletion/listing siblings, though later paragraphs drift into manifest-binding advice that muddies the single purpose.

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 concrete when-to-use branches: replace for existing names, generate for platform-chosen values, value_file for on-disk values, and explicit when-not guidance ('For outside API keys, use tzcloud_declare_outbound_api's gateway', 'Use sdk_settings for an unchanged SDK'). Exclusions exist but are phrased densely enough that an agent must read carefully to pick the right mode.

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