Skip to main content
Glama

get_sample_lead_csv

Read-onlyIdempotent

Get a ready-to-fill CSV template for importing leads, with one column per custom variable this workspace has registered. Use it when you're about to build a lead file and want the exact headers the importer accepts, or when a user asks what a lead CSV should look like. Returns the file content as text plus the suggested filename, and apiRows: the same example leads already converted to the shape this API takes. IMPORTANT: the two shapes differ. In the CSV a variable is a TOP-LEVEL column; in any API call (push_leads with leads, add_leads_to_campaign) the same value must be NESTED under custom, because a loose top-level key is accepted by the request schema and then silently dropped. Copy apiRows rather than transposing the CSV headers yourself. Built-in columns map to lead fields. Every OTHER column is IGNORED by default when the file is uploaded in the app, and only becomes a {{token}} if the person mapping it opts that column in, so a messy export cannot fill the workspace with junk variables. Note this differs from the API path you are using: keys you put inside custom are always kept and registered automatically. One example row deliberately leaves a variable blank, which is what a lead missing that value looks like: it gets the step's fallback message instead of the personalized one. Set sink to match where you will upload the file: campaign or lead_list.

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": "get_sample_lead_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinkNoWhere the file will be uploaded. 'campaign' (default) offers the columns a campaign audience reads; 'lead_list' also includes the enrichment columns (headline, location) that a lead list stores. Getting this wrong isn't fatal, but a column the target ignores is silently dropped on import.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safe-read profile (readOnlyHint, idempotentHint, destructiveHint), yet the description adds substantial context beyond them: the exact return payload (file text, suggested filename, apiRows), the top-level-vs-nested `custom` trap where keys are silently dropped, and the mapping opt-in behavior for non-built-in columns. This is the kind of silent-failure disclosure that prevents misfires.

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 purpose and the return shape, then the critical CSV-vs-API warning. Dense but nearly every sentence carries a distinct instruction; the longest sentence stacks three separate caveats about the variable blank/mapping behavior, which is on the edge of overload but still purposeful.

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 must carry return semantics, and it does: file content as text, suggested filename, and apiRows with their shape. Combined with the import-mapping caveats and the sink decision, an agent has everything needed to call and interpret this 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?

Only one parameter, documented at 100% coverage in the schema including the enum meanings and the silent-drop consequence. The description restates the sink mapping ('campaign or lead_list') without adding format or syntax detail beyond the schema, so baseline 3 applies.

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 and resource: 'Get a ready-to-fill CSV template for importing leads,' scoped to the workspace's registered custom variables. It is clearly distinguished from the mutating siblings push_leads and add_leads_to_campaign, which it names as the different-shape alternative.

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 triggers ('about to build a lead file,' 'a user asks what a lead CSV should look like') and routes the agent away from transposing the CSV by hand, telling it to copy `apiRows` instead. It also ties the sink choice to where the file will be uploaded, which is the practical decision point.

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