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). date_from/date_to (ISO 8601, interpreted as UTC) are REQUIRED for cdr/outbound_cdr/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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "export_type": "<export_type>"
    },
    "name": "create_export"
  }
}

Input 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 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 and outbound_sms.
did_numberNoOptional DID phone number filter, digits only. For "cdr"/"did" it matches the DID number, for "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.

  1. Changed4 schema fields changed
    • changedInput schema / properties / date_from / description
      Previous value: -"Start 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."New value: +"Start of the period, ISO 8601 date-time (UTC), e.g. \"2026-07-01T00:00:00Z\". REQUIRED for cdr, outbound_cdr, inbound_sms and outbound_sms."
    • changedInput schema / properties / date_to / description
      Previous value: -"End 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."New value: +"End of the period (exclusive for CDR/SMS types), ISO 8601 date-time (UTC). REQUIRED for cdr, outbound_cdr, inbound_sms and outbound_sms; a value in the future is clamped to the current time."
    • changedInput schema / properties / did_number / description
      Previous value: -"Optional 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."New value: +"Optional DID phone number filter, digits only. For \"cdr\"/\"did\" it matches the DID number, for \"inbound_sms\" the receiving number, for \"outbound_sms\"/\"outbound_cdr\" the sending number (caller ID). Not accepted for order/payment."
    • changedInput schema / properties / export_type / enum
      Previous value: -[
      -  "cdr",
      -  "outbound_cdr",
      -  "did",
      -  "order",
      -  "payment",
      -  "inbound_sms",
      -  "legacy_inbound_sms",
      -  "outbound_sms"
      -]New value: +[
      +  "cdr",
      +  "outbound_cdr",
      +  "did",
      +  "order",
      +  "payment",
      +  "inbound_sms",
      +  "outbound_sms"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare that this is not read-only, not idempotent, and not destructive. The description adds real behavioral context beyond that: the work runs in the background for up to ~5 minutes, future date_to is clamped (surfaced as date_to_clamped_to in the response), a future date_from is an error, and a 2-month retention limit applies to CDR/SMS exports.

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 action and tightly written, with every sentence carrying a distinct constraint (type list, date rules, clamping, polling). It is dense enough that the parenthetical date example and the type glossary make it a single heavy paragraph rather than a scannable structure.

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?

There is no output schema, so the description takes responsibility for the return contract (export_id, date_to_clamped_to, eventual download link) and for the async completion path via get_export. For a five-parameter mutation tool, that is complete enough to invoke and follow through correctly.

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 earns extra credit by adding constraints the schema does not state: the current-and-2-previous-months window, that dates are 'not accepted' for did, and the clamping/error asymmetry between date_from and date_to. It does not restate the DID-number-per-type matching rules, which remain schema-only.

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?

States a specific verb and resource ("Start an asynchronous CSV export of the authenticated customer's data") and scopes the resource with the authenticated customer. It also enumerates the valid export types in plain language, so an agent understands the tool's surface without opening the enum.

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 per-export-type conditions: dates are REQUIRED for cdr/outbound_cdr/inbound_sms/outbound_sms, optional for order/payment, and not accepted for did. It names the follow-up alternative (poll get_export with the returned export_id) and the end goal (hand the user the download link), leaving nothing 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