Skip to main content
Glama

Export csv

export_csv
Read-onlyIdempotent

Export as CSV text for analysis: messages, deliveries, events, opt_outs, webhook_deliveries, usage, usage_monthly, audit_log or credit_history. At most 50,000 rows; narrow the date range with from and to.

Input Schema

NameRequiredDescriptionDefault
qNomessages: body/failure text; events: id/payload text
okNowebhook_deliveries
toNoInclusive; a bare date means the end of that day (UTC)
fromNoISO date/time or epoch ms (messages, deliveries, events, webhook_deliveries)
kindYesmessages, deliveries, events, opt_outs, webhook_deliveries, usage, usage_monthly, audit_log or credit_history
typeNoevents, webhook_deliveries
actorNoaudit_log: actor id or part of the actor email
batchNomessages, deliveries: batch id (bc_...)
actionNoaudit_log: one action, or a group prefix with a trailing dot (team.)
monthsNousage: daily rows for the last N months
numberNomessages, deliveries: digits matched against either side
statusNomessages, deliveries
directionNomessages
to_numberNomessages, deliveries: exact recipient (E.164). `to`/`from` are the date range here.
customer_idNomessages, deliveries
endpoint_idNowebhook_deliveries (default: all endpoints)
from_numberNomessages, deliveries: exact sender (E.164)
target_typeNoaudit_log
failure_codeNomessages, deliveries: failed for this reason (the `failure.code` on a message)
created_afterNoaudit_log: same as on GET /audit-logs (from is accepted too)
blocked_reasonNomessages, deliveries: blocked messages with this reason
created_beforeNoaudit_log: same as on GET /audit-logs (to is accepted too)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds two genuinely new facts beyond structured data: the output format is CSV text and there is a hard 50,000-row ceiling, which is exactly the kind of constraint an agent must know before choosing a date range.

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?

Two sentences, front-loaded with the core action and the dataset list, then the constraint. The dataset enumeration is long but functional; nothing is wasted, though the list dominates the payload.

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 22-parameter, kind-switched export tool, the description covers the essential decision inputs: what kinds exist, that output is CSV text, and the row limit. With no output schema, stating the CSV return format matters and is present; per-parameter semantics are fully handled by the schema, so no major gap remains.

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 100% and each of the 22 parameters already documents which kind it applies to, so the schema does the heavy lifting. The description only restates the purpose of from/to for date narrowing, adding no syntax or kind-specific semantics the schema lacks. Baseline 3 applies.

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 gives a specific verb+resource (export as CSV text) and enumerates the nine exportable datasets, which is more informative than the title alone. It stops short of differentiating from siblings like export_consent, export_numbers, or the parallel list_messages/list_events tools, which share the same data domains.

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?

"for analysis" implies the intended use and the 50,000-row cap with "narrow the date range with from and to" gives practical guidance. However there is no explicit statement of when to prefer this over list_messages/list_events for the same data, nor when to use export_consent or export_numbers instead.

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