Skip to main content
Glama

Search_To_Revenue

Which search queries are associated with revenue, for sites with GA4 e-commerce tracking enabled. Revenue per page is measured directly from GA4, not estimated. GA4 does not record which search query drove which purchase, so that page revenue is then split across the page's Search Console queries by click share, the one estimated step in the chain. Every response carries attribution_method: 'click_share_estimate' and a plain-language note. Present the page-level revenue as real and the per-query split as a proportional estimate, never as measured. total_revenue covers every revenue-earning page GA4 reported for the window, not just the pages on this page of rows. PAGING: this returns one page of rows. The pagination block reports returned, total_available, truncated and next_offset for every list in the response. Check truncated before drawing a conclusion: when it is true these rows are a slice, not the whole picture, and a total or a 'none of them' claim built on them is wrong. Read the rest with offset set to next_offset, or raise limit.

Input Schema

NameRequiredDescriptionDefault
daysNoWindow length in days. Default 28.
limitNoMax pages returned. Default 20.
offsetNoRow offset into the full result set. Default 0. To read the next page, pass the value the response reports under pagination.<list>.next_offset.
site_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so unusually well: it names the estimated step in the chain, states that every response carries attribution_method: 'click_share_estimate' plus a note, defines what total_revenue covers, and warns that truncated must be checked before drawing conclusions. This is exactly the interpretive context an agent needs.

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 the core purpose, then the estimation caveat, then the paging block. Dense but nearly every sentence earns its place, though the attribution discussion runs slightly long and repeats the 'estimated step' idea.

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?

No output schema and no annotations, so the description must supply return-value context, and it does: row semantics, pagination block contents, attribution_method field, and total_revenue scope. It stops short of describing the row-level fields (query, page, revenue columns) or how to obtain site_id.

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

Parameters4/5

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

Schema coverage is 75% (site_id undocumented) and the schema already explains days, limit and offset. The description earns extra credit by explaining the paging loop semantically (truncated, next_offset, 'a total built on these rows is wrong'), which goes beyond the field descriptions rather than restating them.

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 resource and scope: search queries tied to revenue for GA4 e-commerce sites, with revenue measured rather than estimated. It is clearly distinct from generic siblings like Search_Analytics or Page_Search_To_Behaviour, though it never names the adjacent revenue/behaviour tool it might be confused with. The verb is implied ('which queries are associated with...') rather than stated as an action.

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?

Gives one strong precondition (site must have GA4 e-commerce tracking enabled) and detailed paging instructions, but no explicit when-to-use-vs-alternative guidance relative to the many sibling analytics tools. Usage is implied through scope rather than stated as a decision rule.

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