Skip to main content
Glama
Hermoso

Hermoso

Official

Pull competitor ads

pull_competitor_ads

Fetch a named brand’s live Meta ads from the Facebook and Instagram Ad Library, deduplicated and sorted, to see what competitors are running.

Instructions

Use this when the user names a brand and asks what ads it is running ("show me the ads is running"). It pulls that brand’s live ads from the Meta (Facebook and Instagram) Ad Library, deduplicated and sorted, in a few seconds. Covers the Meta Ad Library only; for a broader search across brands or platforms use research_ads. Spends credits.

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

Input Schema

NameRequiredDescriptionDefault
urlNosame as domain
nameNosame as companyName
sortNo'longest_running' (default) etc.
brandNosame as companyName
limitNomax ads per platform (default 30)
domainNothe advertiser domain, e.g. liquiddeath.com — a full website URL works (url / website are read as this too). Pass companyName OR domain
companyNosame as companyName
countryNo2-letter, default 'US'
websiteNosame as domain
get_costNotrue: return the price only; nothing runs or bills
companyNameNothe advertiser name, e.g. "Liquid Death" (company / brand / name are read as this too)
idempotency_keyNochosen once, resent unchanged on retries: the same key never buys twice
expected_creditsNothe get_cost price; refused unbilled if the live price differs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.532
    • addedInput schema / properties / expected_credits
      Added value: +{
      +  "description": "the get_cost price; refused unbilled if the live price differs",
      +  "type": "number"
      +}
    • addedInput schema / properties / get_cost
      Added value: +{
      +  "description": "true: return the price only; nothing runs or bills",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "chosen once, resent unchanged on retries: the same key never buys twice",
      +  "type": "string"
      +}
  2. Changed7 schema fields changedv0.1.320
    • addedInput schema / properties / brand
      Added value: +{
      +  "description": "same as companyName",
      +  "type": "string"
      +}
    • addedInput schema / properties / company
      Added value: +{
      +  "description": "same as companyName",
      +  "type": "string"
      +}
    • changedInput schema / properties / companyName / description
      Previous value: -"the advertiser name"New value: +"the advertiser name, e.g. \"Liquid Death\" (company / brand / name are read as this too)"
    • changedInput schema / properties / domain / description
      Previous value: -"the advertiser domain"New value: +"the advertiser domain, e.g. liquiddeath.com — a full website URL works (url / website are read as this too). Pass companyName OR domain"
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "same as companyName",
      +  "type": "string"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "same as domain",
      +  "type": "string"
      +}
    • addedInput schema / properties / website
      Added value: +{
      +  "description": "same as domain",
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv0.1.161
    • removedInput schema / properties / platforms
      Removed value: -{
      -  "description": "default ['facebook']; add 'google','linkedin'",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "facebook": {
      -      "description": "Meta results ({ads[], matched} or {error}; null when not requested)"
      -    },
      -    "google": {
      -      "description": "Google results ({ads[], cursor} or {error}; null when not requested)"
      -    },
      -    "linkedin": {
      -      "description": "LinkedIn results ({ads[], cursor} or {error}; null when not requested)"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  4. Addedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and destructiveHint=false, and the description adds real context beyond them: credit consumption, a few-second latency, and deduplicated/sorted output. It does not mention the get_cost/expected_credits preflight or idempotency behavior, which matter for a billing tool, so it stops short of a 5.

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?

Three short sentences, front-loaded with the trigger, then scope, then the alternative and cost warning. No filler.

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 13-parameter, no-output-schema tool, the description covers purpose, scope, cost, and output ordering. It omits the cost-preflight and retry-safety flow that the schema exposes, which an agent would need to call it safely, keeping it at 4.

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 100%, so every parameter including the companyName/domain aliases, country, limit, sort, and get_cost is already documented. The description adds no parameter-level meaning 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.

Purpose5/5

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

States a specific verb and resource (pull a brand's live ads from the Meta Ad Library) and scopes it to Facebook/Instagram, which lets an agent separate it from research_ads and the platform-specific search tools.

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

Usage Guidelines5/5

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

Gives an explicit trigger (user names a brand and asks what ads it runs), an explicit exclusion with the alternative (broader cross-brand/platform search → research_ads), and warns that it spends credits.

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

Deploy Server

Other Tools