Skip to main content
Glama

Sergio by Serviche

Connect a Facebook Page for Meta Lead Ads

connect_facebook_page
Idempotent

Connects one Facebook Page (pageId from meta_leads_status connectablePages) so each Lead Ads lead lands on the Leads page within seconds as a Facebook or Instagram lead with its form answers, and starts the lead follow-ups. Your user must have signed in with Facebook on Connections first. Connecting a Page that needs reconnecting fixes it and runs the leads that waited. Nothing is sent to anyone. Pass the same idempotency_key when retrying.

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": {
      "pageId": "<pageId>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "connect_facebook_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses side effects (starts the lead follow-ups), the remediation semantics of reconnecting a Page, the replay of waited leads, and an explicit non-effect ('Nothing is sent to anyone'). The retry semantics of idempotency_key are reinforced in prose, and the openWorldHint=false / destructiveHint=false hints are consistent with the described behavior.

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 action and its effect, and every clause carries information (auth prerequisite, reconnection behavior, no outbound messages, retry key). The middle portion is a long run-on sentence and the idempotency sentence partly duplicates the schema, costing a point.

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?

For a two-parameter mutation with no output schema, the description covers the prerequisite, the observable outcome, the idempotent retry contract, and the reconnection case — enough for an agent to invoke it correctly without guessing. Remaining unknowns (error shapes) are not needed to call the tool.

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 only 50% — pageId has a pattern but no description — and the description compensates by telling the agent where to obtain pageId (meta_leads_status connectablePages). The idempotency_key guidance largely restates the schema's own description, so the added meaning is concentrated on the one undocumented parameter.

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 (connects one Facebook Page) plus the concrete effect: Lead Ads leads appear on the Leads page within seconds as Facebook/Instagram leads with form answers. It also points to the sibling that supplies the input (pageId from meta_leads_status connectablePages), so it is distinguishable from disconnect_facebook_leads and other lead tools without opening a schema.

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 a clear prerequisite (the user must have signed in with Facebook on Connections first) and names the case where reconnecting a broken Page is the right call, including that queued leads then run. It does not explicitly route away to alternatives (e.g., when to use disconnect_facebook_leads instead), so it is clear context rather than full when/when-not guidance.

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