Skip to main content
Glama
Magic Lane MCP DevKit Server

Magic Lane MCP DevKit Server

Official
by magiclane

List API Keys

list_api_keys
Read-onlyIdempotent

Retrieve a project's active and disabled API keys with IDs, names, expiry status, and last four characters; full keys are excluded and available only through a separate request.

Instructions

List a project's API keys, active and disabled, masked: id, name, expiry (ISO), whether it has expired and the last 4 characters. The full keys are never listed; get_api_key returns one when the user asks for it. Requires "API keys: Read". Disabling or deleting keys is only possible in the developer portal.

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": {
      "projectId": "<projectId>"
    },
    "name": "list_api_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesProject id (UUID), from list_projects or create_project.

Output Schema

NameRequiredDescriptionDefault
noteYesThings to know about this result.
activeYesKeys that can be used.
disabledYesKeys disabled in the developer portal.
projectIdYesThe project the keys belong to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: output is always masked and full keys are never listed, a specific permission ('API keys: Read') is required, and key lifecycle operations are only available in the developer portal.

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 sentences, front-loaded with the operation and return shape, then the masking constraint, then the permission requirement. Every sentence carries information the agent would otherwise have to guess.

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?

An output schema exists so return values need no explanation, and the one parameter is fully documented. The description covers the remaining agent-relevant facts: masking behavior, permission requirement, and the sibling to call for the full key.

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 required parameter with 100% schema coverage, and the schema itself explains that projectId comes from list_projects or create_project. The description adds no additional meaning about the parameter, so the baseline of 3 applies even though the gap is negligible here.

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 precise verb and resource ('List a project's API keys') and immediately bounds the scope: active and disabled, masked, with the exact fields returned (id, name, expiry, expired flag, last 4). It is clearly distinguishable from get_api_key, which returns a single unmasked key.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use this for masked listings, use get_api_key when the user actually needs the full key. It also states a hard exclusion — 'Disabling or deleting keys is only possible in the developer portal' — so the agent does not hunt for a sibling tool that does not exist.

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