Skip to main content
Glama

Import spreadsheet

import_file

Import an entire spreadsheet of pins in ONE call — the direct replacement for looping add_comp/bulk_add_comps row by row. Also imports map overlays from KML/KMZ/GeoJSON files (fileUrl ending in .kml/.kmz/.geojson): lines such as thoroughfare plans / MTPs, utility runs and polygons keep their real shape and draw in the layer color; MultiGeometry is merged, KML style junk is dropped, and road names like 'Friendship Rd (4/120)' get Lanes and ROW (ft) customFields. Give either fileUrl (a downloadable CSV/XLSX/KML/KMZ/GeoJSON link) or csvText (the raw CSV content pasted as a string). The server parses it, auto-detects the header row and columns (name, lat/lng, address parts, price, acreage, notes, record #), keeps every other column as filterable customFields, geocodes rows that only have addresses (rows whose address is not found are skipped with a reason), and upserts by externalId so a re-run updates instead of duplicating. Rows are comps; they become Listings only with asListings:true, which you set only when the Broker says these are their listings — never infer it from the columns. Start with dryRun:true to see the detected column mapping and a sample before writing anything. Up to 2000 rows per call.

Input Schema

NameRequiredDescriptionDefault
sheetNoXLSX only: sheet name to import. Default: first sheet.
dryRunNoIf true, parse and return the detected column mapping + 3 sample rows WITHOUT writing. Recommended first step.
contextYesExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."
csvTextNoRaw CSV content as a string (paste the file contents). Provide this OR fileUrl.
fileUrlNoPublic downloadable URL of a .csv, .xlsx, .kml, .kmz or .geojson file. Provide this OR csvText.
layerIdNoTarget layer for every imported row. Provide this OR newLayerName.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
offerTypeNoWith asListings: the Offer type for every row. An "Offer type" column in the file wins.
asListingsNotrue only when the Broker said this file is their listings: every row becomes a Listing (Active, confirmed today, the caller as Listing broker). Default false: rows are comps and are never inferred as listings.
assetClassNoWith asListings: the Asset class for every row. An "Asset class" column in the file wins.
newLayerNameNoCreate a new layer with this name and import into it.
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / fileUrl / description
      Previous value: -"Public downloadable URL of a .csv or .xlsx file. Provide this OR csvText."New value: +"Public downloadable URL of a .csv, .xlsx, .kml, .kmz or .geojson file. Provide this OR csvText."
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds real value beyond that with upsert-by-externalId semantics (re-runs update rather than duplicate), the 2000-row ceiling, and geocode-skip behavior for unmatched addresses. However, it says little about permissions/auth requirements or what happens on partial failure partway through a large write.

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 the core capability and the sibling replacement in the first sentence, with operational caveats following. It is dense and the KML style-junk/MultiGeometry/Lanes-and-ROW details run long for a single paragraph, but every clause conveys actionable behavior rather than filler.

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 12-parameter write tool with no output schema, the description covers parsing, header auto-detection, customField retention, geocoding fallback, upsert keying, batch limits, and the dryRun preview. An agent has enough to call it correctly without opening the schema.

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 100%, so baseline is 3, but the description adds decision-level meaning: the fileUrl-vs-csvText exclusivity, the dryRun-first workflow, and the strong caution that asListings must come from the Broker rather than column inference. It does not add much beyond the schema for context/llm_model/conversation_id, which the schema already documents thoroughly.

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?

The opening sentence states a specific verb and resource ('Import an entire spreadsheet of pins in ONE call') and explicitly positions it against siblings ('the direct replacement for looping add_comp/bulk_add_comps row by row'). It also distinguishes the second mode (KML/KMZ/GeoJSON map overlay import) with concrete examples of what those files contain.

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?

It gives explicit selection rules: supply either fileUrl or csvText, start with dryRun:true to preview before writing, and set asListings:true only when the Broker says the file is their listings and 'never infer it from the columns'. Alternatives and when-not conditions are both stated outright.

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