Skip to main content
Glama
meta-ad-library-mcp

meta-ad-library-mcp

get_ad_library_url

Generate a direct, pre-filtered Meta Ad Library URL from a keyword and country code to support manual ad verification and creative preview.

Instructions

Generate a direct, pre-filtered Meta Ad Library URL for manual human verification and creative preview.

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": {
      "keyword": "<keyword>"
    },
    "name": "get_ad_library_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordYesBrand name or search query.
countryCodeNoTwo-letter country code. Defaults to "US".US

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It conveys that the output is a URL for human use, which implies a safe, non-mutating operation, but it never says whether a network call is made, which filters are baked in, whether the link expires, or whether it requires an authenticated Meta session.

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?

A single front-loaded sentence with the action first and the purpose qualifier second; nothing is redundant or padded.

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?

For a 2-parameter tool with full schema coverage and no output schema, the essentials are present: action, resource, and intended human use. What is missing is the nature of the return value (a plain string?) and whether any live query occurs, which an agent would want before calling it.

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 both parameters (keyword, countryCode) are already fully documented in the schema, including the 'US' default. The description only implies that these become URL filters via 'pre-filtered' and adds no format or encoding detail beyond the schema, so the baseline 3 applies.

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?

Names a concrete verb ('Generate') and resource ('Meta Ad Library URL') plus the qualifier 'pre-filtered', so the agent knows this produces a URL rather than ad data. It implicitly distinguishes itself from a data-returning sibling via 'for manual human verification and creative preview', but no sibling is named explicitly.

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?

The phrase 'for manual human verification and creative preview' gives a clear trigger condition: use when a human needs to eyeball results in the browser rather than get programmatic ad data. There is no explicit when-not guidance or named alternative, which keeps this below a 5.

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