Skip to main content
Glama

List API keys

list_api_keys
Read-onlyIdempotent

List API keys (permission: admin)

The calling key's owner's live (non-revoked) keys, newest first — the project's for a project key, the org's for an org key; for an agent connection the project's or org's named by projectId / orgId, where the user may manage keys (project editor and above, organization admin). An API key ignores both parameters. Never returns a hash or secret — only the display prefix and metadata.

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
limitNoPage size, 1–100.
orgIdNoAgent connections only (exactly one of projectId/orgId): the organization whose keys. Ignored for an API key.
cursorNoThe previous page's `nextCursor` (opaque). A malformed cursor is 400 on path cursor (issue code invalid_cursor).
projectIdNoAgent connections only (exactly one of projectId/orgId): the project whose keys. Ignored for an API key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is covered. The description usefully adds that only live, non-revoked keys are returned, ordered newest first, and that the response never contains a hash or secret, only display prefix and metadata. It does not mention rate limits or the behavior of paging past the end, so it adds real value but not a fully rich behavioral picture, making 3 appropriate.

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?

Purpose and the admin-permission requirement are front-loaded in the first line, and the second sentence packs the scoping matrix and output contract without filler. It is dense and clause-heavy but every element carries information, so only a minor readability deduction applies.

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 must cover return values, and it does: display prefix plus key metadata, never hashes or secrets. Pagination and page-size semantics are fully documented in the schema, so nothing an agent needs in order to call this tool is 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%: limit, cursor, orgId, and projectId all have descriptions, including the exactly-one-of rule and the malformed-cursor 400. The description restates the "an API key ignores both parameters" rule, which is already present per-parameter in the schema, and adds nothing about limit or cursor semantics. Baseline 3 fits when the schema does the heavy lifting.

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 a specific verb and resource ("List API keys") and then defines the exact scope of what is listed: the caller's own live keys, or the project's/org's keys named by projectId/orgId. Combined with the title and the sibling set (which includes revoke_api_key), an agent can distinguish this read operation from the mutation siblings without opening either 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?

The description gives concrete conditions for which parameters apply — agent connections must name exactly one of projectId/orgId, while an API key ignores both — and states the permission prerequisite (admin). It does not explicitly exclude cases or name a sibling alternative (e.g. revoke_api_key, whoami), which keeps it short of a 5.

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