Skip to main content
Glama

Edit API keys

edit_api_keys
Destructive

Update or delete an API key. update body: {"name"?, "description"?, "add_datasets"?: [{"dataset_public_id"}], "remove_datasets"?: [dataset_public_id]}. Needs an owner or admin.

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": {
      "action": "<action>"
    },
    "name": "edit_api_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
bodyNoThe JSON body the action takes.
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / body / additionalProperties
      Previous value: -{}New value: +true
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the description is consistent with that ('or delete'). Beyond annotations it adds a real authorization requirement (owner or admin) and the update body contract, which is genuine behavioral context. It does not say whether delete needs a body or what happens to datasets on deletion.

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 operation, then the body contract, then the authorization note — no wasted sentences. The inline shape is inconsistent, though: add_datasets takes objects with dataset_public_id while remove_datasets takes bare strings, which reads as a typo rather than a deliberate distinction.

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, nested-body tool with no output schema, this covers the update path adequately. Gaps remain: the meaning of 'id', whether delete expects a body, and any consequence of removing a dataset from a key.

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 33%, so the description must compensate. It does so well for the update body (name, description, add_datasets, remove_datasets with dataset_public_id), but the 'id' parameter is left unexplained and the body's role for the delete action is unstated.

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 pair (update or delete) and resource (API key), which separates it cleanly from get_api_keys and create_ingest_key. It does not name a sibling explicitly, so it stops short of a 5.

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?

The action enum plus 'Update or delete' implies the two usage modes, and 'Needs an owner or admin' gives a useful prerequisite. There is no explicit when-to-use versus alternatives, no statement of when each action is appropriate, and no exclusions.

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