Skip to main content
Glama
Infisical MCP Server

Infisical MCP Server

Official
by Infisical

update-secret

DestructiveIdempotent

Update an existing Infisical secret's value, rename it, or change both in one call; omitted fields keep their current values.

Instructions

Change an existing secret's value, rename it, or both in one call. Fields left out keep their current value.

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": {
      "projectId": "<projectId>",
      "environmentSlug": "<environmentSlug>",
      "secretName": "<secretName>"
    },
    "name": "update-secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesThe ID of the project, from list-projects. A project slug or exact project name also works.
secretNameYesThe current name of the secret
secretPathNoThe folder path, such as "/" for the root or "/backend/api" for a nested folder. Defaults to "/".
secretValueNoThe new value. Leave out to keep the current value
newSecretNameNoSet to rename the secret. Leave out to keep its name
environmentSlugYesThe slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.0
    • changedInput schema / properties / environmentSlug / description
      Previous value: -"The slug of the environment to update the secret in (required)"New value: +"The slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works."
    • changedInput schema / properties / newSecretName / description
      Previous value: -"The new name of the secret to update (Optional)"New value: +"Set to rename the secret. Leave out to keep its name"
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID of the project to update the secret in (required)"New value: +"The ID of the project, from list-projects. A project slug or exact project name also works."
    • changedInput schema / properties / secretName / description
      Previous value: -"The current name of the secret to update (required)"New value: +"The current name of the secret"
    • changedInput schema / properties / secretPath / description
      Previous value: -"The path of the secret to update (Defaults to /)"New value: +"The folder path, such as \"/\" for the root or \"/backend/api\" for a nested folder. Defaults to \"/\"."
    • changedInput schema / properties / secretValue / description
      Previous value: -"The new value of the secret to update (Optional)"New value: +"The new value. Leave out to keep the current value"
  2. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=true, so the safety profile is structured. The description adds genuinely new behavioral detail with 'Fields left out keep their current value', clarifying partial-update semantics, but it never warns that overwriting a value is irreversible, nor does it mention permissions or effects on deployed environments — relevant given destructiveHint=true.

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?

Two short sentences, front-loaded with the action and modes, with the partial-update rule second. Nothing is padded, though the second sentence largely duplicates what the schema already says about optional fields.

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?

With a fully documented six-parameter schema, annotations covering the safety profile, and no output schema to explain, the description covers the essentials for a mutation tool. The missing piece is routing guidance versus create-secret/delete-secret and any note about irreversibility of overwrites.

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 description coverage is 100%, so every parameter is already documented in the schema, including the 'leave out to keep current value' wording for secretValue and newSecretName. The description's partial-update sentence restates that optionality rather than adding syntax or format meaning, so the baseline 3 applies.

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 names a specific verb and resource ('Change an existing secret's value, rename it') and enumerates the three supported modes, which lets an agent separate it from create-secret, delete-secret and get-secret without opening a schema. It stops short of explicitly naming siblings, but the resource+verb is unambiguous.

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 word 'existing' implies this tool is for secrets that already exist, and 'or both in one call' hints that a single call can combine rename and value change. There is no explicit when-not guidance, no pointer to create-secret for new secrets, and no stated prerequisites beyond what the schema fields imply.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.