Skip to main content
Glama
ZeroBounce MCP Open Source

ZeroBounce MCP Open Source

Official

Get API usage

get_api_usage
Read-onlyIdempotent

Retrieve total API usage between two inclusive dates to audit call volume, reconcile billing, or measure usage for a period without spending validation credits.

Instructions

API usage totals between two calendar dates. When to use: Audit call volume, reconcile billing, or answer how much API was used in a period. Parameters: startDate and endDate — inclusive dates in YYYY-MM-DD (ISO 8601). endDate must be on or after startDate. Example: last 7 days — set startDate to today minus 6 days and endDate to today. CREDITS: Does not spend validation credits.

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": {
      "startDate": "<startDate>",
      "endDate": "<endDate>"
    },
    "name": "get_api_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateYesEnd date in YYYY-MM-DD format
startDateYesStart date in YYYY-MM-DD format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower, and the description still adds real behavior: the operation costs no validation credits and inclusive-date handling with a stated endDate >= startDate validity precondition. It does not describe the shape or granularity of the returned totals.

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?

Front-loaded with the purpose, then labeled When-to-use, Parameters, and CREDITS sections; every line carries information an agent needs (inclusive semantics, ordering rule, worked example, cost profile). No filler or restatement of the tool name.

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

Completeness4/5

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

For a simple two-parameter read tool with annotations covering safety, the description is nearly self-sufficient; the only omission is what the returned totals contain (per-endpoint breakdown vs. single number, timezone of 'calendar date'), which matters slightly since there is no output schema.

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, and the description earns above that by adding genuinely non-schema information: dates are inclusive and the 'last 7 days' example spells out the off-by-one offset (today minus 6 days through today). The constraint that endDate must be on or after startDate is also not in the schema.

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 ('API usage totals') plus the scope ('between two calendar dates'), so an agent knows exactly what it retrieves. The closing note that it does not spend validation credits further separates it from the credit-related siblings (get_credits, get_account_credits).

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?

The 'When to use' line gives three concrete intents — auditing call volume, reconciling billing, and answering period usage questions — which is more than implied usage. It does not name an alternative tool or state when NOT to use it, so it falls short of full routing guidance.

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