Skip to main content
Glama

Update credential by id

updateCredential
Destructive

Update a login by id. At least one of password or otp_secret must remain set after the update. Editing a team-shared login or toggling sharing requires lead builder role.

Input Schema

NameRequiredDescriptionDefault
idYes
domainNo
sharedNo
userIdYes
team_idNoDuvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here.
passwordNo
usernameNo
otp_secretNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare the mutation profile (destructiveHint=true, idempotentHint=false), so the bar is lower. The description adds substantive business rules beyond the annotations: the password/otp_secret invariant and the lead-builder-role requirement for team-shared edits or toggling sharing. It stops short of describing exactly what is overwritten on a null-vs-omitted field.

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?

Three sentences, front-loaded with the action, then the validation invariant and the role gate. Every sentence carries distinct information with no filler, though it could be slightly tighter.

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 destructive mutation tool with eight low-coverage parameters and no output schema, the description covers the most dangerous gotchas (password/otp invariant, role gate) but omits identifier semantics and what a null versus omitted field does. Adequate but with visible gaps.

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 only 13% (only team_id is documented), so the description must compensate. It does clarify the critical password/otp_secret nullability constraint and the meaning of the shared toggle, but leaves userId, id, domain, and username semantics entirely to the schema.

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?

States a specific verb and resource ('Update a login by id'), which clearly distinguishes it from getCredential, createCredential, deleteCredential, and listCredentials siblings. It does not explicitly call out those alternatives, but the operation 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?

Provides a real precondition ('At least one of password or otp_secret must remain set after the update') and a role gate, which implicitly tells the agent when this call will succeed. However, it offers no guidance on when to choose this over siblings or on prerequisites like first fetching the current credential.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources