Skip to main content
Glama

update_secret

Idempotent

Replace a tenant secret's plaintext value with a newly encrypted value while preserving the existing secret name, so current references continue working.

Instructions

Replace a tenant secret value with a newly encrypted value. Existing references keep using the same secret name.

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": "update_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the secret to update
valueYesNew plaintext value
descriptionNoOptional new description

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.2.4
    • changedInput schema / properties / description / description
      Previous value: -"Nova descrição (opcional)"New value: +"Optional new description"
    • changedInput schema / properties / name / description
      Previous value: -"Nome do secret a atualizar"New value: +"Name of the secret to update"
    • changedInput schema / properties / value / description
      Previous value: -"Novo valor plaintext"New value: +"New plaintext value"
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds real context beyond them: the incoming value is encrypted at rest and the secret name is preserved so existing references continue to resolve. It does not mention permissions needed or what happens to the prior value, but the added disclosure is meaningful.

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?

Two short sentences with zero filler, and the core action is front-loaded ahead of the secondary guarantee about references. Nothing needs trimming and nothing important is buried.

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 simple three-parameter mutation with full schema coverage, no output schema and complete annotations, this is nearly complete. The only shortfall is the absence of any note on prerequisites or on what the caller gets back/what happens to the overwritten value.

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 100%, so all three parameters are already documented, including "New plaintext value". The description only confirms the plaintext-in/encrypted-at-rest transformation, which is helpful but marginal; baseline 3 applies when the schema carries the parameter semantics.

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 description gives a precise verb and resource ("Replace a tenant secret value") plus the scope of effect (tenant-level) and the guarantee that references keep working. It is clearly distinguishable from create_secret/delete_secret by the replace-in-place framing, though it never names a sibling.

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 reference-preservation sentence implies the intended use case (value rotation without breaking consumers), which is useful implicit guidance. There is no explicit when-to-use/when-not statement and no routing to create_secret or delete_secret for the non-rotation cases.

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