Skip to main content
Glama

list_api_keys

Lists all API keys for the account, including key prefix, environment, status, and last used timestamp.

Instructions

List all API keys for the account. Shows key prefix, environment, status, and last used timestamp.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden for an account-scoped read. It does usefully imply that only key prefixes are exposed rather than full secrets, but says nothing about whether revoked keys are included, ordering, pagination/limits, or what permissions are required to see account-wide keys.

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 short sentences, front-loaded with the action and scope, followed directly by the returned fields. No filler, hedging, or restatement of the tool name.

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 are no parameters and no output schema, so the description must carry return-value information itself, and it does list the four key fields. Remaining gaps are minor but real for an account-wide list: result ordering, whether revoked or expired keys appear, and any result cap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4; there is nothing parameter-wise the description could add. The listed fields (prefix, environment, status, last used) describe output rather than inputs, which is helpful but belongs to a different dimension.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"List all API keys for the account" gives a specific verb plus resource and an explicit scope (the whole account, not a single key). That verb contrast alone separates it from create_api_key and revoke_api_key, though the description never names a sibling to reinforce the distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, no stated prerequisites (e.g. account-level read permission), and no mention of create_api_key or revoke_api_key as the mutation counterparts. The agent must infer from the verb that this is the read-only enumeration path.

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