Skip to main content
Glama

Get API key inference usage

get_api_key_inference_usage
Read-only

Retrieve exact paid VPSnet AI usage for an inference API key: committed and reserved spend, request and token totals, spend limits, remaining budget, and notification settings.

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. Internal provider model names are never returned. This is read-only and does not change limits, notifications, or billing.

Input Schema

TableJSON 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
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description goes further: it spells out the authorization scope (same key only), a data-redaction guarantee (internal provider model names are never returned), and an explicit no-side-effect commitment (does not change limits, notifications, or billing). Those authorization and redaction details are not recoverable from the 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?

The return-value inventory is front-loaded and dense but every clause carries information; the two trailing sentences are short and each adds a distinct guarantee (scope, read-only). Minor redundancy between 'read-only' in the last sentence and the enumerated non-effects keeps it just short of a 5.

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 fully carries the burden and does so by enumerating the returned data (spend, limits, remaining, per-model request/token totals, notification preferences) plus the scope and redaction rules. Nothing an agent needs to call or interpret this single-parameter read tool is missing.

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%: the single id parameter already documents its source (list_api_keys), its meaning (the calling key's own ID), and its bounds. The description only reinforces the same-key constraint rather than adding new parameter semantics, 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 names a specific verb (get) and resource (paid inference usage for an API key) and enumerates the exact returned dimensions: committed/reserved spend for UTC day and month, request and token totals per model profile, spend limits, remaining spend, notification preferences. This is clearly distinguishable from siblings like get_api_key, get_api_key_activity, and get_usage_statements, which cover identity, activity log, and account-level statements respectively.

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?

It states a real usage boundary — API-key callers may only inspect the key that authenticated the MCP connection — which tells the agent when the call will succeed. However, it never routes the agent to alternatives (get_api_key_activity for per-request history, get_usage_statements for broader billing) or states prerequisites, so selection guidance is only implied.

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