Skip to main content
Glama

Export CSV

export_csv
Read-onlyIdempotent

Return a CSV of kept leads plus an app_url for table review/export. Omit lead_ids to export all kept leads in the MCP conversation.

Input Schema

NameRequiredDescriptionDefault
uidNoOptional Firebase uid. Must match the URL uid unless local fallback is enabled.
lead_idsNo
bearer_tokenNoOptional Firebase ID token. Hosted clients normally authenticate with an API key in the Authorization header or ?uid= in the URL instead.
conversation_idNoCreator-list key for durable state. Reuse a returned list_id for follow-ups; when omitted, MCP uses the active generated list for this tool chain.
preferences_modeNoHow to apply preferences for this call: 'stored' uses users/{uid}.agentPreferences, 'override' uses agent_preferences only, and 'none' disables stored filtering for this run.
agent_preferencesNoOptional per-call filtering preferences. Use with preferences_mode='override'. For backwards compatibility, passing this without preferences_mode implies override.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine context beyond them: what the caller receives back (a CSV plus an app_url) and what scope applies when lead_ids is omitted. It says nothing about export size limits or the uid/URL mismatch constraint documented in the schema.

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 sentences, no filler, and the output shape is front-loaded ahead of the default-scope rule. Nothing here repeats the title verbatim or wastes tokens.

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 six optional parameters, 83% schema coverage, no output schema and no nested objects, the description is close to sufficient: it covers what is returned and the default filter scope. The remaining gap is sibling disambiguation against export_crm_csv, which the description never addresses.

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 83%, so the baseline is 3. The description goes beyond the schema for the one undocumented parameter, lead_ids, explaining that omitting it exports the entire kept-lead set for the conversation. It adds no meaning for conversation_id, preferences_mode, or agent_preferences, which is acceptable because those are already documented.

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 names a specific verb+resource ('Return a CSV of kept leads') and even states the return shape (CSV plus app_url for table review/export). It does not, however, distinguish itself from the sibling 'export_crm_csv', which an agent must otherwise infer from the name alone.

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?

'Omit lead_ids to export all kept leads in the MCP conversation' is a useful default-scope rule, and 'table review/export' hints at the use case. But there is no explicit when-to-use/when-not guidance and no routing between this tool and export_crm_csv, list_leads, or export of CRM records.

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