Skip to main content
Glama

Get API key inference usage

get_api_key_inference_usage
Read-onlyIdempotent

Retrieve exact paid AI usage for an inference API key, including daily and monthly spend, request/token totals, spend limits, remaining spend, and notification preferences. Read-only.

Instructions

Get exact paid VPSnet AI usage for this inference API key: committed and currently reserved spend for the UTC day and month, request and token totals by public VPSnet model profile, configured spend limits, remaining spend, and notification preferences. 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. Internal provider model names are never returned. This is read-only and does not change limits, notifications, or billing.

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

Input Schema

NameRequiredDescriptionDefault
idYesInference API key ID from list_api_keys (the calling key's own ID)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real value beyond them: the authentication/authorization asymmetry between management and inference keys, the refusal behavior on account routes, and the guarantee that internal provider model names are never returned.

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?

Front-loads the returned data, then moves to access constraints and finally to the no-side-effects statement, which is a logical order for an agent deciding whether to call it. The sentences are dense but every one carries information; only the closing 'does not change limits, notifications, or billing' lightly overlaps the readOnlyHint annotation.

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?

There is no output schema, and the description compensates by enumerating the return payload in detail, including the deliberate omission of internal provider model names. Combined with the auth prerequisites and the explicit statement that nothing is mutated, an agent has everything needed to call this correctly or to know it cannot.

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% and the single 'id' parameter is already documented as the calling key's own ID from list_api_keys, so the schema carries the parameter burden. The description reinforces the same constraint (only the authenticating key is inspectable) but adds no new syntax, format, or range detail. 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?

States a specific verb and resource (get paid inference usage for this API key) and then enumerates exactly what is returned: committed and reserved spend for the UTC day and month, request/token totals by public model profile, spend limits, remaining spend, and notification preferences. That enumeration separates it from sibling lookups such as get_api_key and get_usage_statements without needing to name them.

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 a clear operating context: API-key callers may only inspect the key that authenticated the connection, the server requires a management key, and a management key has no inference usage of its own, so inference usage must be read in the VPSnet panel. It does not explicitly route to a sibling tool for other usage figures, which keeps it just short of a 5.

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