Skip to main content
Glama

search_prospects

Read-onlyIdempotent

Search prospects across every campaign in the workspace, with the same filters as the app's Prospects page: campaign, sending account, state (including suppressed), blocklisted, replied, contacted, how they were added (app, API, MCP, integration, or unknown for older rows), and a free-text query. Each prospect carries addedVia {channel, method, actorName, createdAt}. meta.total is the total matching the filters; pass meta.nextCursor back as cursor for the next page. Searches across every campaign. For one campaign's prospects use list_campaign_prospects.

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

Input Schema

NameRequiredDescriptionDefault
qNoFree-text query (name / job title / company / email)
limitNoPage size. Default 50, max 200.
stateNoOnly prospects in this state (suppressed = another campaign already owns the lead). Omit for all.
cursorNoOpaque pagination cursor from a previous response's meta.nextCursor
repliedNotrue = state replied, false = everyone who hasn't replied.
added_viaNoHow the person was added: app, api, mcp, integration, or unknown (added before this was tracked).
contactedNotrue = sequence has started (current step >= 1), false = not contacted yet (step 0).
account_idNoOnly prospects sent from this LinkedIn account.
blocklistedNoFilter by whether the prospect is blocklisted. Omit for both.
campaign_idNoOnly this campaign (id from list_campaigns). Omit for no filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description still adds real behavioral value beyond that: it discloses the per-prospect addedVia object shape, the meaning of meta.total versus the filtered set, and the meta.nextCursor pagination contract. It does not state default page size behavior in prose, but that gap is minor given the schema.

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?

The scope statement, filter enumeration, and pagination contract are front-loaded and mostly earn their space. The main flaw is redundancy: the workspace-wide scope is asserted again mid-description ('Searches across every campaign') after being stated in the first clause, which could be trimmed.

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?

With 10 all-optional parameters and no output schema, the description carries the full burden, and it does so: it documents the response fields (addedVia internals, meta.total, meta.nextCursor) and the pagination procedure. An agent can construct a correct first call and page through results without consulting anything else.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every filter is already documented in the input schema, making 3 the correct baseline. The description reinforces the filter set and clarifies edge semantics such as suppressed meaning another campaign owns the lead and 'unknown' covering pre-tracking rows, but most of that repeats what the schema text says.

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?

Opens with a specific verb and resource ('Search prospects across every campaign in the workspace') and immediately anchors scope to workspace-wide rather than single-campaign. It names the sibling it is not ('For one campaign's prospects use list_campaign_prospects'), so an agent can separate the two 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?

States the operating context (workspace-wide search mirroring the app's Prospects page) and provides an explicit routing rule to the alternative tool for single-campaign lookups. The one open question is whether other read paths exist, but the definition supplies the primary when-to-use/when-to-use-other decision directly.

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