Skip to main content
Glama

update_credential

Update existing credentials by merging specified fields, removing selected keys, or replacing endpoint configurations. Supports environment variable references for flexible credential management.

Instructions

更新已有凭据。fields 只合并传入的键;removeFields 删除字段;endpoints 整体替换。同样支持 'env:VAR' 间接引用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes现有凭据名称或 id
tagsNo
fieldsNo
systemNo
newNameNo
authTypeNo
endpointsNo整体替换端点配置(结构同 add_credential);传 {} 清空
ttlSecondsNo
descriptionNo
removeFieldsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses non-obvious behavior: fields are merged by key, removeFields deletes fields, endpoints are replaced wholesale, and env:VAR indirection is supported. This goes beyond the schema and warns about destructive/replacement semantics.

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 sentences with the purpose front-loaded and the key behavioral rules compactly listed. There is no filler or redundant restating of schema fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation tool with no output schema and no annotations, the description covers core update semantics but omits behavior for several parameters and does not explain what happens to unspecified fields. It is useful but not fully complete for every calling scenario.

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 only 20%, so the description must compensate. It adds valuable semantics for the most nuanced parameters: fields (merge), removeFields (delete), endpoints (replace), and env:VAR references. However, it leaves tags, system, newName, authType, ttlSeconds, and description to self-explanatory names or the schema enum, so compensation is only partial.

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?

The description opens with '更新已有凭据' (update existing credential), naming a specific verb and resource, and the 'existing' qualifier distinguishes it from add_credential and delete_credential. It also states concrete update behaviors (merge, remove, replace), so an agent can clearly identify this tool's role among siblings.

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?

The description clearly establishes that this tool is for modifying an existing credential, which tells an agent when to select it over add_credential or delete_credential. It does not explicitly name alternatives or list when-not-to-use conditions, but the context is unambiguous.

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