Skip to main content
Glama

Find related ads

find_similar_ads
Read-only

Find ads related to one source ad by an explicit overlap basis: fanpage (same Facebook page_id) or domain (same exact landing_domain). This is entity overlap, NOT visual similarity of the material; use find_similar_creatives for that. The source ad is excluded from data, but pagination.total remains the upstream overlap-candidate count before that exclusion; source_excluded and total_semantics make this explicit instead of fabricating an adjusted exact total. Metadata only, cursor-paginated. QUOTA: 1 MCP credit per delivered row (default page 20). PRICING: on paid plans ×1 after 500 MCP credits/month; one-time consent via accept_pricing_terms; before calling, get the maximum debit from estimate_cost (free) and tell the user.

Input Schema

NameRequiredDescriptionDefault
ad_idYessource ad UUID from search_ads
basisYesoverlap basis: fanpage (same Facebook page_id) or domain (same exact landing_domain)
limitNomaximum metadata rows (default 20, maximum 200; 1 MCP credit per delivered row)
cursorNopagination cursor returned by the previous call

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoPresent only when isError is true: machine-readable failure. The human explanation stays in content.
paramsNoRequest parameter echo: applied = parameters that shaped this result; normalized = parameters rewritten before applying (alias, type coercion, resolved id); ignored = parameters that were accepted but NOT applied, with the reason.
paginationNo
addon_hintsNoAdd-on modules that have additional data for objects of this result (no prices, no paid values). subscription_status=active: the account has the module — use its normal path. Do not push a purchase the user did not ask about.
basis_valueNo
source_ad_idNo
source_excludedNo
total_semanticsNo
similarity_basisNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"maximum metadata rows (default 20, maximum 200; 1 token per delivered row)"New value: +"maximum metadata rows (default 20, maximum 200; 1 MCP credit per delivered row)"
    • addedOutput schema / properties / addon_hints
      Added value: +{
      +  "description": "Add-on modules that have additional data for objects of this result (no prices, no paid values). subscription_status=active: the account has the module — use its normal path. Do not push a purchase the user did not ask about.",
      +  "items": {
      +    "properties": {
      +      "available_data_types": {
      +        "description": "kinds of data the module confirmedly has for the object",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "info_url": {
      +        "description": "the object (or its limited breakdown) inside the module on spytrend.com",
      +        "type": "string"
      +      },
      +      "module": {
      +        "description": "nutra | crypto | web2app | search_arb | startups",
      +        "type": "string"
      +      },
      +      "object_id": {
      +        "description": "the ad id, or the site domain for site rows",
      +        "type": "string"
      +      },
      +      "preland_downloadable": {
      +        "description": "Nutra / Crypto: the saved pre-lander can be downloaded in the module",
      +        "type": "boolean"
      +      },
      +      "subscription_status": {
      +        "description": "active | not_connected",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / items / properties / also_in
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / multilang_black_unresolved
      Added value: +{
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / opening_price / properties / MCP credits
      Added value: +{
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
    • removedOutput schema / properties / data / items / properties / opening_price / properties / tokens
      Removed value: -{
      -  "type": [
      -    "null",
      -    "integer"
      -  ]
      -}
    • changedOutput schema / properties / data / items / properties / opening_price / required
      Previous value: -[
      -  "status",
      -  "tokens",
      -  "unit",
      -  "billing_basis"
      -]New value: +[
      +  "status",
      +  "MCP credits",
      +  "unit",
      +  "billing_basis"
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties / data / items / properties / multilang_black_missing
      Added value: +{
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / data / items / properties / is_cloaked
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed3 schema fields changed
    • addedOutput schema / properties / error
      Added value: +{
      +  "description": "Present only when isError is true: machine-readable failure. The human explanation stays in content.",
      +  "properties": {
      +    "code": {
      +      "description": "fine-grained, stable failure code (e.g. invalid_arguments, backend_busy)",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "description": "failure class: invalid_argument, not_found, permission_denied, unauthenticated, quota_exceeded, rate_limited, temporarily_unavailable, unavailable_until_ready, unsupported, internal",
      +      "type": "string"
      +    },
      +    "message": {
      +      "description": "the same human text as content[0]",
      +      "type": "string"
      +    },
      +    "outcome": {
      +      "description": "activity-feed outcome class",
      +      "type": "string"
      +    },
      +    "param": {
      +      "description": "the request parameter the failure is about, when known",
      +      "type": "string"
      +    },
      +    "retry_after_seconds": {
      +      "description": "wait this long before retrying",
      +      "type": "integer"
      +    },
      +    "retryable": {
      +      "description": "true when repeating the SAME call can succeed (after retry_after_seconds when present)",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / params
      Added value: +{
      +  "description": "Request parameter echo: applied = parameters that shaped this result; normalized = parameters rewritten before applying (alias, type coercion, resolved id); ignored = parameters that were accepted but NOT applied, with the reason.",
      +  "properties": {
      +    "applied": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "ignored": {
      +      "items": {
      +        "properties": {
      +          "param": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "to": {
      +            "description": "the parameter it was applied as, when renamed",
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "the value actually applied, when rewritten",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "normalized": {
      +      "items": {
      +        "properties": {
      +          "param": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "to": {
      +            "description": "the parameter it was applied as, when renamed",
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "the value actually applied, when rewritten",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "source_ad_id",
      -  "similarity_basis",
      -  "basis_value",
      -  "source_excluded",
      -  "total_semantics",
      -  "data",
      -  "pagination"
      -]
  5. Changed1 schema field changed
    • addedOutput schema / properties / data / items / properties / webmasters
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "matched_by": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  6. Changed1 schema field changed
    • addedOutput schema / properties / data / items / properties / eu_transparency
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "age_max": {
      +      "type": "integer"
      +    },
      +    "age_min": {
      +      "type": "integer"
      +    },
      +    "beneficiary": {
      +      "type": "string"
      +    },
      +    "breakdown": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "age_range": {
      +            "type": "string"
      +          },
      +          "country": {
      +            "type": "string"
      +          },
      +          "female": {
      +            "maximum": 4294967295,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "male": {
      +            "maximum": 4294967295,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "unknown": {
      +            "maximum": 4294967295,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "country",
      +          "age_range",
      +          "female",
      +          "male",
      +          "unknown"
      +        ],
      +        "type": "object"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "checked_at": {
      +      "type": "string"
      +    },
      +    "eu_total_reach": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "excluded_locations": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "gender_audience": {
      +      "type": "string"
      +    },
      +    "has_data": {
      +      "type": "boolean"
      +    },
      +    "payer": {
      +      "type": "string"
      +    },
      +    "reach_countries": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "targeted_locations": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "has_data",
      +    "eu_total_reach"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
  7. Changed15 schema fields changed
    • addedOutput schema / properties / data / items / properties / creative_destination_domain
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / creative_destination_url
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / is_multilang
      Added value: +{
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / media / items / properties / body
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / media / items / properties / carousel_position
      Added value: +{
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / media / items / properties / claimed_domain
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / media / items / properties / cloaking_detected
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / items / properties / media / items / properties / fallback_urls
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / media / items / properties / is_alive
      Added value: +{
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / media / items / properties / link_url
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / media / items / properties / title
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / opening_price
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "billing_basis": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "tokens": {
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "unit": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "tokens",
      +    "unit",
      +    "billing_basis"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / original_landing_domain
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / primary_creative
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "body": {
      +      "type": "string"
      +    },
      +    "carousel_position": {
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "claimed_domain": {
      +      "type": "string"
      +    },
      +    "cloaking_detected": {
      +      "type": "boolean"
      +    },
      +    "expiring": {
      +      "type": "boolean"
      +    },
      +    "fallback_urls": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "is_alive": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "link_url": {
      +      "type": "string"
      +    },
      +    "media_type": {
      +      "type": "string"
      +    },
      +    "snapshot_url": {
      +      "type": "string"
      +    },
      +    "thumbnail_url": {
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / primary_creative_selection
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "carousel_position": {
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
  8. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly/openWorld/non-destructive); the description adds quota cost per delivered row, tiered pricing, consent requirement, and a non-obvious pagination caveat. The total-semantics disclosure (total is the upstream candidate count, source ad excluded, source_excluded/total_semantics fields expose that) is exactly the kind of behavior annotations cannot convey.

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 purpose and the sibling distinction, then behavioral caveats, then commercial terms — a sensible order. Slightly dense and the fanpage/domain basis is restated a second time, but nearly every clause carries decision-relevant information.

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?

Output schema exists so return values need not be explained, and the description still covers the one return-value subtlety that would mislead (the unadjusted total). For a paginated, quota-metered read tool with four simple params, nothing an agent needs before calling is missing.

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% and already documents ad_id, basis, limit and cursor including the enum meanings, so the description's restatement of the fanpage/domain basis adds little. It does not explain the interaction between limit and credit cost beyond what the schema row says. Baseline 3 is appropriate.

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 ('find ads related to one source ad') plus the exact overlap bases (fanpage page_id, exact landing_domain), and explicitly separates itself from find_similar_creatives ('entity overlap, NOT visual similarity'). An agent can route between the two siblings without opening either schema.

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 alternative ('use find_similar_creatives for that'), a pre-call prerequisite chain (estimate_cost for the max debit, accept_pricing_terms for consent, inform the user), and when-not-to-use via the visual-similarity exclusion. This is the full when/when-not/alternatives package.

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.