Skip to main content
Glama
idea-base-mcp-server

idea-base-mcp-server

Official

list_agent_keys

Retrieve an agent user's API keys with name, prefix, scope, last-used and expiry details, plus revocation status, to audit or manage access without exposing secret key values.

Instructions

List the API keys belonging to an agent user — name, non-secret prefix, scope, last used, expiry and whether revoked. The key itself is never returned by this or any other call; it exists only in the one issue_agent_key response.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agent_user_id": "<agent_user_id>"
    },
    "name": "list_agent_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_user_idYesThe agent's user id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.13.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses the returned field set, that the operation is a listing, and the security-critical fact that the secret is never returned by this or any other call. It omits secondary behavior such as pagination, ordering, auth requirements, and what an empty result means.

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 sentences, no filler, and the important constraint about the secret never being returned is stated immediately after the field list rather than buried. Every clause carries information an agent would otherwise have to discover empirically.

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 one-parameter list tool with no output schema, the description compensates well by spelling out the returned attributes and the secret-exclusion rule. The main remaining gap is listing behavior at scale (pagination/result limits), which matters for a tool that can return multiple keys per agent.

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?

There is a single parameter with 100% schema description coverage, so the schema already defines agent_user_id. The phrase "belonging to an agent user" restates the same meaning without adding format, sourcing, or scoping detail, so the baseline 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 opens with a specific verb and resource ("List the API keys belonging to an agent user") and then enumerates exactly which attributes come back: name, prefix, scope, last used, expiry, revocation status. It also draws the boundary against issue_agent_key, making clear this tool is not where secrets come from.

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 (you list keys for a given agent user) but never stated explicitly: there is no guidance on when to prefer this over revoke_agent_key or issue_agent_key workflows, and no note on how the required agent_user_id is obtained (e.g., from list_agents). Adequate but leaves the agent to infer the call context.

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