Skip to main content
Glama

Update secret

secrets_update
Destructive

Renames a secret or replaces its metadata, returning the updated record without its value. References use the secret ID, so renaming never breaks existing links.

Instructions

Renames a secret or replaces its metadata, and returns the updated secret without its value. The value, kind, and owner can't be changed here. References use the secret ID, so renaming doesn't break them.

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": {
      "orgID": "<orgID>",
      "secretID": "<secretID>"
    },
    "name": "secrets_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoHuman-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.
orgIDYesOrganization ID (org_...).
metadataNoArbitrary key-value labels stored with the resource.
secretIDYesSecret ID (sec_...).

Output Schema

NameRequiredDescriptionDefault
idYesIdentifies the secret; other resources reference it by this ID instead of storing the value.
kindYesWhat type of credential the secret holds, which determines its payload fields.
nameYesDisplay name of the secret.
ownerYesWho owns the secret; a project can use it without a grant only if the project owns it.
org_idYesOrganization the secret belongs to.
metadataYesCaller-supplied key-value labels on the secret.
created_atYesWhen the secret was created.
updated_atYesWhen the secret's name, metadata, or current version last changed.
payload_keysYesNames of the fields stored in the current value, such as value or access_token; values are never returned.
management_kindYesWhether the organization manages this secret or the Omnara installation provisions and manages it.
current_version_numberYesVersion of the value currently in use; each rotation increments it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.10
    • changedInput schema / properties / metadata / description
      Previous value: -"Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 characters, values must be strings of up to 512 characters."New value: +"Arbitrary key-value labels stored with the resource."
    • removedInput schema / properties / metadata / x-go-type
      Removed value: -"resourcemeta.Metadata"
    • removedInput schema / properties / metadata / x-go-type-import
      Removed value: -{
      -  "path": "github.com/omnara-ai/omnara/internal/resourcemeta"
      -}
    • removedInput schema / properties / metadata / x-go-type-skip-optional-pointer
      Removed value: -true
    • removedInput schema / properties / name / x-omnara-unicode-normalization
      Removed value: -"NFC"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ManagementKind": {
      +      "description": "Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.",
      +      "enum": [
      +        "tenant",
      +        "cluster"
      +      ],
      +      "type": "string"
      +    },
      +    "Metadata": {
      +      "additionalProperties": {
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      "description": "Arbitrary key-value labels stored with the resource.",
      +      "maxProperties": 16,
      +      "propertyNames": {
      +        "maxLength": 64,
      +        "minLength": 1
      +      },
      +      "type": "object"
      +    },
      +    "OrgSecretOwner": {
      +      "properties": {
      +        "kind": {
      +          "description": "org: the organization owns the secret.",
      +          "enum": [
      +            "org"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectSecretOwner": {
      +      "properties": {
      +        "kind": {
      +          "description": "project: a single project owns the secret.",
      +          "enum": [
      +            "project"
      +          ],
      +          "type": "string"
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID",
      +          "description": "Project that owns the secret."
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "project_id"
      +      ],
      +      "type": "object"
      +    },
      +    "ResourceName": {
      +      "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "SecretID": {
      +      "description": "Secret ID (sec_...).",
      +      "pattern": "^sec_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "SecretKind": {
      +      "enum": [
      +        "generic",
      +        "oauth_token_set",
      +        "slack_app_credentials",
      +        "aws_credentials",
      +        "github_app_credentials"
      +      ],
      +      "type": "string"
      +    },
      +    "SecretOwner": {
      +      "discriminator": {
      +        "mapping": {
      +          "org": "#/$defs/OrgSecretOwner",
      +          "project": "#/$defs/ProjectSecretOwner",
      +          "user": "#/$defs/UserSecretOwner"
      +        },
      +        "propertyName": "kind"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/OrgSecretOwner"
      +        },
      +        {
      +          "$ref": "#/$defs/ProjectSecretOwner"
      +        },
      +        {
      +          "$ref": "#/$defs/UserSecretOwner"
      +        }
      +      ]
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "UserID": {
      +      "pattern": "^usr_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "UserSecretOwner": {
      +      "properties": {
      +        "kind": {
      +          "description": "user: a user owns the secret.",
      +          "enum": [
      +            "user"
      +          ],
      +          "type": "string"
      +        },
      +        "user_id": {
      +          "$ref": "#/$defs/UserID",
      +          "description": "User who owns the secret."
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "user_id"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "properties": {
      +    "created_at": {
      +      "$ref": "#/$defs/Timestamp",
      +      "description": "When the secret was created."
      +    },
      +    "current_version_number": {
      +      "description": "Version of the value currently in use; each rotation increments it.",
      +      "format": "int32",
      +      "type": "integer"
      +    },
      +    "id": {
      +      "$ref": "#/$defs/SecretID",
      +      "description": "Identifies the secret; other resources reference it by this ID instead of storing the value."
      +    },
      +    "kind": {
      +      "$ref": "#/$defs/SecretKind",
      +      "description": "What type of credential the secret holds, which determines its payload fields."
      +    },
      +    "management_kind": {
      +      "$ref": "#/$defs/ManagementKind",
      +      "description": "Whether the organization manages this secret or the Omnara installation provisions and manages it."
      +    },
      +    "metadata": {
      +      "$ref": "#/$defs/Metadata",
      +      "description": "Caller-supplied key-value labels on the secret."
      +    },
      +    "name": {
      +      "$ref": "#/$defs/ResourceName",
      +      "description": "Display name of the secret."
      +    },
      +    "org_id": {
      +      "$ref": "#/$defs/OrganizationID",
      +      "description": "Organization the secret belongs to."
      +    },
      +    "owner": {
      +      "$ref": "#/$defs/SecretOwner",
      +      "description": "Who owns the secret; a project can use it without a grant only if the project owns it."
      +    },
      +    "payload_keys": {
      +      "description": "Names of the fields stored in the current value, such as value or access_token; values are never returned.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "updated_at": {
      +      "$ref": "#/$defs/Timestamp",
      +      "description": "When the secret's name, metadata, or current version last changed."
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "org_id",
      +    "management_kind",
      +    "owner",
      +    "name",
      +    "kind",
      +    "metadata",
      +    "current_version_number",
      +    "payload_keys",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / secretID / description
      Added value: +"Secret ID (sec_...)."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Adds real context beyond the annotations: the return payload omits the secret value, metadata is replaced rather than merged, and renaming is safe because references bind to the secret ID. It does not cover permission requirements or whether the old name remains resolvable, which is the main remaining gap.

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?

Three short sentences, each earning its place: capability, hard limits, then reference-safety rationale. The most decision-relevant constraint is front-loaded.

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?

Complete for a mutation tool: it discloses what is overwritten, what cannot change, and that the value is withheld from the response, and an output schema already exists to describe the return shape.

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; the description adds meaning the schema cannot convey by explaining that secretID is the stable reference key and name is a pure label, which tells the agent the rename is non-breaking.

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 specific verbs and resource ('renames a secret or replaces its metadata') and immediately scopes what the tool will not do, so an agent can distinguish it from secrets_create/delete/get without opening a schema.

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?

Provides clear exclusions ('The value, kind, and owner can't be changed here'), which steers the agent away from using this for rotation or ownership transfer, but it never names which tool to use instead for those cases.

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