Skip to main content
Glama
Facebook Ads Library MCP Server

Facebook Ads Library MCP Server

get_meta_platform_id

Read-only

Search the Meta Ad Library to find a brand's Meta Platform ID needed before retrieving its ads.

Instructions

Search for companies or brands in the Meta Ad Library and return their platform IDs. Use this tool when you need to find a brand's Meta Platform ID before retrieving their ads. This tool searches the Facebook Ad Library to find matching brands and their associated Meta Platform IDs for ad retrieval.

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": {
      "brand_names": "<brand_names>"
    },
    "name": "get_meta_platform_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
brand_namesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "get_meta_platform_idOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the agent knows this is a safe, external search. The description adds that it queries the Facebook Ad Library for brand matches, which is useful context. It does not disclose how ambiguous or multiple matches are handled, which matters for a name-based external search.

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

Conciseness3/5

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

The core purpose is front-loaded in the first sentence, but the third sentence largely restates the first ('searches the Facebook Ad Library to find matching brands and their associated Meta Platform IDs'), adding redundancy 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?

With an output schema present, return values need not be explained, and the description covers the lookup purpose and sequencing clearly. The main remaining gap is how partial or ambiguous brand-name matches are resolved for a single-parameter open-world search.

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 0%, so the description carries some burden; it does indicate the input is brand/company names. However, it does not clarify that brand_names accepts either a single string or an array of strings, or how multiple names are treated in the response.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: search companies or brands in the Meta Ad Library and return their platform IDs. The phrase 'before retrieving their ads' implicitly separates it from get_meta_ads, but no sibling is named directly, so differentiation is inferred rather than explicit.

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?

It gives a clear when-to-use condition: 'Use this tool when you need to find a brand's Meta Platform ID before retrieving their ads.' That establishes the lookup-then-fetch workflow. No explicit when-not-to-use case or named alternative is given, keeping it short of a 5.

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