Skip to main content
Glama
mailgun

Mailgun MCP Server

Official
by mailgun

post--v1-analytics-usage-metrics

Query Mailgun account usage metrics to analyze email validation, processing, and monitoring statistics with customizable date ranges and dimensions.

Instructions

Query account usage metrics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startNoA start date (default: 7 days before current time). Must be in RFC 2822 format: https://datatracker.ietf.org/doc/html/rfc2822.html#page-14
endNoAn end date (default: current time). Must be in RFC 2822 format: https://datatracker.ietf.org/doc/html/rfc2822.html#page-14
resolutionNoA resolution in the format of 'day' 'hour' 'month'. Default is day.
durationNoA duration in the format of '1d' '2h' '2m'. If duration is provided then it is calculated from the end date and overwrites the start date.
dimensionsNoAttributes of the metric data such as 'subaccount'. See [dimensions](https://documentation.mailgun.com/docs/mailgun/user-manual/reporting/dimensions)
metricsNoName of the metrics to receive the stats for such as 'processed_count'.
filterNo
include_subaccountsNoInclude stats from all subaccounts.
include_aggregatesNoInclude top-level aggregate metrics.
Behavior2/5

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

With no annotations provided, the description carries full burden but only states 'Query' without disclosing behavioral traits like whether it's read-only (implied by 'query'), rate limits, authentication needs, or what happens with invalid parameters. It lacks details on response format, pagination, or error handling.

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?

The description is a single, efficient sentence with zero waste. It's appropriately sized and front-loaded, though it could benefit from more detail given the tool's complexity.

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

Completeness2/5

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

For a complex tool with 9 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain what the tool returns, how to interpret results, or provide context about the metrics system, leaving significant gaps for an agent to use it correctly.

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 89%, so the schema already documents most parameters well. The description adds no additional meaning beyond the schema's details about date formats, defaults, or metric/dimension options. Baseline 3 is appropriate as the schema does heavy lifting.

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 'Query account usage metrics' states a general purpose (querying metrics) but lacks specificity about what kind of metrics (email validation, processing, etc.) and doesn't distinguish from sibling tools like 'post--v1-analytics-metrics' or 'post--v1-analytics-logs'. It's vague about the exact resource scope.

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?

No guidance on when to use this tool versus alternatives like 'post--v1-analytics-metrics' or other analytics tools in the sibling list. The description provides no context about prerequisites, typical use cases, or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mailgun/mailgun-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server