Skip to main content
Glama

List workspace API keys

list_workspace_api_keys
Read-onlyIdempotent

List the workspace's active API keys: name, prefix, scopes, last use, expiry, and creator. Owners and admins see every key; others see their own. Secrets are never returned. Returns apiKeys, hasMore, and nextCursor.

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

Input Schema

NameRequiredDescriptionDefault
limitNoPage size. Default 50.
cursorNonextCursor from the previous page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior, and the description still adds meaningful context: role-based result scoping and the guarantee that secrets are never returned. It also pre-announces the response envelope (apiKeys, hasMore, nextCursor), which annotations cannot convey.

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 with zero filler; the returned fields are front-loaded, followed by the access rule and the safety note. Every clause carries operational information.

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?

With no output schema, the description usefully names the return envelope and pagination fields, and the read-only safety profile is covered by annotations. Minor gaps remain, such as what a scope value looks like, but nothing needed to invoke the tool correctly 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 coverage is 100%, with limit default and cursor semantics fully documented in the schema itself. The description only mentions nextCursor as a return field, adding no new meaning about the parameters, so the baseline of 3 applies.

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?

States a specific verb and resource plus the exact fields returned (name, prefix, scopes, last use, expiry, creator), so an agent knows precisely what it retrieves. It does not, however, differentiate itself from the sibling list_api_keys, leaving scope ambiguity between the two listing tools.

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 implied by the resource named, and the visibility rule (owners/admins see all keys, others see their own) helps an agent anticipate results. But there is no explicit when-to-use guidance and no mention of the alternative list_api_keys, so sibling selection is left 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.

Resources