Skip to main content
Glama

get_api_key_history

Read-only

Retrieve API key usage history by key ID and optional date range to review when and how a Hostkey API key was used.

Instructions

API key usage history for a period (api_keys/history).

Input Schema

NameRequiredDescriptionDefault
idYesKey ID
period_toNoPeriod end, YYYY-MM-DD
period_fromNoPeriod start, YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.3
    • changedInput schema / properties / id / description
      Previous value: -"ID ключа"New value: +"Key ID"
    • changedInput schema / properties / period_from / description
      Previous value: -"Начало периода, YYYY-MM-DD"New value: +"Period start, YYYY-MM-DD"
    • changedInput schema / properties / period_to / description
      Previous value: -"Конец периода, YYYY-MM-DD"New value: +"Period end, YYYY-MM-DD"
  2. First observedv1.0.1

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is clear. The description adds only the endpoint and the period-scoping concept, but does not describe return format, pagination, or rate limits. With annotations covering the safety profile, this is minimally acceptable additional context.

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?

A single, front-loaded sentence with no wasted words. It is appropriately sized for a simple read-only tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema, so the description could usefully explain what 'usage history' returns (e.g., call counts, bandwidth, time-series data). It also omits any usage guidance. Given the simple read-only nature and complete schema, the description is adequate for invocation but leaves notable gaps for result interpretation and tool selection.

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 description coverage is 100%, so all three parameters (id, period_from, period_to) are already documented in the schema. The description's 'for a period' phrase adds marginal contextual meaning but no syntax or format details beyond what the schema provides.

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 clear resource ('API key usage history') and scope ('for a period'), and the parenthetical endpoint reinforces the intent. It distinguishes itself from get_api_key and list_api_keys by focusing on historical usage, but does not explicitly name or contrast with those siblings.

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

Usage Guidelines2/5

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

The description offers no guidance on when to use this tool versus alternatives like get_api_key or list_api_keys. There is no mention of prerequisites, context, or exclusions.

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