Skip to main content
Glama

Mailrun Agent Identity

Usage

get_usage
Read-onlyIdempotent

Current period usage: emails out/in versus the included allowance, percent used and the email hard-stop threshold. Once metered billing is active the response also carries billing_month, voice (hosted/BYO seconds, settled and reserved cents), numbers (active, days to date, accrued rent), spend (limit, used, remaining, percent used; calls are refused at the limit) and tariff (version and cents per minute/month); the voice-minute fields and percent_used.voice then reflect spend, and voice_minutes_used/included_voice_minutes are deprecated. While the hosted email agent is available, a separate email_agent block (billing_month, cap_cents, used_cents, replies, screened, previews) reports its own monthly cap; it is not part of spend.

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_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), so the description is free to add real behavioral context — and it does: cold-stop behavior ("calls are refused at the limit"), conditional response shape once metered billing is active, and explicit deprecation of voice_minutes_used/included_voice_minutes. That is meaningful disclosure beyond structured fields, though the conditions governing when each block appears are described loosely.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The length is defensible given there is no output schema and the payload is genuinely large, but the delivery is a single run-on sentence chained with semicolons and parenthetical field lists. Front-loading the purpose and breaking the conditional blocks into distinct statements would make it far easier to scan.

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?

With no output schema and no parameters, the description has to carry the return-value burden, and it does so thoroughly — allowance comparison, percent used, hard stop, metered-billing additions, and the standalone email_agent block. The only shortfall is that the trigger conditions for those blocks are stated in passing rather than precisely.

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 zero parameters, so there is nothing for the description to disambiguate in the input schema. Baseline of 4 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a noun-phrase dump of return contents ("Current period usage: emails out/in versus the included allowance...") rather than a stated operation with a verb. An agent can infer this is a read-only account-usage endpoint, but nothing distinguishes it from siblings like get_account or get_email_agent, and the mention of a separate email_agent block could even pull the agent toward the wrong tool.

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?

There is no when-to-use guidance, no stated preconditions, and no named alternative for related questions (account details vs. email agent metrics). The only implicit cue is the phrase "Current period usage," which leaves routing entirely to inference.

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