Skip to main content
Glama

Export usage by day

export_messaging_usage
Read-onlyIdempotent

One row per account per UTC day (from and to are YYYY-MM-DD, inclusive, at most 92 days; default the last 30): messages_sent, new_chats and actions by type (invite, profile_view, search, browse, inbox_read (reading your own conversations), post, comment, reaction, endorse, network, chat_action). No message text or recipients. The same as GET /v1/messaging/usage/export?format=json.

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": "export_messaging_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: per-account-per-UTC-day row granularity, a 92-day range cap with a 30-day default, and an explicit privacy guarantee that no message text or recipients are returned.

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

Conciseness4/5

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

One dense but front-loaded sentence leads with row granularity and range rules before listing metrics, followed by a short privacy note and endpoint reference. The parenthetical enumeration of action types is long but each item is informative; nothing is redundant 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?

With no output schema, the description correctly enumerates the returned columns and notes the JSON format via the endpoint reference, and it covers both optional parameters and their defaults. It is complete enough to call correctly, with only minor gaps such as how the row set behaves for accounts with no activity in a day.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the schema only supplies a date pattern, so the description carries the full burden — and does: both from and to are YYYY-MM-DD, inclusive, capped at 92 days, defaulting to the last 30 days. That fully compensates for the bare schema and even explains the schema's $ref relationship implicitly.

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?

The description states the resource and granularity precisely: "One row per account per UTC day" with an enumerated set of metrics (messages_sent, new_chats, actions by type), and identifies the underlying endpoint GET /v1/messaging/usage/export?format=json. It does not explicitly contrast itself with the sibling get_messaging_usage, so the export-vs-report distinction is left to the name.

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?

Usage is implied through constraints (inclusive from/to, at most 92 days, default last 30 days) rather than stated as when-to-use guidance. There is no explicit statement of when an agent should pick this over get_messaging_usage, and no exclusions or prerequisites are given.

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