Skip to main content
Glama
LeadFlow MCP

LeadFlow MCP

by kfairley9999

Export leads CSV

export_leads_csv
Read-onlyIdempotent

Export leads as CSV text for spreadsheet review, with optional stage and date filters, formula-injection protection, and a 5,000-row truncation flag.

Instructions

Export leads as CSV text. Cells that start with =, +, -, or @, including after leading whitespace, tab, or CR, are prefixed with an apostrophe so a spreadsheet will not treat them as formulas. Quotes, commas, and newlines are escaped. The export caps at 5000 rows and sets truncated when that happens. Money is integer cents.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_leads_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNo
stageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare it a safe read. It discloses CSV injection mitigation (apostrophe prefixing of =, +, -, @ even after whitespace/tab/CR), quote/comma/newline escaping, a 5000-row cap with a 'truncated' signal, and that money is integer cents — all behavior an agent cannot get from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, each carrying distinct information, with purpose and format front-loaded. No filler or restatement of the title.

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 no output schema, the description ably covers the return value: CSV text, escaping rules, truncation signaling, and cents representation. The notable gap is the two input parameters, which are entirely undocumented anywhere.

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

Parameters2/5

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

Schema description coverage is 0% and the description never mentions either parameter. 'asOf' and 'stage' remain completely unexplained — whether stage filters rows, whether asOf is a snapshot timestamp or a filter, and their formats are all left to guesswork. The description does not compensate for the coverage gap.

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 plus the output format: 'Export leads as CSV text.' That format detail distinguishes it from the JSON-returning lead tools in the sibling set without needing to name them.

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?

The spreadsheet-oriented escaping rules imply the intended use case, but there is no explicit statement of when to choose this over search_leads or when not to use it. Usage must be inferred from the format description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.