Skip to main content
Glama

List API keys

list_keys
Read-only

List this account's API keys, active first and newest first, with id, label, mode, scope, masked display, and timestamps. The key itself is never returned, so you can audit access safely.

Instructions

List this account's API keys, active first, newest first. Never the key itself: each entry has id, label, mode (live or test), scope (read, write or admin), display (e.g. "wc_live_...a1b2"), created_at, last_used_at, revoked_at and expires_at (null = never; keys from an OAuth connection expire after 1 hour).

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_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
dataNo
resultYes
statusNo
changesNo
dry_runNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description adds genuinely useful behavior beyond that: the secret is never returned, entries are ordered active-then-newest, and revoked/expiry fields carry null-vs-timestamp semantics. It stops short of noting pagination or result-count limits, which a listing tool would normally disclose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the key fact (never the key itself) placed early, and the field enumeration is dense but each item adds real meaning. It runs slightly long, but nothing is filler.

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?

For a no-parameter, read-only listing tool with an output schema and readOnlyHint already supplied, this covers the remaining agent-relevant unknowns: ordering, redaction of secrets, and expiry interpretation. Nothing needed to call or read it correctly is missing.

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?

Zero input parameters, so there is nothing to document; the description correctly spends its words on the response shape and ordering instead of inventing parameter guidance.

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 this account's API keys') plus explicit ordering rules (active first, newest first), which cleanly separates it from the mutating sibling create_key and from the get_* family.

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?

Usage is only implied: an agent can infer this is the read path for keys, but there is no explicit when-to-use statement, no prerequisite note (e.g. scope required to see admin keys), and no named alternative for fetching a single key's detail.

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