Skip to main content
Glama
Green-pep

meta-ads-mcp-patched

by Green-pep

create_lead_form

Create lead generation forms on Facebook Pages with custom questions, context cards, and thank-you pages. Collect leads from ads using the required pages_manage_ads permission.

Instructions

Create a new lead generation form on a Facebook Page. Requires pages_manage_ads permission.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesLead form name
page_idYesFacebook Page ID
questionsYesJSON array of questions. Each: {key: string, type: 'CUSTOM'|'EMAIL'|'PHONE'|'FULL_NAME'|'CITY'|'STATE'|'COUNTRY'|'ZIP'|'JOB_TITLE'|'COMPANY_NAME', label?: string}
context_cardNoJSON object for the form's intro card (the headline + body copy shown before the fields), e.g. {"style":"PARAGRAPH_STYLE","title":"...","content":["..."],"button_text":"..."}
thank_you_pageNoJSON object: {title: string, body: string, button_text?: string, button_type?: 'VIEW_WEBSITE'|'DOWNLOAD', website_url?: string}. VIEW_WEBSITE requires website_url
privacy_policy_urlYesURL to privacy policy
follow_up_action_urlNoURL to redirect after submission. Also merged into thank_you_page.website_url when that page needs one and none is set
privacy_policy_link_textNoCustom display text for the privacy policy link
block_display_for_non_targeted_viewerNoHide the form from viewers outside the ad's target audience
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It adds a meaningful permission requirement (pages_manage_ads), but it does not discuss operation side effects, return values, or any destructive/reversible aspects. The 'create new' wording implies mutation, but additional context would be needed for full transparency.

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?

The description is two short, front-loaded sentences with no fluff. The permission note is valuable and earns its place, making the entry highly efficient.

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

Completeness2/5

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

For a tool with 9 parameters, no output schema, and no annotations, the description is too thin. It does not mention what the tool returns (likely an ID), the state of the created form (draft vs. active), or any additional prerequisites beyond the permission. The description is insufficient for an agent to fully anticipate the tool's behavior.

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?

The input schema has 100% parameter coverage with thorough descriptions for all 9 fields, so the schema already explains parameter semantics. The description adds no extra param details, but none are necessary given the schema quality.

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?

The description clearly states the action ('Create'), the resource ('lead generation form'), and the location ('on a Facebook Page'). It distinguishes itself from sibling tools such as get_lead_form and list_lead_forms by focusing on creation.

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

Usage Guidelines3/5

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

The description implies the tool should be used when a new lead generation form is needed, but it does not explicitly state when to use it versus alternatives or provide exclusions. The permission requirement is a prerequisite, not usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Green-pep/meta-ads-mcp-patched'

If you have feedback or need assistance with the MCP directory API, please join our Discord server