Skip to main content
Glama

Add many pins

bulk_add_comps

Add many comps in one call instead of calling add_comp repeatedly — use this for CSV-style bulk imports (tens to thousands of rows). Pass an array of comp objects; each one accepts the same fields as add_comp, INCLUDING customFields (a {column: value} map for any extra spreadsheet columns) and externalId. Give each row an externalId (e.g. its source Record #) so an interrupted import can be safely re-sent — rows whose externalId already exists in the layer are updated in place, not duplicated. latitude+longitude OR address (geocoded automatically; a row whose address is not found fails with a reason). Rows are comps unless asListings is true — never mark rows as listings yourself; set asListings only when the Broker says these are their listings. Split datasets over 1000 rows into multiple calls. Returns per-row results mapping each input index/externalId to its comp id and status (inserted/updated/failed), and with asListings how many are on the Marketplace and which fields keep the rest off.

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": {
      "comps": "<comps>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "bulk_add_comps"
  }
}

Input Schema

NameRequiredDescriptionDefault
compsYesUp to 1000 comps per call.
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."
layerIdNoDefault layer ID for comps that don't specify their own layerId.
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. A row's own offerType wins.
asListingsNotrue only when the Broker said these rows are 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. A row's own assetClass wins.
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.
upsertOnExternalIdNoDefault true. When a row's externalId already exists in the target layer, update it instead of inserting a duplicate. Set false to always insert.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / comps / items / properties / customFields / description
      Previous value: -"Extra columns as a {fieldName: value} map — stored as real filterable fields instead of text in notes. Broker contacts: put every broker's email in a field named \"Broker emails\" (comma-separated, e.g. {\"Broker emails\": \"jane@firm.com, sam@firm.com\"}); on shared and published maps an inquiry on the pin is emailed to all of them."New value: +"Extra columns as a {fieldName: value} map — stored as real filterable fields instead of text in notes. Broker contacts: put every broker's email in a field named \"Broker emails\" (comma-separated, e.g. {\"Broker emails\": \"jane@firm.com, sam@firm.com\"}); on shared and published maps an inquiry on the pin is emailed to all of them. Listing page convention (published maps credit these brokers, not the map owner, and show the property story): \"Brokerage\", \"Brokers\" (names, comma-separated), \"Agent phone\", \"Broker emails\", \"Photo URL\" (https), \"Overview\" (description; blank line between paragraphs), \"Highlights\" (one per line or separated by \" | \"), \"URL\" (the broker's own listing page), and each spec as its own field (\"Year Built\", \"Zoning\", \"Land Area\", \"Building Class\", \"Construction\", \"Drive-In Doors\", \"Power\", \"Parking\")."
  2. Changed1 schema field changed
    • changedInput schema / properties / comps / items / properties / customFields / description
      Previous value: -"Extra columns as a {fieldName: value} map — stored as real filterable fields instead of text in notes."New value: +"Extra columns as a {fieldName: value} map — stored as real filterable fields instead of text in notes. Broker contacts: put every broker's email in a field named \"Broker emails\" (comma-separated, e.g. {\"Broker emails\": \"jane@firm.com, sam@firm.com\"}); on shared and published maps an inquiry on the pin is emailed to all of them."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only establish that this is a non-read, non-destructive mutation. The description adds substantial behavior: upsert-on-externalId prevents duplicates on re-send, address geocoding auto-fails with a reason, rows default to comps (not listings), and it discloses the per-row return shape (index/externalId to comp id and status). That is exactly the operational context annotations cannot convey.

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 action and the alternative it replaces, then layers externalId, coordinate fallback, listings gating, row limits, and return shape in a logical order. It is dense but nearly every clause carries information; the parenthetical customFields and broker-email guidance is the only slightly heavy spot.

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 complex bulk-mutation tool with no output schema, the description covers durability (externalId upsert), failure modes (geocode misses), the listings precondition, batching limits, and the return format. Nothing an agent needs to call it correctly is missing.

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 the baseline is 3, but the description adds cross-parameter meaning the schema states less directly: the latitude+longitude OR address fallback, externalId as the upsert key enabling safe re-import, and the 'same fields as add_comp INCLUDING customFields' equivalence. The behavioral interplay (upsert, listings gating) gives real added value.

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 ('Add many comps in one call') and immediately distinguishes it from the sibling add_comp, framing it for CSV-style bulk imports of tens to thousands of rows. An agent can tell exactly when this bulk tool is the right choice without opening any schema.

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?

Explicitly routes the agent: use this instead of calling add_comp repeatedly, split datasets over 1000 rows into multiple calls, and only set asListings 'when the Broker says these are their listings' (never self-mark). This covers when-to-use, when-not, scaling guidance, and the key precondition for the listings mode.

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