Skip to main content
Glama

List API keys

portkey_list_api_keys
Read-only

List API keys in the organization/workspace (metadata only — secrets are never returned). Portkey: GET /api-keys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_sizeNoNumber of records per page. Default 50.
current_pageNoPage number (0-based) for pagination. Default 0.
workspace_idNoScope keys to a workspace id/slug.

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, and the description adds meaningful behavioral context by stating that secrets are never returned. This reassures the agent that the operation is safe and does not expose sensitive key material. The HTTP endpoint reference adds minor extra transparency.

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?

The description is two concise sentences, front-loads the core purpose and scope, and includes the safety-relevant metadata-only note. Every word earns its place with no redundancy.

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?

For a simple list operation with three optional pagination/scope parameters and no output schema, the description covers the essential behavior, scope, and secrecy guarantee. It does not describe the exact response shape, but 'metadata only' plus the schema's pagination fields provide sufficient context for calling the tool correctly.

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%, with each parameter already documented in the schema. The description does not add significant parameter-level meaning beyond what the schema provides, so the baseline score of 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?

The description names the specific action ('List API keys') and resource scope ('organization/workspace'), and adds a key distinguisher: metadata only, secrets never returned. This clearly separates it from siblings like get_api_key (single key) and list_virtual_keys (virtual keys).

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 gives useful context about scope ('organization/workspace') and the metadata-only nature, so an agent can infer when it is appropriate. However, it does not explicitly mention when to prefer an alternative such as get_api_key or list_virtual_keys, leaving some selection logic to inference.

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.