Skip to main content
Glama

export_csv

Exports Google Maps leads to an Excel-ready CSV file, computing scores for any lead that lacks one before writing.

Instructions

Write leads to a CSV file on the machine running the server (UTF-8 with BOM, opens in Excel). Scores are computed for leads that lack one. Path must end in .csv; relative paths resolve against MLS_OUTPUT_DIR or the server working directory. Default: leads-.csv.

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": {
      "leads": "<leads>"
    },
    "name": "export_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOutput file path ending in .csv
leadsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does it well: encoding (UTF-8 BOM), Excel compatibility, silent score computation for unscored leads, path resolution against MLS_OUTPUT_DIR, and the default filename. It omits whether an existing file is overwritten or appended, and whether the write is atomic or permission-gated.

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?

Four dense sentences, front-loaded with the action and immediately followed by the surprises (BOM/Excel, implicit scoring, path rules, default name). No filler, but the path rules and filename default could be grouped more tightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the return value (path? count? bytes written?) is undocumented, and overwrite/append behavior on an existing file is unstated — both material for a write tool. What is covered is covered well, but these gaps matter given zero annotation support.

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 50% and the description compensates for the weak half: the `path` parameter gains format validation (.csv suffix), resolution semantics (MLS_OUTPUT_DIR / working directory) and its default value. The `leads` payload is left entirely to the schema, and the 500-item cap is not mentioned.

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?

States a concrete verb and resource: "Write leads to a CSV file on the machine running the server." It also scopes where the file lands (server filesystem), which is the key distinguishing fact. No sibling tool does CSV export, so nothing further is needed to distinguish it, though it never explicitly says so.

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?

Usage is only implied: you call it to dump a lead set to disk. There is no explicit when/when-not guidance, and notably no pointer clarifying the relationship to score_leads even though the description reveals this tool silently computes missing scores — a real routing ambiguity left unaddressed.

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

Deploy Server

Other Tools