Skip to main content
Glama

List API keys

list_api_keys
Read-only

Lists the workspace's live keys for CodeGene's public API: each key's name, its first characters, its scopes, who made it and when it stops working, plus the API's address and the scopes a key can have. Never a key itself. Only owners and admins.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_api_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the readOnly/destructive/closed-world annotations by stating that the secret key value is never returned ('Never a key itself') and that the caller must be an owner or admin — both critical facts for an agent handling credentials. It stops short of covering pagination or what happens with no live keys.

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?

One front-loaded sentence plus two short fragments; the enumerated return fields and the 'Never a key itself' caveat are placed before the access restriction, and nothing is redundant.

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?

With no output schema, the description carries the burden of describing the response and does so (name, key prefix, scopes, creator, expiry, API address, available scopes), while also covering the permission gate. Nothing an agent needs in order to call it correctly appears to be missing.

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 100% and the single optional workspace_id is fully documented in the schema ('Workspace id from whoami; omit when there is one'). The description only implies workspace scoping and adds no syntax or fallback detail beyond that, so baseline 3 applies.

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?

States a specific verb and resource ('Lists the workspace's live keys for CodeGene's public API') and adds scope with 'live', which implicitly excludes revoked keys. An agent can distinguish this from create_api_key and revoke_api_key without opening any schema.

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?

Gives a clear context for use (inspect the workspace's live API keys) and a hard precondition ('Only owners and admins'), but never explicitly routes the agent to create_api_key or revoke_api_key, nor states when not to call it.

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