The address
https://api.clearly.report/mcp
- Transport
- Streamable HTTP with JSON replies, MCP protocol version
2025-06-18. One address serves every platform you have connected to Clearly. - Sign-in
- OAuth 2.1 with PKCE. An app that supports sign-in opens Clearly's consent page, where you choose Allow. An app that cannot sign in sends a token made under Account, Connect your AI, as
Authorization: Bearer clr_…. - Who can connect
- Accounts on Pro, Team, an agency plan or the 30-day trial. The AI subscription it runs on is your own.
Connect an app
Claude on the web and desktop
- In Claude, open Settings, then Connectors, then Add custom connector.
- Name it Clearly and paste
https://api.clearly.report/mcp. - Choose Add, then Connect. Sign in to Clearly if asked, and choose Allow.
On a Team or Enterprise plan in Claude, an owner adds the connector once for the organisation, and each person connects their own Clearly account.
Claude Code
claude mcp add --transport http clearly https://api.clearly.report/mcp
Then type /mcp in Claude Code, pick clearly and choose Authenticate.
Cursor
Put this in ~/.cursor/mcp.json and choose Connect when Cursor asks you to sign in. Windsurf and other apps that take a remote MCP server with sign-in use the same address.
{ "mcpServers": { "clearly": { "url": "https://api.clearly.report/mcp" } } }
Any other app, or your own agent
Make a token under Account, Connect your AI. It is shown once. Send it with every request:
Authorization: Bearer clr_…
With Claude Code, for example:
claude mcp add --transport http clearly https://api.clearly.report/mcp \
--header "Authorization: Bearer clr_…"
How it answers
- A report is the boundary
- Each report is one business or site, and a call reads only the sources that report has added. Start with
list_reports. On an account with more than one report, passreport_idon every call that reads figures; with one report you can leave it out. Every reply names the report it came from. - One set of ids for every platform
- Metrics and dimensions are named the same way across platforms:
cost,clicks,conversions,sessions,key_events,organic_clicks.list_metricslists them for a report, with what each one means on each platform where that differs. - Clearly does the arithmetic
- Ratios such as click-through rate, cost per conversion and return on ad spend are worked out from summed parts, never by averaging rates. A comparison comes back with the change already worked out, as an amount and a percentage.
- Dates
- A date range is a preset, or
startandendas YYYY-MM-DD, up to 400 days. Presets end yesterday:last_7d,last_28d,last_month,mtd,qtd,ytd, andreport_period, which over MCP means the last 28 full days. A comparison isnone,previous_period,previous_year,report_comparison(the 28 days beforereport_period) or its own start and end. - Every figure can be traced
- Each result carries a
query_idand its provenance: the source, the property or account that answered, the dates and the filters. A result with nothing in it says so, and is never a zero.
Reports and context
list_reports
The account's reports: each one's id, name, site and focus (leadgen, ecommerce or localservice), the source ids it can be queried for, and the groups the owner defined. Conversion groups are the Google Analytics events that count as a win, the first being the report's main conversion; to count one, filter event_name to its events. Query, content and campaign groups show how the owner buckets search queries, pages and campaigns. Sources a report has that the MCP cannot read yet are listed apart.
Arguments
None.
Reply, shortened
{ "reports": [ {
"id": "r_8f2c", "name": "Harbour Dental", "site": "harbour.example", "focus": "leadgen",
"sources": ["ga4", "google_ads"],
"conversion_groups": [ { "label": "Enquiries", "events": ["generate_lead", "phone_click"] } ]
} ] }
get_report
How a report is laid out: its pages and the tabs within each, the blocks on each with their type, title and platform, the pages an AI saved, the platforms it has no source for yet, and the dates it opens on. It holds no figures. Use the block titles to match a query_metrics call to what the report shows.
Arguments
| Name | What it is |
|---|---|
report_id | The report, from list_reports. Needed when the account has more than one. |
Reply, shortened
{ "report_id": "r_8f2c", "report": "Harbour Dental", "focus": "leadgen",
"opens_on": { "dates": "last_28_days" },
"pages": [ { "page_id": "ga4-overview", "name": "Website", "platform": "ga4",
"link": "https://clearly.report/report?id=r_8f2c&tab=ga4-overview",
"blocks": [ { "type": "Scorecards", "title": "Key figures", "tab": "Overview" },
{ "type": "Table", "title": "By channel", "tab": "Channels" } ] } ],
"no_source_yet": ["meta_ads"] }
list_businesses
The businesses on the account. An agency account holds several, each a client with its own reports, details and notes: this lists them with their business_id and reports, and the agency's own profile. Any other account is one business, the account itself: the reply says so and gives its details. Call it before get_context on an agency account.
Arguments
None.
Reply on an agency account, shortened
{ "holds_businesses": true,
"agency": { "describes": "Paid search for dentists.", "agency_type": "Paid media", "specialities": ["Lead Generation"] },
"businesses": [ { "business_id": "biz_k3v9q2", "name": "Harbour Dental", "site": "harbour.example",
"type": "Lead Generation", "value_per_win": 400,
"reports": [ { "report_id": "r_8f2c", "name": "Harbour Dental" } ] } ] }
get_context
What the owner has told Clearly about the business, so your assistant reads the figures as they would. The business profile: what it does, what a win is and what it is worth, how many leads become customers, margin, monthly ad budget, industry, location, seasonality and the channels it runs offline. And the notes Ask Wally keeps: goals and targets, events such as a sale or an outage with their dates, definitions, a watch list, and how this person likes answers, each with its line_id.
On an agency account the notes come in three levels: You, This business (the client) and Your agency. Pass business_id or report_id for one client; with neither, you get the agency's own level, its profile and the notes kept for the whole agency. All of it is self-reported, for reading the figures, never data to cite.
Arguments
| Name | What it is |
|---|---|
business_id | Optional. On an agency account, the client, from list_businesses. |
report_id | Optional. Or the report whose business to read. |
Reply, shortened
{ "report": "Harbour Dental",
"business": { "business_id": "biz_k3v9q2", "name": "Harbour Dental", "describes": "A dental clinic.",
"type": "Lead Generation", "value_per_win": 400, "wins_that_become_customers_pct": 30, "monthly_ad_budget": 3000 },
"agency": { "agency_type": "Paid media" },
"notes": { "This business": {
"Events": [ { "line_id": "l_4e1a9c02", "text": "3 to 9 Nov 2026: clinic closed for renovations", "added": "2026-11-01" } ],
"Goals and targets": [ { "line_id": "l_77b3d0e1", "text": "40 enquiries a month", "added": "2026-11-01" } ] } } }
Figures
list_metrics
The metric and dimension ids that query_metrics and correlate accept, from the metric dictionary Clearly's reports use. Each comes with its label, unit, the sources that have it, whether higher or lower is better, its definition, and what it means on each platform where that differs: a conversion on Google Ads is not a conversion on Meta. Ratios list the two parts they are worked out from.
Arguments
| Name | What it is |
|---|---|
report_id | Optional. Only what that report's sources support. |
source | Optional. Only this source (see Sources and ids). |
search | Optional. Words to find in an id, label or definition, such as "spend" or "cost per lead". |
kind | metrics, dimensions or both (the default). |
Reply to { "search": "spend" }, shortened
{ "metrics": [ { "id": "cost", "label": "Cost", "unit": "currency",
"sources": ["google_ads", "meta_ads", "linkedin_ads", "reddit_ads"], "better_when": "worse",
"definition": "Ad spend in the period, in the account's currency (no conversion)." } ] }
query_metrics
Totals, a breakdown or a time series from one of the report's sources, with a comparison if you ask for one. Ask for metrics by id, ratios included; Clearly works them out from the summed parts.
Arguments
| Name | What it is |
|---|---|
report_id | The report. Needed when the account has more than one. |
source | Required. One source id. |
metrics | Required. 1 to 6 metric ids. |
dimensions | 0 to 2 dimension ids. date, week (from Monday) and month give a time series. |
date_range | Required. { "preset": "last_28d" } or { "start": "2026-10-01", "end": "2026-10-31" }. |
comparison | none, previous_period, previous_year, report_comparison, or { "start", "end" }. |
filters | Up to 3: { "dimension", "op", "value" }, where op is eq, in (a list) or contains. |
order_by | { "metric", "direction": "asc" | "desc" }. A time series always runs in date order. |
limit | Rows, 1 to 100 (25 if left out). A time series returns every period. |
Example
{ "report_id": "r_8f2c", "source": "google_ads",
"metrics": ["cost", "conversions", "cpa"], "dimensions": ["campaign"],
"date_range": { "preset": "last_month" }, "comparison": "previous_period", "limit": 5 }
Reply, shortened
{ "report_id": "r_8f2c", "report": "Harbour Dental",
"rows": [ { "campaign": "Implants | Search", "cost": 1240.5, "conversions": 31, "cpa": 40.02,
"compare": { "cost": 1102.1, "conversions": 24, "cpa": 45.92 },
"delta": { "cost": { "abs": 138.4, "pct": 12.6 }, "conversions": { "abs": 7, "pct": 29.2 },
"cpa": { "abs": -5.9, "pct": -12.8 } } } ],
"totals": { "cost": 1240.5, "conversions": 31, "cpa": 40.02, "compare": { … }, "delta": { … } },
"provenance": { "source": "google_ads", "data_source": "Harbour Dental Ads",
"date_range": { "start": "2026-11-01", "end": "2026-11-30" }, "comparison": "previous_period", … },
"query_id": "q_3e91a0" }
list_entities
The named things in a source, such as campaigns, ad sets, landing pages or locations, with their activity over the last 28 days: cost on the ad platforms, sessions in Google Analytics, clicks in Search Console, profile views in Business Profile. Call it before filtering by a name, so the filter uses a name that exists.
Arguments
| Name | What it is |
|---|---|
report_id | The report. Needed when the account has more than one. |
source | Required. One source id. |
entity_type | Required. campaign, ad_group, ad_set, location, landing_page, channel_group or page; which apply to each source is under Sources and ids. |
search | Optional. Part of a name, any case. |
limit | 1 to 200. |
query_by_group
A breakdown by the groups the owner made in Clearly, grouped the way the report's own tables group them. Clearly reads every row on the dimensions the groups' rules look at and puts each row in the first group whose rules it matches, in the report's order. Rows no group matches go to Other, so the groups add up to the total. Metrics are summed per group and rates worked out from the sums, so a group's rate is its own and never an average of its rows'. list_reports shows each report's groups and their rules in words.
| Group | What it groups | Read from |
|---|---|---|
content_groups | Pages, by path (and title in Google Analytics) | ga4 or search_console |
channel_groups | Visits, by source, medium and campaign. A report with none of its own has Google Analytics's channels in channel_group instead. | ga4 |
conversion_groups | Events. Each group adds up its own events, so an event in two groups counts in both and the groups do not add up to a total. Takes event_count, key_events or event_value. | ga4 |
query_groups | Search queries or keywords, by the phrases they contain | search_console or google_ads |
campaign_groups | Campaigns, by name, including groups written as a CASE statement | google_ads or meta_ads |
Arguments
| Name | What it is |
|---|---|
report_id | The report. Needed when the account has more than one. |
group | Required. One of the five above. |
source | Optional. Where to read, from the table above; the first one the report has if left out. |
metrics | Required. 1 to 6 ids that add up (counts, money) or rates made from them. Users and reach cannot be split into groups. |
dimension | Optional. One more split, such as device, week or month. |
date_range, comparison, filters | As query_metrics. A comparison cannot be combined with a date split. |
limit | Rows to return, 1 to 200 (50 if left out). |
Example
{ "report_id": "r_8f2c", "group": "content_groups", "metrics": ["sessions", "key_events", "key_event_rate"],
"date_range": { "preset": "last_month" }, "comparison": "previous_period" }
Reply, shortened
{ "group": "content_groups", "groups_defined": ["Blog", "Services", "Pricing"],
"rows": [ { "group": "Services", "sessions": 1840, "key_events": 92, "key_event_rate": 5, "rows_in_group": 14,
"compare": { "sessions": 1610, "key_events": 71, "key_event_rate": 4.41 }, "delta": { … } },
{ "group": "Other", "sessions": 960, "key_events": 18, "key_event_rate": 1.88, "rows_in_group": 37, … } ],
"totals": { "sessions": 4310, … },
"how": "Each row goes to the first group whose rules it matches, in the report's order; rows no group matches are Other, so the groups add up to the total.",
"query_id": "q_51c0e7" }
Investigating
search_insights
How Clearly investigates a movement, as steps to run. Give the metric that moved and its direction, and it returns the matching procedure for the report's platforms: each step a ready query_metrics or check_setup call, with when to stop. Run the steps in order and stop at the first that explains the movement. Steps use report_period against report_comparison; change the dates to the period being asked about. Pass "any" as the metric for a tracking or set-up question.
Arguments
| Name | What it is |
|---|---|
report_id | The report. Needed when the account has more than one. |
metric | Required. The metric id that moved, or any. |
direction | up, down or any. |
source | Optional. The platform it moved on. |
goal | Optional. leads, ecommerce or local; the report's own focus if left out. |
Reply to { "metric": "key_events", "direction": "down" }, shortened
{ "spines": [ { "title": "Website conversions fell", "source": "ga4", "steps": [
{ "n": 1, "check": "Rule out a tracking break: did the conversion stop being recorded?",
"check_setup": { "checks": ["ga4.key_events_zero", "ga4.conversion_break"] },
"stop_if": "a check fails: the drop is tracking, not demand" },
{ "n": 2, "check": "Fewer visits, or fewer visits converting?",
"query": { "source": "ga4", "metrics": ["sessions", "key_events", "key_event_rate"],
"date_range": { "preset": "report_period" }, "comparison": "report_comparison" } },
{ "n": 3, "check": "Which channel lost the conversions", "query": { … "dimensions": ["channel_group"] } } ] } ] }
correlate
Whether two measures move together over time: Meta spend against Google Analytics key events, say, or Google Ads clicks against Search Console clicks. Clearly reads both by day, week or month and compares their changes, not their levels, because two rising lines always look related. By day, each day is set against the same weekday a week before, so a weekly rhythm both share does not count. It also looks for one following the other by up to 14 days (4 weeks, or 2 months) and names a single date doing most of the work. The verdict is strong, moderate, weak or none, or too_thin under 14 days, 8 weeks or 8 months of shared points. It shows that two things move together, never that one causes the other.
Arguments
| Name | What it is |
|---|---|
report_id | The report. Needed when the account has more than one. |
a, b | Required. Each { "source", "metric", "filters" }: one metric from one of the report's sources, filters optional. |
date_range | Required. As query_metrics. |
grain | auto (the default: days up to 250 days, then weeks), day, week or month. |
Reply, shortened
{ "a": { "source": "meta_ads", "metric": "cost", "label": "Cost (Meta Ads)", "query_id": "q_91c2d4" },
"b": { "source": "ga4", "metric": "key_events", "label": "Key events (Google Analytics 4)", "query_id": "q_0b7e13" },
"grain": "day", "points": 90, "verdict": "moderate", "direction": "positive",
"lag": { "days": 2, "words": "Key events (Google Analytics 4) moves 2 days after Cost (Meta Ads)." },
"r": 0.52, "r_same_period": 0.31, "r_levels": 0.74,
"causation_note": "Moving together is not proof that one causes the other: …" }
check_setup
Clearly's tracking and set-up checks on the report's platforms over the last 28 days, the same checks as the free audits: conversions that stopped being recorded, spend with no conversions, Google Ads clicks not arriving in Google Analytics, untagged ad traffic, payment providers taking credit as referrals, purchases with no value, and the Google Ads settings checks. Each check comes back ok, warn, fail or unknown (it could not run, which is never a pass), with the figures behind it, why it matters and the fix.
Arguments
| Name | What it is |
|---|---|
report_id | The report. Needed when the account has more than one. |
checks | Optional. Check ids from a search_insights step, or ["all"] (the default). |
source | Optional. Only this platform's checks. |
Audits
list_audits
The audits the account has run in Clearly: the Google Analytics and Google Ads audits, each a score out of 100, and Meta creative fatigue runs. One row per audited property or account, newest first, with its score, the date, how many runs there have been and the score the time before. These are stored results, so nothing is read from the platforms.
Arguments
| Name | What it is |
|---|---|
kind | Optional. google_analytics, google_ads or meta_creative. |
Reply, shortened
{ "audits": [ { "audit_id": "gads-1764300000-7k2m", "kind": "google_ads", "audited": "Harbour Dental Ads",
"business": "Harbour Dental", "at": "2026-11-28", "score": 72, "runs": 2,
"previous": { "at": "2026-10-20", "score": 61 },
"link": "https://clearly.report/audit/google-ads?audit=gads-1764300000-7k2m" } ] }
get_audit
One saved audit's findings: each check that needs fixing or a look, with what was found, why it matters and the fix, and whether the owner marked it Ignored or Done in Clearly; then the checks that passed and those that could not run. The figures are from the day the audit ran. For how things stand today, run check_setup.
Arguments
| Name | What it is |
|---|---|
audit_id | Required. From list_audits. |
Reply, shortened
{ "audited": "Harbour Dental Ads", "at": "2026-11-28", "score": 72,
"counts": { "to_fix": 1, "to_look_at": 1, "marked_done": 1, "passed": 21, "could_not_check": 1 },
"findings": [ { "check": "Performance Max brand", "issue": "Brand bought by Performance Max", "severity": "fix",
"found": "$412 on brand terms.", "why": "…", "fix": "Add a brand exclusion." } ],
"passed": ["Auto-tagging", …] }
Weekly reviews
list_scheduled_reviews
The weekly reviews this person gets by email: which reports, since when, and how many their plan allows. A weekly review is Ask Wally reading a report's figures for the Monday to Sunday just ended against the week before, writing it up in Clearly and emailing the headline on Monday morning, New Zealand time. Reviews are turned on from the report's Ask Wally page in Clearly.
Arguments
None.
Reply, shortened
{ "weekly_reviews": [ { "report_id": "r_8f2c", "report": "Harbour Dental", "since": "2026-11-04" } ],
"allowed": 3, "used": 1,
"when": "Each Monday about 8am New Zealand time, for the Monday to Sunday just ended against the week before, emailed to the account's own address." }
Prompts
Apps that support MCP prompts offer these as ready-made asks. In Claude Code they appear as commands, such as /mcp__clearly__weekly_check_in.
| Prompt | What it asks for | Arguments |
|---|---|---|
weekly_check_in | How last week went for a report, against the week before. | report |
explain_a_change | Why a figure moved, following Clearly's investigation steps. | what_changed (required), report, period |
monthly_update | A short update on last month, for a client or a boss. | report, audience |
tracking_check | Whether the numbers can be trusted, worst problem first. | report |
audit_follow_up | What the latest audits found, and what is still open. | audited |
Sources and ids
| Source id | Platform | Entity types for list_entities |
|---|---|---|
ga4 | Google Analytics 4 | landing_page, channel_group, page |
google_ads | Google Ads | campaign, ad_group |
meta_ads | Meta Ads | campaign, ad_set |
linkedin_ads | LinkedIn Ads | campaign, ad_set, as Campaign Manager names them |
reddit_ads | Reddit Ads | campaign |
search_console | Search Console | page |
gbp | Business Profile | location |
A few common metric ids: cost, clicks, impressions, conversions, conv_value, cpa and roas on the ad platforms; sessions, users, key_events, key_event_rate and event_count in Google Analytics; organic_clicks, search_impressions and avg_position in Search Console; profile_views, calls and website_clicks in Business Profile. list_metrics has the full list. Merchant Center, Google Sheets and BigQuery cannot be read over MCP yet; list_reports names them where a report has them.
Limits
| Limit | Value |
|---|---|
| Calls a minute, per account | 60 |
| Calls a day, per account | Pro 200, Team 500, agency plans 1,000, the trial 100. Only calls that read a platform count: query_metrics, query_by_group, list_entities, check_setup and correlate. The count resets at midnight UTC. |
| One query | Up to 6 metrics, 2 dimensions, 3 filters and 100 rows (a time series returns every period), 500 values in a reply, 400 days in a range. |
correlate by day | Up to 250 days; longer ranges go by week. |
| Connections and tokens | 5 per account. |
| A request | 128 KB, and up to 20 messages in a batch. |
Errors
A tool that cannot answer returns its error as the result, with isError set, an error code, a message and often a hint, so the assistant can put the call right and try again.
| Code | What it means |
|---|---|
report_required | The account has several reports: pass report_id. The reply lists them. |
report_not_found | No report with that id on this account. |
source_not_connected | The report has no such source. The hint lists what it has. |
invalid_metric, invalid_dimension | Not an id, or not on that source. The hint gives the three closest. |
invalid_argument | An argument is missing or malformed. |
range_too_wide | Over 400 days, or over 250 for daily points in correlate. |
too_many_cells | The reply would hold over 500 values: fewer metrics, dimensions or rows. |
no_readable_source | The report has nothing the MCP can read yet. |
upstream_error | The platform did not answer. Retry once at most. |
audit_not_found | No audit with that id on this account. |
business_not_found | No business with that id on this account. The hint lists them. |
no_groups | The report has no groups of that kind yet. The hint says what to query instead. |
rate_limited, daily_limit | Over 60 calls a minute, or the day's calls are used. |
unknown_tool | No tool by that name. The message lists them. |
Before any tool runs, a missing, unknown or revoked token gets HTTP 401 with a sign-in challenge, and an account whose plan does not include it gets 403 with plan_required.
Security and privacy
- Your platform logins stay with Clearly. Your assistant receives figures, never credentials.
- Tokens are stored hashed and shown once. Each connection is listed under Account with when it was last used; revoking one cuts it off that second, and the plan is checked on every call.
- A call reads only the sources of the report it names, so one client's figures never reach a question about another's.
- It reads. It cannot delete or change a report, touch your sources or connections, share anything or change your plan, and your ad accounts and analytics are only ever read.
- The figures are Clearly's. What your assistant writes about them is its own, under its provider's terms, and Clearly does not see your conversations with it. More in the privacy policy and terms.