Skip to main content
Glama

ROAZ Meta and Google Ads Analytics

Conversion funnel

getFunnel
Read-onlyIdempotent

Conversion funnel for an account over a date range with per-stage drop-off: impressions → link clicks → landing page views → add to cart → checkout → purchase. Leads-mode accounts get the lead funnel instead.

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": {
      "adAccountId": "<adAccountId>"
    },
    "name": "getFunnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateNoEnd date, YYYY-MM-DD (inclusive). Defaults to yesterday in the ad account's time zone.
networkNoAd network. Default "meta". "google" reads the Google Ads accounts (ids look like google:<n> in listAdAccounts).
startDateNoStart date, YYYY-MM-DD. Give both dates or neither (default: the last 7 complete days). Max 400 days.
adAccountIdYesWhich account to query: the numeric ROAZ ad account id, a Meta act_ id, or a client name (fuzzy-matched). Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so safety is covered. The description adds genuine context beyond that: the ordered stage sequence returned and the behavioral fork where leads-mode accounts produce a different funnel shape — the latter is a real surprise-avoiding disclosure not present in the schema or annotations.

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?

Two sentences, zero filler. The resource and its stage breakdown come first, and the leads-mode exception follows, which is the correct front-loading for an agent scanning definitions.

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?

With no output schema, the description carries the return-value burden and does so by naming the stage sequence, which is what an agent needs to interpret results. It stops short of saying whether stages are counts or rates, which is a minor remaining gap for a metrics tool.

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%, with each parameter (adAccountId, startDate, endDate, network) fully documented in the schema, including defaults and the 400-day cap. The description adds only the loose notion of 'date range,' so the baseline 3 is appropriate.

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?

States a specific verb+resource ('Conversion funnel for an account') and enumerates the exact stages returned, so the tool's output shape is unambiguous. It does not explicitly contrast itself with siblings like getAccountOverview or getAccountReport, but the funnel framing is distinct enough to differentiate.

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

Usage Guidelines3/5

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

The date-range scoping and the leads-mode caveat imply when this tool applies, and the leads-mode note is a useful routing hint. However, no sibling alternative is named and no exclusion is given for when a general report tool would be preferable over the funnel.

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.

Resources