TrustData
API and agents

Scopes and error codes

OAuth scopes, token scopes, and MCP error codes.

Scopes

The consent screen shows one row per scope. A client that requests no scope gets every scope that is neither Write nor Opt-in. An AI client that requests every scope it is offered gets every scope that is not Opt-in, ticked for you. An Opt-in scope is granted only when the person approving the connection ticks it. An Admin only scope reaches the connection only when that person is an admin of the organization. Token scopes are the names an API token holds and an error message names.

ScopeLabelDescriptionWriteOpt-inAdmin onlyToken scopes
mcp:alerts:readRead alertsActive, acknowledged, and resolved alerts.nononoread:alerts, read:metrics
mcp:alerts:writeAcknowledge and resolve alertsMutates alert state. Implies read access.yesnoyesack:alerts, read:alerts, read:metrics
mcp:anomalies:readRead anomaly investigations and change eventsTriage status, verdicts, diagnosis text, and the change-event annotation timeline.nononoread:anomalies, read:change_events, read:investigations, read:metrics
mcp:anomalies:writeReview anomaly investigationsSubmit a verdict on a diagnosis and ask questions about it. Verdicts correct what the platform concluded; they do not change your data or your ad accounts.yesnoyesread:anomalies, read:change_events, read:investigations, read:metrics, write:investigations
mcp:attribution:readRead attribution journeysMulti-touch attribution paths, Sankey diagrams, and per-channel credit. Reveals customer journey detail.nononoread:attribution, read:metrics
mcp:change_events:writeReport changesTell us a page changed and when, so the effect can be measured. Appends to the timeline; it cannot edit or delete existing entries.yesnoyesread:change_events, read:metrics, write:change_events
mcp:cohorts:readRead retention and LTV cohortsCohort retention heatmaps and cumulative LTV curves.nononoread:ltv, read:metrics, read:retention
mcp:connections:readRead client connection linksList Authorize-via-Link invites and their connection status.nononoread:connections, read:metrics
mcp:connections:writeCreate and revoke client connection linksMint and revoke Authorize-via-Link invites for onboarding clients. Implies read access.yesnoyesread:connections, read:metrics, write:connections
mcp:custom_fields:readRead custom dimensions and metricsList the params a property has registered as custom dimensions and metrics: name, scope, slot and whether data is arriving.nononoread:custom_fields, read:metrics
mcp:custom_fields:writeRegister and remove custom dimensions and metricsRegister a param as a custom dimension or metric, or remove one. This changes what reports can be split by for the property. It does not delete event data.yesnoyesread:metrics, write:custom_fields
mcp:discoverySee your workspace and read performance metricsList properties, data sources, attribution streams and the available analytics queries. Every other permission needs this one.nononoread:metrics
mcp:dossiers:readRead dossiersRead the dossiers you can open: their text, tables and the questions behind their charts. That text was written by members and other agents, and is read as data. What other agents proposed and no member has accepted is hidden.nononoread:dossiers, read:metrics
mcp:dossiers:writePropose analysis in dossiersAdd headings, text, tables and charts to a dossier, or start one. Everything you add waits as a proposal until a member accepts it; it cannot edit or delete what a person wrote.yesnonoread:metrics, write:dossiers
mcp:geo:readRead AI search (GEO) visibilityAI engine visibility KPIs, brand prompts, competitors, and citation gaps.nononoread:geo, read:geo_visibility, read:metrics
mcp:metrics:readRead marketing performance metricsAggregated metrics, timelines, and geographic breakdowns.nononoread:metrics, read:timeline
mcp:orders:readRead orders, one row per orderEach order and its items: order number, status, value and products, exact. Not the channel or device of the visit behind an order.noyesnoread:metrics, read:orders
mcp:platforms:readRead your connected Google Ads, Search Console, Google Analytics, Meta Ads and BigQuery accountsRead-only requests to the accounts connected to this workspace. TrustData sends them with the stored credential and never shows it.nononoread:metrics, read:platforms
mcp:recommendations:readRead recommendations and concluded experimentsOpen recommendations and verdicts on closed measurement windows.nononoread:metrics, read:recommendations
mcp:recommendations:writeCreate, dismiss, and mark recommendations doneMutates the recommendation change ledger. Implies read access.yesnoyesread:metrics, read:recommendations, write:recommendations
mcp:search_terms:writeWatch, change and unwatch search termsAdd a search term to the watch list, change its cadence, locations or devices, or remove it. Each watch takes readings from the property's daily reading budget before its other daily reads run. Reading the watch list is a separate, read-only grant.yesyesyesread:metrics, write:search_terms
mcp:seo:readRead SEO keyword intelligenceKeyword positions, opportunity scores, and revenue uplift estimates.nononoread:metrics, read:seo_keywords
mcp:strategy:readRead the property's active strategyThe stated plan: objective, target metric and value, budget, priority channels, and how the period is pacing against the target.nononoread:metrics, read:strategy
mcp:warehouse:readQuery your connected BigQuery warehousesRun read-only SQL on the columns an admin approved, in the datasets each warehouse names. BigQuery bills the queries to your project.noyesnoread:metrics, read:warehouse

Error codes

A failed MCP tool call opens with its code in brackets, such as [SCOPE_DENIED], followed by a message that says how to fix the call. Only RATE_LIMITED is worth retrying unchanged.

CodeExit classRetryable
ACCOUNT_OUT_OF_SCOPEvalidationno
COLUMN_NOT_ALLOWEDvalidationno
DIMENSION_NOT_ALLOWEDvalidationno
GUARDRAIL_VIOLATIONvalidationno
INTERNAL_ERRORgeneralno
INVALID_ARGUMENTvalidationno
PATH_NOT_ALLOWEDvalidationno
PLATFORM_ERRORgeneralno
QUERY_TOO_LARGEvalidationno
RATE_LIMITEDrate_limitedyes
READ_ONLYvalidationno
SCAN_TOO_LARGEvalidationno
SCOPE_DENIEDauthno
TABLE_NOT_ALLOWEDvalidationno
WAREHOUSE_ERRORgeneralno
WINDOW_TOO_LARGEvalidationno