Skip to main content
Glama
deyikong

SendGrid MCP Server

by deyikong

Get Email Statistics by Category

get_category_stats
Read-onlyIdempotent

Retrieve email statistics for specific categories over a chosen date range, with results grouped by day, week, or month. Use it to analyze category performance for the past 13 months.

Instructions

Retrieve email statistics for specific categories (available for previous 13 months only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateNoEnd date in YYYY-MM-DD format (defaults to today)
categoriesYesComma-separated list of categories to retrieve stats for
start_dateYesStart date in YYYY-MM-DD format
aggregated_byNoHow to group the statisticsday

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changedv1.0.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark the operation as read-only, idempotent, and non-destructive, and the description adds the meaningful behavioral constraint that data is available only for the previous 13 months. It does not describe return shape or error behavior, but with annotations covering the safety profile, this is sufficient context.

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 one concise sentence with no redundant wording. The core action and resource are front-loaded, and the 13-month limitation is included as a brief, important caveat in parentheses.

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 read-only stats tool with four well-documented parameters and safety annotations, the description captures the essential constraint an agent needs to know: the 13-month limit. No output schema exists, so return structure is not described, but the core invocation context is adequately covered.

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?

The input schema has 100% description coverage, so every parameter is already explained. The description adds only the high-level notion of 'specific categories' and the 13-month data availability, which is useful context but does not add parameter-level detail beyond what the schema already provides.

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?

The description identifies a specific action ('Retrieve') and a specific resource ('email statistics for specific categories'), which distinguishes it from sibling tools like get_global_stats or get_stats_by_country. The title reinforces the same resource, so there is no ambiguity about what this tool operates on.

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 description implies this tool is for category-level email statistics and notes the 13-month availability window, but it does not explicitly state when to choose this instead of get_global_stats or get_stats_by_browser. There are no named alternatives or exclusions, so guidance is only inferable from the resource name and sibling list.

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