Skip to main content
Glama

Search advertisers

search_pages
Read-onlyIdempotent

Find advertisers (Facebook/Instagram pages) that ran ads matching a keyword or brand name. Use it to get the page_id needed by get_page and get_page_ads.

    Cost: 1 credit per call, whatever the number of advertisers returned (none found too);
    an error costs 0.

    Args:
        query: Brand name or keyword.
        country: ISO-3166 alpha-2 country or 'ALL' (default).
        limit: 1-10 (default 10).
    

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": {
      "query": "<query>"
    },
    "name": "search_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
countryNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, and the description adds genuinely new behavioral context: a fixed cost of 1 credit per call regardless of result count, with no charge on results-empty calls, and free errors. That cost model is information the agent could not get from structured fields. It stops short of describing result ordering or pagination, which keeps it at 4.

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?

Purpose and cost are front-loaded in two short blocks, then parameters are listed compactly. The Args block partially restates property names, but given 0% schema coverage that repetition is earned rather than wasteful; only the formatting is slightly verbose.

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 3-parameter discovery tool with an output schema, the description covers purpose, cost, rate/credit implications, and every parameter's meaning and default. Return values are documented by the output schema, so the remaining gap (result ordering or max result semantics) is minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the title-only property names carry no meaning, so the description must compensate, and it does: query is defined as a brand name or keyword, country as an ISO-3166 alpha-2 code or 'ALL', and limit as a 1-10 range. The 'ALL' sentinel and the numeric bounds are semantics the bare schema does not convey.

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 gives a specific verb and resource ("Find advertisers (Facebook/Instagram pages) that ran ads matching a keyword") and explicitly distinguishes the tool's role from siblings: it produces the page_id consumed by get_page and get_page_ads. An agent knows exactly what this returns without opening the schema.

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 states a concrete use case and downstream dependency ("Use it to get the page_id needed by get_page and get_page_ads"), which is real routing guidance. It does not address the obvious alternative search_ads for querying ads directly, nor any when-not-to-use condition, so it falls short of full 5-level differentiation.

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.