Skip to main content
Glama

Build a LinkedIn search URL

search_url_build
Read-onlyIdempotent

Turn an audience description into a LinkedIn or Sales Navigator people-search URL, so a campaign source can be described rather than pasted. Returns the url plus what it managed to express — hand it to campaign_set_source.

What it can build: job titles (included and excluded) and free-text keywords with boolean operators. What it CANNOT build: geography, industry, company size, seniority and years-in-role. Sales Navigator only accepts those as numeric ids from its own typeahead (id:103644278 is United States), they cannot be derived from a name, and a wrong id silently searches the wrong audience. For those, either ask the user to paste a Sales Navigator URL with the filters already set, or pass the ids through extraFilters if the user supplies them. Never guess one.

Recruiter (/talent/) URLs cannot be built at all — ask the user for one.

Input Schema

NameRequiredDescriptionDefault
schoolNoBasic search only: school, free text.
titlesNoJob titles to include, as plain text.
companyNoBasic search only: current company, free text.
surfaceYes"basic" is ordinary LinkedIn search; "sales-navigator" needs a Sales Navigator seat.
keywordsNoFree text. Supports boolean operators, e.g. '"chatbot" OR "AI agent"'.
lastNameNoBasic search only.
firstNameNoBasic search only.
extraFiltersNoId-based filters, only when the USER supplied the ids or they came from a URL they pasted. Do not populate this from memory.
excludeTitlesNoJob titles to exclude. Sales Navigator only — basic search cannot express an exclusion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent; the description adds the critical failure mode — a wrong numeric id silently searches the wrong audience — plus the return payload ('url plus what it managed to express') and the downstream handoff. That is behavior an agent cannot infer from annotations or 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?

Front-loads the purpose and return contract, then splits capability and non-capability into clearly labelled blocks. Dense and largely waste-free, though the warnings about ids are restated in both prose and the extraFilters schema description.

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?

A 9-parameter tool with no output schema, and the description still covers return shape, the surface tradeoffs, the constraint on id-based filters, and the handoff target. 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; the description still adds value by explaining why id-based filters cannot be derived from names (Sales Navigator typeahead ids, e.g. id:103644278) and that excludeTitles is unavailable on basic search. It stops short of mapping the basic-search-only fields (school, company, firstName, lastName), which the schema already labels.

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 ('turn an audience description into a LinkedIn or Sales Navigator people-search URL') and frames it as a source-description step feeding campaign_set_source. An agent can distinguish it from campaign_* and lead_* siblings without opening the 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 enumerates what it can build versus what it cannot, and gives concrete alternatives for the gaps: ask the user to paste a filtered URL, or pass user-supplied ids through extraFilters, never guess. It also excludes Recruiter /talent/ URLs and routes those to the user.

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