Skip to main content
Glama

leads_typeahead

Lightweight name search for type-ahead dropdowns. Matches lead_name from the start, case-insensitively, and returns at most limit rows (default 20, hard cap 50). With no q, returns the most recently updated leads so the dropdown is not empty on open.

Each row carries the lead's current discovery links (discovery_company_guid/discovery_person_guid plus resolved names) so a caller can warn before leads_assign_discovery replaces them. For full lead listing with filters and columns, use workspaces_leads_list instead.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/typeahead/

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

Input Schema

NameRequiredDescriptionDefault
qNoName prefix to match (case-insensitive).
limitNoMax rows to return. Default 20, capped at 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses prefix-anchored case-insensitive matching, the default row count and hard cap, and the no-`q` fallback to most-recently-updated leads (so the dropdown is never empty). It also explains why discovery links are returned — to warn before `leads_assign_discovery` replaces them — which is behavioral context unavailable anywhere else. It stops short of stating auth/permission requirements or rate limiting.

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 purpose, then the alternative routing, then the return-payload rationale. Three tight paragraphs with little waste. The final 'Method:' line is redundant metadata, though it does not obscure anything.

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

Completeness4/5

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

For a two-optional-parameter read tool with no output schema, it covers matching semantics, limits, empty-input behavior, and the shape of returned rows. The one meaningful omission is that no output schema exists and the description only sketches row fields rather than enumerating them fully.

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 3 is the baseline, but the description adds meaning the schema does not: that matching is anchored at the start of the name rather than substring, and specifically what an omitted `q` produces. That fallback behavior is the key semantic gap the schema leaves open.

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 ('Lightweight name search' over leads for type-ahead dropdowns) and immediately distinguishes itself from the sibling `workspaces_leads_list`, which is described as the full listing tool. An agent can pick between them without opening either 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?

Gives explicit when-to-use (type-ahead dropdowns), names the alternative for the other case ('For full lead listing with filters and columns, use `workspaces_leads_list` instead'), and covers the edge case of calling with no `q`. Nothing is left to inference.

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.