Skip to main content
Glama

Get API Usage

get_api_usage
Read-onlyIdempotent

Returns the API request quota of the signed-in Mailpro account for the current period: limit, requests used, requests remaining. Every tool call counts against this quota. It does not report emails or SMS sent; use the campaign tools for sending figures.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_api_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
free_accountYesTrue for a free account.
api_requests_usedYesAPI requests used so far.
api_requests_limitYesAPI requests allowed for the current period.
free_sends_remainingYesFree sends remaining. Only meaningful when free_account is true; 0 otherwise.
api_requests_remainingYesAPI requests remaining.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds genuinely new behavior: the result is scoped to the current period and is itself consumed by other tool calls. It does not state reset timing or whether the count is live versus cached, which keeps it short of a 5.

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 sentences, front-loaded with the return content, then the quota-cost warning, then the exclusion. Every clause carries information; nothing repeats the title or annotations.

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?

Zero parameters, rich annotations, and an output schema that covers return shape, so the description only needs purpose, scoping and the quota side effect, all of which are present. Nothing an agent needs in order to call it correctly is missing.

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?

The tool takes no parameters, so the baseline is 4; there is nothing for the description to disambiguate and it correctly avoids inventing inputs. It also implies the caller identity is implicit ('signed-in Mailpro account'), which is useful framing for a zero-arg call.

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?

Specific verb and resource: 'Returns the API request quota of the signed-in Mailpro account for the current period', with the three returned fields enumerated (limit, used, remaining). It also names what it does not cover (emails/SMS sent quantitative figures) and routes that to campaign tools, so an agent can separate it from get_sending_usage or get_credit_balance without opening a schema.

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?

'Every tool call counts against this quota' tells the agent when the value matters (before/after batching calls), and the exclusion clause redirects to campaign tools for sending figures. There is no explicit 'call this before X' imperative, but the context for use is deducible and the alternative is named.

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