Skip to main content
Glama

sync_linkedin_leads

Destructive

Fetch new responses from LinkedIn Lead Gen Forms into leads. LinkedIn has no webhook, so this is a pull: it keeps a per-form position, asks slightly BEHIND it (so two responses with the same timestamp cannot fall through the gap) and de-duplicates on the response id, so a second run creates nothing twice and skips nothing. The first run without a stored position goes back 30 days by default, not to the beginning of time — say since_days to widen it deliberately. Consent is NOT assumed: every lead arrives with marketing_consent unset, because whether the form asked for it is not visible here. Optional: form_id (one form only), since_days, dry_run (show what would be created).

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

Input Schema

NameRequiredDescriptionDefault
dry_runNoFetch and show what would be created, write nothing and do not move the position.
form_idNoOne form URN only. Default: every form on the connected ad account.
since_daysNoOverride how far a first run reaches back. Ignored once a position is stored for that form.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial mechanics beyond the annotations: a per-form watermark queried slightly behind the last position to avoid same-timestamp gaps, de-duplication on response id, a 30-day default lookback, and the important disclosure that marketing_consent is never assumed. However, annotations declare destructiveHint=true and the description never says what could be destroyed or overwritten, which is a material gap for a write tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads what the tool does, then the mechanism, then the operational caveats, then the parameters. The parentheticals ('so two responses with the same timestamp cannot fall through the gap') each resolve a real ambiguity rather than padding, and nothing is repeated without new information.

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?

Covers the pull semantics, dedup guarantees, default window, consent handling, and dry_run behavior—about as much as an agent needs to call this safely on a 3-optional-parameter tool with no output schema. The one omission is what the destructiveHint actually refers to and what shape the created leads take.

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 coverage is 100%, so all three parameters are already documented, and the description mostly restates them (form_id is one form only, dry_run writes nothing). It does add one fact absent from the schema—the 30-day default window for a first run and that since_days is a deliberate widening—so baseline 3 with slight credit is right.

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 with direction of data flow: 'Fetch new responses from LinkedIn Lead Gen Forms into leads.' This clearly separates it from read-side siblings like list_leads or count_leads, since the description frames it as an ingestion/sync operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operating context: LinkedIn has no webhook so this is an explicit pull, and the first run without a stored position defaults to 30 days, which the caller can widen with since_days. It also explains that a second run is safe to call. It stops short of naming an alternative sibling for browsing existing leads, so it is strong context rather than a full routing rule.

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.