Skip to main content
Glama

Pull live brand ads

pull_brand_ads
Idempotent

Starts fetching live ads after approval of quote_pull_brand_ads, charging the caller’s account at the web app’s Fetch live ads price. Accepts confirm:true, identical page and name, idempotency_key and max_credits. Same key returns the original job without another charge. Returns a job reference for get_brand_pull_status; completed ads become searchable through search_ads with facebook_page_id

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": {
      "facebook_page_id": "<facebook_page_id>",
      "page_name": "<page_name>",
      "confirm": "<confirm>",
      "idempotency_key": "<idempotency_key>",
      "max_credits": "<max_credits>"
    },
    "name": "pull_brand_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesSet true only after the user approves the quote.
page_nameYesAdvertiser name for that Facebook page from search_advertisers.
max_creditsYesApproved maximum credits from quote_pull_brand_ads; send unchanged.
idempotency_keyYesCopy idempotency_key from quote_pull_brand_ads unchanged; retries return the same job.
facebook_page_idYesFacebook page id from search_advertisers advertisers or suggestions. Identifies the intended advertiser page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only flag non-readonly, open-world, idempotent, non-destructive), the description discloses the critical consequence an agent must surface to a user: the caller's account is charged at the web app's Fetch live ads price. It also explains retry safety ('same key returns the original job without another charge') and the async return shape, which 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?

Three dense sentences, front-loaded with the charge and the approval precondition. Minor waste in 'identical page and name' and the slight redundancy between 'Accepts confirm:true...' and what the schema already declares, but nothing is padded.

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?

There is no output schema, and the description compensates fully by stating that a job reference is returned and routed through get_brand_pull_status, plus where the finished ads surface. For a paid, asynchronous, 5-required-parameter tool, an agent has everything needed to call it and explain the cost.

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 each parameter's meaning is already documented, including the idempotency and credit provenance. The description largely restates the parameter set ('confirm:true, identical page and name, idempotency_key and max_credits') and adds only the no-double-charge consequence, so the baseline of 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 ('starts fetching live ads') and immediately scopes it to the post-quote-approval step, which separates it from quote_pull_brand_ads (quotes) and get_brand_pull_status (status). An agent can identify the operation and its place in the workflow without opening any 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?

The gating condition is explicit ('after approval of quote_pull_brand_ads', 'confirm:true', 'Approved maximum credits'). It also names the follow-on alternatives: get_brand_pull_status for job status and search_ads for the resulting ads, so the agent knows what to call before and after.

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.