Skip to main content
Glama

Count drafts

count_drafts
Read-onlyIdempotent

Count how many inbox drafts the user has added, optionally within a date range or period like this week, this month, this year, or all time. Returns the exact total.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoISO 8601 date, inclusive. Overrides period when given together with from.
fromNoISO 8601 date, inclusive. Overrides period when given together with to.
periodNoPredefined date range to count within (default all_time)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYesHow many there are, up to the cap
cappedYesTrue when there are at least this many and the real total may be higher
periodYesThe period counted, like this_month, or from..to for a date range

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is fully covered. The description adds little beyond annotations: it notes the count reflects drafts the user has 'added' and returns an 'exact total', but discloses no rate limits, auth needs, or edge-case behavior.

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 tight sentences with the core action front-loaded and the filtering caveat immediately after; every clause earns its place with no filler.

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?

An output schema exists, so return values need not be explained (the brief 'exact total' note suffices), and annotations cover the safety profile. The only residual gap is the absence of sibling routing guidance, which is minor for a simple counting tool.

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 coverage is 100%, so the schema already documents to, from, and period with their override semantics. The description loosely echoes the period options ('this week, this month, this year, or all time') but adds no syntax or precedence detail beyond what the schema provides.

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

Purpose4/5

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

States a specific verb (count) and a specific resource (inbox drafts the user has added), which inherently distinguishes it from count_notes and count_literature_notes siblings. It stops short of explicitly naming those alternatives, so it is clear but not fully differentiated in prose.

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 explains the optional filtering behavior (date range or period), which implies how to scope the count. However, it gives no guidance on when to use count_drafts versus count_notes, list_recent_drafts, or search_drafts, and names no exclusions.

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