Skip to main content
Glama

List model keys

list_keys
Read-onlyIdempotent

List model keys

The account's own model keys (kl_live_…), newest first. Customer keys are listed under /customers/{id}/keys and management keys under /management-keys. Revoked keys are left out unless includeRevoked=true.

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
limitNoPage size, 1 to 200.
cursorNoThe `nextCursor` of the previous page, unchanged.
includeRevokedNoAlso list revoked keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely useful behavior: newest-first ordering and the fact that revoked keys are hidden by default. It stops short of describing pagination flow or the shape of a returned key object, which would have completed the picture.

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?

Three short sentences, zero filler: identity and scope first, then disambiguation from other key types, then the one behavioral exception. Every sentence carries distinct information an agent needs.

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 three-parameter list tool with no output schema and full annotation coverage, the description supplies everything needed to call it correctly, including scope and default filtering. The only gap is that the returned key fields are not hinted at, which matters slightly since no output schema exists.

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 all three parameters (limit, cursor, includeRevoked) are already documented with defaults, bounds, and meanings. The description's mention of `includeRevoked=true` reinforces the schema but adds no syntax or semantics beyond it, so the baseline 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?

States a specific verb and resource ('List model keys') plus the exact scope: the account's own keys with the `kl_live_…` prefix, returned newest first. It immediately distinguishes this resource from customer keys and management keys, so an agent can tell which list it is looking at without consulting siblings.

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?

The description routes an agent away from this tool for other key types by naming where those live (/customers/{id}/keys and /management-keys), and states the default exclusion of revoked keys with the flag that overrides it. It does not name the sibling tools directly, so the routing requires mapping the API paths to `list_customer_keys` / `list_management_keys`, but the intent is unambiguous.

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.

Resources