Skip to main content
Glama

Get Api Key

get_api_key
Read-only

Retrieve API key details without exposing the secret; omit key_id to inspect the connection’s key, or provide an ID with admin access to view another key.

Instructions

Get one API key's details (never its secret). Without key_id: the key this connection uses, which works with any key; another key needs an ADMIN key.

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": "get_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
key_idNoThe key's id; leave out for the key this connection uses

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only and open-world behavior, and the description adds meaningful context beyond them: the secret is never returned, and reading a different key requires elevated ADMIN privileges. It stops short of describing pagination or response shape, which is fine given an output schema exists.

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 compact sentences with the core capability front-loaded and the conditional behavior following immediately. No filler or redundancy.

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 single optional-parameter read tool with annotations and an output schema, the description covers the important cases: default behavior, auth requirement, and the secret exclusion. Nothing critical is missing, though an explicit pointer to the list tool would make it fully complete.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds a genuine constraint the schema lacks: non-default key_id lookups need an ADMIN key. That elevates it above baseline.

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?

The description states a specific verb and resource ("Get one API key's details") and scopes it to a single key, which implicitly distinguishes it from list_api_keys. It does not explicitly name a sibling, so it falls short of a 5.

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?

It clearly explains the two usage modes: omit key_id for the connection's own key, or supply key_id, which requires an ADMIN key. That is actionable context, though it does not explicitly route agents to list_api_keys for enumeration.

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