Skip to main content
Glama

Search Deals

search_deals
Read-only

Find deals across the broker's whole book in one call — searches BOTH landlord-rep deals (prospects, by tenant/company, contact, or property name/address) and tenant-rep deals (locations, by site description/address or client name). Use this for "find the Starbucks deal" or "which deal is on Main St" instead of listing properties/clients and scanning each. Returns normalized rows: deal_type + deal_id feed directly into get_prospect/get_location, set_deal_status, create_deal_comment, etc. Only returns deals the broker participates in. Deals on archived properties/clients are skipped, as in the app; archived_matches says how many were, and include_archived: true searches them too.

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": {
      "query": "<query>"
    },
    "name": "search_deals"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNo"prospect" = landlord-rep deals only, "location" = tenant-rep deals only, "both" = search both sides.both
limitNoMax results PER side (1–50). "both" can therefore return up to 2× this many.
queryYesSearch text — a company/tenant name, site description, or address (e.g. "Starbucks", "Main St").
include_archivedNofalse (default) skips deals on archived properties and clients, as the app does. true also searches them; use it when the user asks for a deal by name and archived_matches says some were skipped.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/destructive flags; the description adds real behavioral context beyond them — result permission scoping ('only returns deals the broker participates in'), silent filtering of archived properties/clients with a counter, and the explicit override via include_archived. It also describes the shape of returned rows and how deal_type + deal_id chain into downstream tools, which no annotation covers.

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 scope, then alternatives, then return behavior — a sensible order with no filler sentences. It is a dense single block using dashes and semicolons, which is efficient but slightly harder to scan than a structured breakdown.

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?

No output schema exists, so the description carries the burden and does: it explains normalized rows, the deal_type + deal_id keys, the archived_matches counter, and downstream tool chaining. For a 4-parameter read-only search this leaves nothing an agent needs before calling it.

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 genuine semantics: it clarifies the prospect-vs-location meaning of side in business terms and explains the workflow purpose of include_archived. The per-side limit multiplier is already in the schema, so the description earns an increment rather than full credit.

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?

Specific verb + resource with explicit scope: 'Find deals across the broker's whole book in one call', and it enumerates the two searchable populations (landlord-rep by tenant/company/contact/property, tenant-rep by site description/address/client). It is clearly distinguishable from list-and-scan approaches and from the get_prospect/get_location siblings it feeds into.

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 when-to-use with concrete user utterances ('find the Starbucks deal', 'which deal is on Main St') and names the anti-pattern to avoid ('instead of listing properties/clients and scanning each'). The include_archived clause also states the exact escalation condition (when archived_matches reports skipped results).

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