Skip to main content
Glama

List Api Keys

list_api_keys
Read-only

Lists your account's API keys, newest first, with metadata such as role, status, expiry, spend limit, usage, and IP allowlist; requires an ADMIN key and never returns secrets.

Instructions

List the account's API keys, newest first: name, preview, role, status, expiry, spend limit and its use, IP allowlist. Secrets are never returned. Needs an ADMIN key.

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
pageNoPage number, from 1
limitNoItems per page (max 100)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly and openWorld annotations, the description discloses newest-first ordering, the fields returned, the security guarantee that secrets are never returned, and the ADMIN-key authorization requirement. These are meaningful behavioral details for safe and correct invocation.

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 definition is compact and front-loaded: it states the action first, then the returned fields, then the secret-exclusion guarantee, then the authorization requirement. Every clause carries useful information.

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?

Given the output schema, annotations, and fully documented two-parameter input schema, the description supplies what is still needed: ordering, auth requirement, returned-field summary, and secret-handling behavior. Nothing essential for correct invocation 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 description coverage is 100%, and both page and limit are fully documented in the input schema. The description adds no additional parameter semantics, so the baseline score of 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?

The description uses a specific verb and resource ('List the account's API keys') and adds scope, ordering, and returned fields. It is clearly distinguishable from get_api_key, create_api_key, and update_api_key without needing their schemas.

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?

It gives a clear usage context by stating this lists the account's keys and requires an ADMIN key. It does not explicitly name alternatives such as get_api_key for a single key, so it falls short of full when-to-use/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.