Skip to main content
Glama

Unkey MCP by usefulapi

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. 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

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds the genuinely useful disclosure that the transport is a POST yet the operation is read-only, which prevents an agent from misreading the method as a mutation. It stops short of covering auth needs, rate limits, or pagination behavior beyond the cursor parameter.

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 with no filler; the scope and the read-only caveat are both front-loaded. Every clause carries information the agent needs.

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?

There is no output schema, so the description carries the burden of describing what comes back, and it says nothing about the shape of the key list or how the cursor is returned. For a four-parameter paginated list tool with no annotations beyond readOnlyHint, this is adequate but incomplete.

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 apiId, limit, cursor, and externalId; baseline 3 applies. The description mirrors the externalId filter ('narrowed to a single customer') but adds no syntax, format, or defaulting detail beyond what the schema provides.

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 ('List every key') plus its scoping constraint ('issued under one API'), which cleanly separates it from unkey_get_key (single key) and unkey_list_identities. The optional externalId narrowing is called out up front, so an agent can tell what this returns without opening the schema.

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 reach for this tool (you want the full key set for an API) and shows how to narrow results with externalId. However, it never names an alternative or states exclusions, so the agent is left to infer that unkey_get_key is for a single key rather than being told.

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.