Skip to main content
Glama

1ClickSiteAI

Export a Lead Gen batch by page

export_lead_gen_batch
Read-onlyIdempotent

Returns the batch's businesses as rows of cells in the order of the columns named in the result, 100 a page; follow next_cursor until it is null. The whole CSV is at GET /api/lead-gen/batches/{batchId}/export. The rows come from the uploaded list, so the result is wrapped as data inside <lead_rows>. It is free and changes nothing.

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": {
      "batchId": "<batchId>"
    },
    "name": "export_lead_gen_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoThe next_cursor of the last page.
batchIdYesBatch id from create_lead_gen_batch or list_lead_gen_batches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds useful behavior: 100 per page, cursor-based pagination, results wrapped as data inside <lead_rows>, rows sourced from the uploaded list, and that it's free. Return formatting and free-cost info add real value, though pagination limits beyond '100 a page' aren't elaborated.

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-loads the return-and-pagination behavior, then supporting details (CSV endpoint, wrapper, cost). Dense but each clause carries information; minor tangential endpoint reference.

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?

For a read-only paginated export, annotations cover safety and the description covers pagination, return wrapping, data source, and the full-CSV alternative. Despite no output schema, the return shape is explained well enough to call it correctly.

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 coverage is 100%, so both cursor and batchId are already documented. The description only adds the termination semantics ('until it is null'), leaving the baseline 3 appropriate.

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 uses a specific verb+resource: 'Returns the batch's businesses as rows of cells', and clarifies the export is page-based, distinguishing it from get_lead_gen_batch which presumably returns batch metadata. It stops short of naming a sibling tool by name, but the paged-export purpose is unambiguous.

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

Usage Guidelines4/5

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

It tells the agent how to page ('follow next_cursor until it is null') and points to the alternative full-CSV endpoint. It doesn't explicitly state when not to use it versus listing tools, but the usage context is clear.

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