Skip to main content
Glama

Get API key activity

get_api_key_activity
Read-onlyIdempotent

Retrieve recorded request activity for an authenticated API key, including matched route patterns, statuses, caller source addresses, endpoint/source totals, and retained daily history.

Instructions

Get the recorded request activity for this API key: recent matched route patterns and statuses, resolved and separately labelled caller-claimed source addresses, endpoint/source totals, and retained daily history. API-key callers can inspect only the same key that authenticated the MCP connection, and this server needs a management key: a management key has no inference usage of its own and an inference key is refused on every account route, so read inference usage in the VPSnet panel. Key values, headers, query strings, path values, and request bodies are never returned. To protect the control plane during abusive bursts, audit writes are capped per key per minute and retained detail has a separate per-key row ceiling; totals describe recorded rows and are not a billing ledger.

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": {
      "id": "<id>"
    },
    "name": "get_api_key_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAPI key ID from list_api_keys (the calling key's own ID)
limitNoRecent request rows to return (default 50, maximum 200)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past `readOnlyHint`/`idempotentHint` by disclosing what is never returned (key values, headers, query strings, path values, request bodies), that audit writes are capped per key per minute during abusive bursts, that retained detail has a per-key row ceiling, and that totals are recorded rows rather than a billing ledger. These are exactly the operational caveats an agent cannot infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense paragraph, front-loaded with the return contents before the access constraints and caveats, and no sentence is filler. It is heavier than ideal for a two-parameter read tool, and splitting the authentication constraint from the retention caveats would improve scanability.

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?

With no output schema, the description carries the burden of describing return shape and does so explicitly. Authentication requirements, refusal behavior, redaction guarantees, and rate/retention limits are all covered, leaving nothing an agent needs in order to call it correctly.

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; the description adds meaning by constraining `id` to the key that authenticated the MCP connection, reinforcing the schema's parenthetical. It says nothing about `limit` beyond what the schema already documents (default 50, max 200), so the gain is modest but real.

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 ("Get the recorded request activity for this API key") and then enumerates the returned content: recent matched route patterns and statuses, resolved and caller-claimed source addresses, endpoint/source totals, and retained daily history. This is materially distinct from the `get_api_key` sibling, whose job is key metadata.

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?

Gives real selection conditions: only the calling key's own ID can be inspected, the server requires a management key, and inference keys are refused on every account route. It also redirects to the VPSnet panel for inference usage, an explicit alternative. It falls short of 5 only because it never names `get_api_key_inference_usage` as the sibling to choose instead when usage data is the actual goal.

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

Deploy Server

Other Tools