Skip to main content
Glama

Unkey MCP by usefulapi

Update a key

unkey_update_key
Destructive

Change a key's name, owner, metadata, expiry, roles, permissions or enabled state. Unkey: POST /v2/keys.updateKey.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaNoReplace the key's metadata.
nameNoNew label.
keyIdYesThe key to update.
rolesNoReplace the key's roles.
enabledNoEnable or disable the key.
expiresNoNew expiry as a Unix timestamp in milliseconds.
externalIdNoReassign the key to this identity.
permissionsNoReplace the key's permissions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, so the safety bar is lower, but the description adds nothing beyond that: it does not disclose that roles, permissions and metadata are wholly replaced rather than merged (that nuance lives only in the schema), nor mention auth requirements or reversibility. It largely repeats the field list and the HTTP endpoint.

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 mutation's scope. The trailing 'Unkey: POST /v2/keys.updateKey' is low-value for an agent choosing the tool, but it costs little.

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 an 8-parameter mutation with full schema coverage and a destructiveHint annotation, the description covers what can change but omits when to use it and the replace-semantics caveat that matters for destructive edits. No output schema exists, so return values need not be described, but the guidance gap keeps this at minimum viable.

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 the schema already documents all eight parameters with their formats (e.g. expires as Unix ms, externalId as identity reassignment). The description restates the field names but adds no syntax or constraint detail beyond the schema, so the baseline of 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?

States a specific verb and resource ('Change a key's ...') and enumerates the mutable attributes, and the update verb cleanly separates it from the create/get/delete siblings. Minor imprecision: it says 'owner' while the schema parameter is 'externalId' ('Reassign the key to this identity'), so the field list is not an exact one-to-one match.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives (e.g. unkey_update_key_credits, unkey_set_ratelimit_override) and no stated prerequisites such as required permissions or the fact that keyId must already exist. Usage is only implied by the verb.

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.