Skip to main content
Glama

unkey

List the keys of an API

unkey_list_api_keys
Read-only

List every key issued under one API, optionally narrowed to a single customer by externalId. Read-only despite being a POST. Unkey: POST /v2/apis.listKeys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiIdYesThe API whose keys to list.
limitNoPage size, 1-100.
cursorNoCursor from the previous page's response. Omit for the first page.
externalIdNoOnly keys belonging to this external identity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, but the description adds the genuinely useful disclosure 'Read-only despite being a POST,' reconciling the HTTP verb with safe-read semantics. It does not cover rate limits or result shape, but this is a meaningful addition beyond the annotations.

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?

Two tight sentences plus an endpoint tag, front-loaded with the list scope and the optional narrowing before the HTTP-method caveat. No waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description could say more about pagination/return shape, though the cursor parameter hints at paging. For a straightforward list tool it is largely complete.

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 all four parameters are already documented. The description only echoes externalId filtering semantics, adding little beyond the schema; baseline 3 is appropriate.

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 (List), resource (every key issued under one API), and scope (optionally narrowed to a single customer by externalId), which cleanly separates it from unkey_get_key and unkey_list_identities.

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 description implies when to use it via the externalId narrowing condition, but it never names an alternative tool (e.g., unkey_get_key for a single key) or states when not to use it. Usage is inferable but not spelled out.

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.