Skip to main content
Glama

Create Export

create_export

Start an asynchronous CSV export of the authenticated customer's data. export_type: "cdr" (inbound call detail records), "outbound_cdr" (outbound call detail records), "did" (the customer's phone numbers), "order", "payment", "inbound_sms" or "outbound_sms" (SMS logs). "legacy_inbound_sms" is the deprecated per-delivery-attempt view of the same inbound SMS data — prefer "inbound_sms", which has one row per SMS. date_from/date_to (ISO 8601, interpreted as UTC) are REQUIRED for cdr/outbound_cdr/inbound_sms/legacy_inbound_sms/outbound_sms and limited to the current and 2 previous months; optional for order/payment; not accepted for did. A date_to in the future (e.g. today end of day for "export this month") is clamped to the current time — the response then carries date_to_clamped_to; a date_from in the future is an error. The export runs in the background (typically up to 5 minutes); poll get_export with the returned export_id until it is completed, then give the user the download link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional friendly name shown in the panel Exports list.
date_toNoEnd of the period (exclusive for CDR/SMS types), ISO 8601 date-time (UTC). REQUIRED for cdr, outbound_cdr, inbound_sms, legacy_inbound_sms and outbound_sms; a value in the future is clamped to the current time.
date_fromNoStart of the period, ISO 8601 date-time (UTC), e.g. "2026-07-01T00:00:00Z". REQUIRED for cdr, outbound_cdr, inbound_sms, legacy_inbound_sms and outbound_sms.
did_numberNoOptional DID phone number filter, digits only. For "cdr"/"did" it matches the DID number, for "inbound_sms"/"legacy_inbound_sms" the receiving number, for "outbound_sms"/"outbound_cdr" the sending number (caller ID). Not accepted for order/payment.
export_typeYesWhat to export.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (non-read-only, non-destructive, non-idempotent, closed-world). The description adds the behavior that actually matters here: the export runs in the background for up to ~5 minutes, date ranges are limited to the current and 2 previous months, future date_to is silently clamped (surfaced as date_to_clamped_to) while a future date_from is an error, and the final output is a download link. This is substantial disclosure beyond the structured fields.

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?

Front-loaded with the purpose, then ordered by enum semantics, date rules, and polling workflow, with no filler sentences. It is a dense single block without visual breaks, which slightly hurts scanability for a description this long, but every sentence carries load-bearing information.

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

Completeness5/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 carries the return-value burden and does so: it promises an export_id, warns about the date_to_clamped_to field, and explains the terminal download link. Combined with the polling instruction and per-type date rules, an agent has everything needed to call this correctly and handle the response.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning the schema lacks: the semantics of every export_type enum value (including the deprecated legacy view and its row-granularity distinction), the current-plus-2-months window that appears nowhere in the schema, and the error/clamp asymmetry between date_from and date_to. Some date-requirement text duplicates the schema, which keeps this from a 5.

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?

Opens with a specific verb+resource+format+scope: "Start an asynchronous CSV export of the authenticated customer's data." An agent can immediately separate this from siblings like get_export (poll status) and list_exports (enumerate existing exports), both of which are named or implied.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance per export_type, states which types require/accept/forbid date ranges, deprecates legacy_inbound_sms in favor of inbound_sms, and names the follow-up tool and workflow: "poll get_export with the returned export_id until it is completed." Nothing about selection is left to inference.

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