Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Update Secret Fields

update_secret_fields
Destructive

Updates non-sensitive fields on an existing secret with read-mutate-verify checks and an audit comment, blocking password-class fields by default.

Instructions

Edit non-sensitive fields on an existing secret.

Composes the read-mutate-verify flow:

  1. GET /v1/secrets/{id}/summary to check approval / comment requirements via :func:_check_secret_approval.

  2. GET /v1/secrets/{id} (template lookup) to identify which slugs are password fields.

  3. PUT /v1/secrets/{id}/fields/{slug} per entry in field_updates.

  4. GET /v1/secrets/{id}/summary for verification.

By default, slugs whose template field has isPassword=True are refused — the model should not see plaintext password values. Use :func:set_secret_field_environment_variable (which emits a shell script that reads the value locally and PUTs it without the value ever passing through the model) for password-class fields, or set allow_password_fields=True to override (not recommended).

Parameters

secret_id: Identifier of the secret to update. field_updates: Mapping of field_slug -> new_value (or a JSON string). Use slugs (e.g. "notes", "url", "hostname") discoverable via :func:check_secret_template. comment: Audit comment recorded against each field update. Required when the secret has requiresComment or requiresApproval set. Must explain why the change is being made and reference any related ticket, incident, or change request. allow_password_fields: Set to True to permit updating password-class fields. Doing so means the new value passes through the model — prefer :func:set_secret_field_environment_variable for those fields.

Returns

dict {"result": {...}, "verification": {...}} where result lists per-field outcomes and verification is the post-update summary.

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": {
      "secret_id": "<secret_id>",
      "field_updates": "<field_updates>"
    },
    "name": "update_secret_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNo
secret_idYes
field_updatesYes
allow_password_fieldsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=false) by disclosing the exact read-mutate-verify sequence, the default refusal of password fields, and the model-exposure risk of the override. The comment requirement and its required content (why + ticket/incident reference) are behavior an agent cannot infer from structured fields.

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?

Front-loaded with the one-sentence purpose, then a numbered flow and per-parameter block that are easy to scan. Some cost from docstring artifacts — raw REST endpoints, RST roles (:func:, ``func``), and references to an internal helper (_check_secret_approval) that an agent does not need in order to call the tool.

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?

No output schema exists, and the description compensates by specifying the return shape (per-field results plus post-update verification summary). Combined with the flow, refusal rules, and conditional comment requirement, nothing material is missing for a four-parameter destructive mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does: every parameter is documented, including that field_updates accepts a mapping or JSON string, that keys are slugs discoverable via check_secret_template, and that comment is conditional. This adds real meaning beyond the bare types in the schema.

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?

Opens with a specific verb+resource+scope: 'Edit non-sensitive fields on an existing secret.' The scope qualifier ('non-sensitive') immediately separates it from password-class tooling, and the body names set_secret_field_environment_variable as the sibling for password fields.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rules: password-class slugs are refused by default and the agent should use set_secret_field_environment_variable instead, with allow_password_fields=True described as an 'not recommended' override. It also states the precondition for comment (required when requiresComment or requiresApproval is set), which is when-to-use guidance tied to secret state.

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