Skip to main content
Glama

IP-API.io

usage_stats

usage_stats
Destructive

Return hourly API usage statistics for a date range. Date range must be 90 days or less.

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": {
      "api_key": "<api_key>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "usage_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyYesip-api.io API key.
api_typeNoOptional API type: IP or ADVANCED_EMAIL_VALIDATION.
end_dateYesExclusive ISO-8601 end datetime, for example 2026-06-02T00:00:00Z.
start_dateYesInclusive ISO-8601 start datetime, for example 2026-06-01T00:00:00Z.

Output Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior1/5

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

The description frames the operation as a data retrieval ("Return ... statistics"), while the annotations declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false. An agent reading both gets directly conflicting signals about whether this call mutates state, and the description does nothing to reconcile them. Apart from the 90-day cap it discloses nothing about auth, rate limiting, or result size.

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 short sentences, zero padding, with the operation stated first and the binding constraint second. Every sentence carries information an agent needs before calling.

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?

A return value schema exists, so return format need not be described, and the tool is otherwise simple. However, the definition leaves the agent without sibling differentiation, without any statement resolving the destructive/read-only conflict, and without a hint about result volume for an hourly series spanning up to 90 days (roughly 2,160 buckets).

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 would be 3, but the description adds a hard constraint that the schema does not express: start_date and end_date must span 90 days or less, and the output granularity is hourly. It adds nothing about api_type (IP vs ADVANCED_EMAIL_VALIDATION), which the agent must take solely from the schema.

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?

"Return hourly API usage statistics for a date range" gives a specific verb (Return), a specific resource (API usage statistics), and a granularity (hourly) plus scope (date range). That granularity/range framing implicitly separates it from siblings like usage_current_month, usage_recent, and usage_summary, which the description never names or contrasts.

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?

The only guidance is a constraint ("Date range must be 90 days or less"), which tells the agent a valid input but not when to pick this tool over usage_current_month, usage_recent, or usage_summary. Usage is implied by the arbitrary date-range framing rather than stated, and no exclusions or prerequisites are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources