MCP 服务器

Google Analytics (unofficial)

com.safe-mcp/google-analytics-unofficial
数据与分析 营销与广告 公开且可连接 MCP 2025-11-25

此 MCP 可以做什么

Discovers connected marketing data sources and queries GA4, Search Console, and Bing Webmaster reporting, trends, and conversion funnels.

marketing_get_catalog
List supported marketing reporting sources, metrics, and dimensions
Use this when the user wants to discover the canonical marketing reporting graph, available sources, supported metrics, supported dimensions, or which connectors are live today. Each source also reports a `passthrough` field describing whether native fields beyond the curated list are accepted (GA4 accepts any native dimension/metric; Search Console accepts any native dimension; Bing is limited to the curated fields). Do not use this for GA4 account discovery or data retrieval.
只读 可访问外部资源
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'source': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['version', 'sources', 'metrics', 'dimensions'], 'properties': {'metrics': {'type': 'array', 'items': {'$ref': '#/properties/sources/items'}}, 'sources': {'type': 'array', 'items': {'type': 'object', 'additionalProperties': {}}}, 'version': {'type': 'string'}, 'dimensions': {'type': 'array', 'items': {'$ref': '#/properties/sources/items'}}}, 'additionalProperties': True}
marketing_get_funnel
Get marketing funnel data
Use for ordered conversion-step analysis: GA4 ordered_steps step funnels (e.g. session_start → add_to_cart → purchase) and cross-source holistic_bundle landing-page funnels joining GA4, Google Search Console, and Bing Webmaster. Covers funnel drop-off between steps (e.g. from landing on the site to adding to cart to purchasing), conversion paths, and acquisition-to-conversion context. Pass one date range for a single window or two date ranges for period-over-period comparison.
只读 可访问外部资源
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['type', 'dateRanges'], 'properties': {'app': {'type': 'object', 'properties': {'name': {'type': 'string', 'minLength': 1, 'description': 'Stream display name when the user refers to the app or stream by name.'}, 'streamId': {'type': 'string', 'minLength': 1, 'description': 'GA4 data stream ID for an app or web stream.'}, 'firebaseAppId': {'type': 'string', 'minLength': 1, 'description': 'Firebase app ID for GA4 app analytics.'}, 'measurementId': {'type': 'string', 'minLength': 1, 'description': 'GA4 web stream measurement ID such as G-XXXXXXX.'}}, 'description': 'Optional app or web stream selector. Use this when the user identifies the GA4 source by stream ID, measurement ID, Firebase app ID, or stream name.', 'additionalProperties': False}, 'type': {'enum': ['holistic_bundle', 'ordered_steps'], 'type': 'string'}, 'limit': {'type': 'integer', 'default': 50, 'maximum': 250, 'minimum': 1}, 'funnel': {'type': 'object', 'required': ['steps'], 'properties': {'steps': {'type': 'array', 'items': {'type': 'object', 'properties': {'name': {'type': 'string', 'minLength': 1}, 'eventName': {'type': 'string', 'minLength': 1}, 'filterExpression': {'type': 'object', 'properties': {'orGroup': {'type': 'object', 'required': ['expressions'], 'properties': {'expressions': {'type': 'array', 'items': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression'}, 'minItems': 1}}, 'additionalProperties': False}, 'andGroup': {'type': 'object', 'required': ['expressions'], 'properties': {'expressions': {'type': 'array', 'items': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression'}, 'minItems': 1}}, 'additionalProperties': False}, 'notExpression': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression'}, 'funnelEventFilter': {'type': 'object', 'required': ['eventName'], 'properties': {'eventName': {'type': 'string', 'minLength': 1}, 'funnelParameterFilterExpression': {'type': 'object', 'properties': {'orGroup': {'type': 'object', 'required': ['expressions'], 'properties': {'expressions': {'type': 'array', 'items': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelEventFilter/properties/funnelParameterFilterExpression'}, 'minItems': 1}}, 'additionalProperties': False}, 'andGroup': {'type': 'object', 'required': ['expressions'], 'properties': {'expressions': {'type': 'array', 'items': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelEventFilter/properties/funnelParameterFilterExpression'}, 'minItems': 1}}, 'additionalProperties': False}, 'notExpression': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelEventFilter/properties/funnelParameterFilterExpression'}, 'funnelParameterFilter': {'type': 'object', 'properties': {'inListFilter': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/inListFilter'}, 'stringFilter': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/stringFilter'}, 'betweenFilter': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/betweenFilter'}, 'numericFilter': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/numericFilter'}, 'itemParameterName': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/fieldName'}, 'eventParameterName': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/fieldName'}}, 'additionalProperties': False}}, 'additionalProperties': False}}, 'additionalProperties': False}, 'funnelFieldFilter': {'type': 'object', 'required': ['fieldName'], 'properties': {'fieldName': {'type': 'string', 'pattern': '^[-a-zA-Z0-9_:]+$'}, 'inListFilter': {'type': 'object', 'required': ['values'], 'properties': {'values': {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1}, 'caseSensitive': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/stringFilter/properties/caseSensitive'}}, 'additionalProperties': False}, 'stringFilter': {'type': 'object', 'required': ['matchType', 'value'], 'properties': {'value': {'type': 'string'}, 'matchType': {'enum': ['EXACT', 'CONTAINS', 'BEGINS_WITH', 'ENDS_WITH', 'REGEXP', 'FULL_REGEXP', 'PARTIAL_REGEXP'], 'type': 'string'}, 'caseSensitive': {'type': 'boolean'}}, 'additionalProperties': False}, 'betweenFilter': {'type': 'object', 'required': ['fromValue', 'toValue'], 'properties': {'toValue': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/numericFilter/properties/value'}, 'fromValue': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/numericFilter/properties/value'}}, 'additionalProperties': False}, 'numericFilter': {'type': 'object', 'required': ['operation', 'value'], 'properties': {'value': {'anyOf': [{'type': 'number'}, {'type': 'string', 'minLength': 1}]}, 'operation': {'enum': ['EQUAL', 'LESS_THAN', 'GREATER_THAN', 'LESS_THAN_OR_EQUAL', 'GREATER_THAN_OR_EQUAL'], 'type': 'string'}}, 'additionalProperties': False}}, 'additionalProperties': False}}, 'additionalProperties': False}, 'isDirectlyFollowedBy': {'type': 'boolean'}, 'parameterFilterExpression': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelEventFilter/properties/funnelParameterFilterExpression'}, 'withinDurationFromPriorStep': {'anyOf': [{'type': 'string', 'minLength': 1}, {'type': 'number'}]}}, 'additionalProperties': False}, 'minItems': 1}, 'isOpenFunnel': {'type': 'boolean'}}, 'description': 'Multi-step funnel definition. Use this only for ordered step analysis, not for general website analytics reporting.', 'additionalProperties': False}, 'property': {'$ref': '#/properties/ga4PropertyId', 'description': 'Google Analytics property identifier. Accepts a numeric GA4 property ID like 481373915 or a resource name like properties/481373915.'}, 'surfaceId': {'type': 'string', 'default': 'default', 'minLength': 1}, 'dateRanges': {'type': 'array', 'items': {'type': 'object', 'required': ['startDate', 'endDate'], 'properties': {'endDate': {'type': 'string', 'minLength': 1}, 'startDate': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False}, 'minItems': 1, 'description': 'One or more GA4 date ranges. Use two date ranges for period-over-period comparisons or significance checks.'}, 'propertyId': {'anyOf': [{'type': 'string', 'pattern': '^\\d+$'}, {'type': 'integer', 'exclusiveMinimum': 0}], 'description': 'Numeric GA4 property ID for the funnel report.'}, 'appStreamId': {'type': 'string', 'minLength': 1, 'description': 'Optional data stream ID when the funnel should run against a specific app or website stream.'}, 'bingSiteUrl': {'type': 'string', 'minLength': 1}, 'ga4PropertyId': {'anyOf': [{'type': 'string', 'minLength': 1}, {'type': 'integer', 'exclusiveMinimum': 0}], 'description': 'Google Analytics property identifier. Accepts a numeric GA4 property ID like 481373915 or a resource name like properties/481373915.'}, 'funnelBreakdown': {'type': 'object', 'required': ['breakdownDimension'], 'properties': {'limit': {'anyOf': [{'type': 'integer', 'exclusiveMinimum': 0}, {'type': 'string', 'minLength': 1}]}, 'breakdownDimension': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/fieldName'}}, 'additionalProperties': False}, 'funnelNextAction': {'type': 'object', 'required': ['nextActionDimension'], 'properties': {'limit': {'anyOf': [{'type': 'integer', 'exclusiveMinimum': 0}, {'type': 'string', 'minLength': 1}]}, 'nextActionDimension': {'$ref': '#/properties/funnel/properties/steps/items/properties/filterExpression/properties/funnelFieldFilter/properties/fieldName'}}, 'additionalProperties': False}, 'returnPropertyQuota': {'type': 'boolean'}, 'searchConsoleSiteUrl': {'type': 'string', 'minLength': 1}, 'funnelVisualizationType': {'enum': ['FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED', 'STANDARD_FUNNEL', 'TRENDED_FUNNEL'], 'type': 'string'}}, 'additionalProperties': False}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'rows': {'type': 'array', 'items': {'$ref': '#/properties/chart'}}, 'chart': {'type': 'object', 'additionalProperties': {}}, 'scope': {'$ref': '#/properties/chart'}, 'warnings': {'type': 'array', 'items': {'type': 'string'}}, 'comparison': {'$ref': '#/properties/chart'}, 'sourceState': {'type': 'object', 'required': ['source', 'status', 'message'], 'properties': {'source': {'enum': ['ga4', 'search_console', 'bing_webmaster'], 'type': 'string'}, 'status': {'enum': ['ready', 'not_connected', 'missing_scope', 'unavailable'], 'type': 'string'}, 'message': {'type': 'string'}}, 'additionalProperties': False}, 'reportSummary': {'$ref': '#/properties/chart'}, 'analyticsLinks': {'$ref': '#/properties/chart'}}, 'additionalProperties': True}
marketing_get_report
Get holistic marketing report data
Primary reporting tool for a given GA4 property or site. Use for totals, trends, and breakdowns by dimension across GA4 website traffic and app analytics, Google Search Console site traffic, and Bing Webmaster — including last-30-days summaries, revenue, leads, sessions, users, engagement/time-on-page (average_session_duration, user_engagement_duration), and period-over-period comparisons. Drill deep: GA4 supports up to 9 grouped dimensions (date/hour, geo, device/browser/OS, source/medium/channel, landing_page/page_path, etc.). Defaults to all mapped connected sources merged into one standardized view, aligned on the shared grain (typically landing_page) so a page row blends GA4 sessions+engagement with Search Console/Bing clicks/impressions/CTR/position; per-source detail (e.g. full query lists) stays in sourceSections. Note GA4 has no `query` dimension and Search Console/Bing have no sessions/engagement, so those cannot share one row — query is a Search Console/Bing breakdown. Narrow with sources or sourceMode='single'. Any GA4 dimension/metric name not in the catalog is passed through to the GA4 API automatically; metricMode='source_native' forces a pure GA4-native report. Pass one date range for a single window or two date ranges for period-over-period comparison.
只读 可访问外部资源
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['dateRanges', 'metrics'], 'properties': {'app': {'type': 'object', 'properties': {'name': {'type': 'string', 'minLength': 1, 'description': 'Stream display name when the user refers to the app or stream by name.'}, 'streamId': {'type': 'string', 'minLength': 1, 'description': 'GA4 data stream ID for an app or web stream.'}, 'firebaseAppId': {'type': 'string', 'minLength': 1, 'description': 'Firebase app ID for GA4 app analytics.'}, 'measurementId': {'type': 'string', 'minLength': 1, 'description': 'GA4 web stream measurement ID such as G-XXXXXXX.'}}, 'description': 'Optional app or web stream selector. Use this when the user identifies the GA4 source by stream ID, measurement ID, Firebase app ID, or stream name.', 'additionalProperties': False}, 'site': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'default': 1000, 'maximum': 100000, 'minimum': 1}, 'offset': {'type': 'integer', 'minimum': 0}, 'source': {'enum': ['ga4', 'search_console', 'bing_webmaster'], 'type': 'string'}, 'maxRows': {'type': 'integer', 'maximum': 1000000, 'minimum': 1}, 'metrics': {'type': 'array', 'items': {'type': 'string', 'pattern': '^[-a-zA-Z0-9_:]+$'}, 'minItems': 1, 'description': 'GA4 metric API names such as sessions, activeUsers, conversions, eventCount, totalRevenue, or engagedSessions. Include explicit numerator and denominator metrics when requesting significance context.'}, 'siteUrl': {'type': 'string', 'minLength': 1}, 'sources': {'type': 'array', 'items': {'$ref': '#/properties/source'}, 'minItems': 1}, 'orderBys': {'type': 'array', 'items': {'type': 'object', 'required': ['fieldName'], 'properties': {'desc': {'type': 'boolean', 'default': False}, 'type': {'enum': ['dimension', 'metric'], 'type': 'string'}, 'fieldName': {'$ref': '#/properties/metrics/items'}}, 'additionalProperties': False}, 'description': 'Optional sort order. Each entry requires fieldName (a GA4 API name like sessions or date) and optional desc (true for descending). Example: [{ fieldName: "sessions", desc: true }].'}, 'pageSize': {'type': 'integer', 'maximum': 250000, 'minimum': 1}, 'property': {'anyOf': [{'type': 'string', 'minLength': 1}, {'type': 'integer', 'exclusiveMinimum': 0}], 'description': 'Google Analytics property identifier. Accepts a numeric GA4 property ID like 481373915 or a resource name like properties/481373915.'}, 'surfaceId': {'type': 'string', 'minLength': 1, 'description': 'Optional analysis surface ID. When omitted, the default surface is used if no explicit selector is provided.'}, 'dateRanges': {'type': 'array', 'items': {'type': 'object', 'required': ['startDate', 'endDate'], 'properties': {'endDate': {'type': 'string', 'minLength': 1}, 'startDate': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False}, 'minItems': 1, 'description': 'One or more GA4 date ranges. Use two date ranges for period-over-period comparisons or significance checks.'}, 'dimensions': {'type': 'array', 'items': {'$ref': '#/properties/metrics/items'}, 'description': 'Optional GA4 dimensions such as date, country, deviceCategory, landingPagePlusQueryString, or dateRange. Omit entirely for aggregate totals (renders as KPI widget). Only include when the user asks for a breakdown or trend.'}, 'metricMode': {'enum': ['canonical', 'source_native'], 'type': 'string', 'default': 'canonical'}, 'propertyId': {'anyOf': [{'type': 'string', 'pattern': '^\\d+$'}, {'type': 'integer', 'exclusiveMinimum': 0}], 'description': 'Numeric Google Analytics 4 property ID for website analytics or app analytics. Use this when the user references a GA4 property directly.'}, 'sourceMode': {'enum': ['auto', 'single'], 'type': 'string', 'default': 'auto'}, 'appStreamId': {'type': 'string', 'minLength': 1, 'description': 'GA4 app or web data stream ID when the request targets a specific app stream or website stream.'}, 'significance': {'type': 'object', 'required': ['numeratorMetric', 'denominatorMetric'], 'properties': {'alpha': {'type': 'number', 'default': 0.05, 'maximum': 0.2, 'minimum': 0.001, 'description': 'Optional significance threshold. Defaults to 0.05.'}, 'comparison': {'type': 'object', 'properties': {'type': {'enum': ['auto', 'date_ranges', 'dimension_rows'], 'type': 'string', 'default': 'auto', 'description': 'How to resolve the two comparison groups. auto infers from the report shape.'}, 'variant': {'type': 'string', 'description': 'Optional comparison row label when the report returns two named rows.'}, 'baseline': {'type': 'string', 'description': 'Optional baseline row label when the report returns two named rows.'}}, 'description': 'Optional override for how the two report rows should be interpreted.', 'additionalProperties': False}, 'alternative': {'enum': ['two-sided', 'greater', 'less'], 'type': 'string', 'default': 'two-sided', 'description': 'Optional test direction. Defaults to two-sided.'}, 'numeratorMetric': {'type': 'string', 'minLength': 1, 'description': 'Explicit numerator metric for the rate test, such as conversions or engagedSessions.'}, 'denominatorMetric': {'type': 'string', 'minLength': 1, 'description': 'Explicit denominator metric for the rate test, such as sessions or totalUsers.'}}, 'description': 'Optional significance context for GA4 rate comparisons. Use this only when the user asks whether a change is statistically significant or meaningful.', 'additionalProperties': False}, 'keepEmptyRows': {'type': 'boolean'}, 'metricFilters': {'type': 'array', 'items': {'type': 'object', 'required': ['fieldName', 'operator', 'values'], 'properties': {'values': {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1}, 'operator': {'enum': ['EQUAL', 'LESS_THAN', 'GREATER_THAN', 'BETWEEN'], 'type': 'string'}, 'fieldName': {'$ref': '#/properties/metrics/items'}}, 'additionalProperties': False}}, 'returnAllRows': {'type': 'boolean'}, 'sourceOptions': {'type': 'object', 'properties': {'searchConsole': {'type': 'object', 'properties': {'type': {'enum': ['web', 'image', 'video', 'news', 'discover', 'googleNews'], 'type': 'string'}, 'rowLimit': {'type': 'integer', 'maximum': 25000, 'minimum': 1}, 'startRow': {'type': 'integer', 'minimum': 0}, 'dataState': {'enum': ['final', 'all', 'hourly_all'], 'type': 'string'}, 'aggregationType': {'enum': ['auto', 'byPage', 'byProperty'], 'type': 'string'}, 'dimensionFilterGroups': {'type': 'array', 'items': {'type': 'object', 'required': ['filters'], 'properties': {'filters': {'type': 'array', 'items': {'type': 'object', 'required': ['dimension', 'operator', 'expression'], 'properties': {'operator': {'enum': ['contains', 'equals', 'notContains', 'notEquals', 'includingRegex', 'excludingRegex'], 'type': 'string'}, 'dimension': {'type': 'string', 'minLength': 1}, 'expression': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False}, 'minItems': 1}, 'groupType': {'enum': ['and', 'or'], 'type': 'string'}}, 'additionalProperties': False}}}, 'additionalProperties': False}}, 'additionalProperties': False}, 'dimensionFilters': {'type': 'array', 'items': {'type': 'object', 'required': ['fieldName', 'operator', 'values'], 'properties': {'values': {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1}, 'operator': {'enum': ['EXACT', 'CONTAINS', 'BEGINS_WITH', 'ENDS_WITH', 'REGEXP', 'IN_LIST'], 'type': 'string'}, 'fieldName': {'$ref': '#/properties/metrics/items'}, 'caseSensitive': {'type': 'boolean'}}, 'additionalProperties': False}}, 'metricFilterExpression': {'$ref': '#/properties/dimensionFilterExpression'}, 'dimensionFilterExpression': {'type': 'object', 'properties': {'filter': {'type': 'object', 'required': ['fieldName'], 'properties': {'fieldName': {'$ref': '#/properties/metrics/items'}, 'inListFilter': {'type': 'object', 'required': ['values'], 'properties': {'values': {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1}, 'caseSensitive': {'$ref': '#/properties/dimensionFilters/items/properties/caseSensitive'}}, 'additionalProperties': False}, 'stringFilter': {'type': 'object', 'required': ['matchType', 'value'], 'properties': {'value': {'type': 'string'}, 'matchType': {'enum': ['EXACT', 'CONTAINS', 'BEGINS_WITH', 'ENDS_WITH', 'REGEXP', 'FULL_REGEXP', 'PARTIAL_REGEXP'], 'type': 'string'}, 'caseSensitive': {'$ref': '#/properties/dimensionFilters/items/properties/caseSensitive'}}, 'additionalProperties': False}, 'betweenFilter': {'type': 'object', 'required': ['fromValue', 'toValue'], 'properties': {'toValue': {'$ref': '#/properties/dimensionFilterExpression/properties/filter/properties/numericFilter/properties/value'}, 'fromValue': {'$ref': '#/properties/dimensionFilterExpression/properties/filter/properties/numericFilter/properties/value'}}, 'additionalProperties': False}, 'numericFilter': {'type': 'object', 'required': ['operation', 'value'], 'properties': {'value': {'anyOf': [{'type': 'number'}, {'type': 'string', 'minLength': 1}]}, 'operation': {'enum': ['EQUAL', 'LESS_THAN', 'GREATER_THAN', 'LESS_THAN_OR_EQUAL', 'GREATER_THAN_OR_EQUAL'], 'type': 'string'}}, 'additionalProperties': False}}, 'additionalProperties': False}, 'orGroup': {'type': 'object', 'required': ['expressions'], 'properties': {'expressions': {'type': 'array', 'items': {'$ref': '#/properties/dimensionFilterExpression'}, 'minItems': 1}}, 'additionalProperties': False}, 'andGroup': {'type': 'object', 'required': ['expressions'], 'properties': {'expressions': {'type': 'array', 'items': {'$ref': '#/properties/dimensionFilterExpression'}, 'minItems': 1}}, 'additionalProperties': False}, 'notExpression': {'$ref': '#/properties/dimensionFilterExpression'}}, 'additionalProperties': False}}, 'additionalProperties': True}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'rows': {'anyOf': [{'type': 'array', 'items': {'$ref': '#/properties/chart'}}, {'$ref': '#/properties/chart'}]}, 'chart': {'type': 'object', 'additionalProperties': {}}, 'scope': {'$ref': '#/properties/chart'}, 'lineage': {'$ref': '#/properties/chart'}, 'metrics': {'$ref': '#/properties/chart'}, 'warnings': {'type': 'array', 'items': {'type': 'string'}}, 'comparison': {'$ref': '#/properties/chart'}, 'confidence': {'$ref': '#/properties/chart'}, 'sourceState': {'type': 'object', 'required': ['source', 'status', 'message'], 'properties': {'source': {'enum': ['ga4', 'search_console', 'bing_webmaster'], 'type': 'string'}, 'status': {'enum': ['ready', 'not_connected', 'missing_scope', 'unavailable'], 'type': 'string'}, 'message': {'type': 'string'}}, 'additionalProperties': False}, 'significance': {'$ref': '#/properties/chart'}, 'reportSummary': {'$ref': '#/properties/chart'}, 'analyticsLinks': {'$ref': '#/properties/chart'}, 'resolvedEntities': {'$ref': '#/properties/chart'}}, 'additionalProperties': True}
marketing_get_sources
Discover marketing data sources
Lists connected and missing GA4, Google Analytics properties, property IDs, web streams, app streams, measurement IDs, Firebase app IDs, Google Search Console sites, Bing Webmaster sites, and current analysis surface mappings. Use this before reporting when property/site selectors are unknown.
只读 可访问外部资源
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'sources': {'type': 'array', 'items': {'enum': ['ga4', 'search_console', 'bing_webmaster'], 'type': 'string'}, 'minItems': 1}, 'surfaceId': {'type': 'string', 'default': 'default', 'minLength': 1}}, 'additionalProperties': False}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['surface', 'sources'], 'properties': {'sources': {'$ref': '#/properties/surface'}, 'surface': {'type': 'object', 'additionalProperties': {}}}, 'additionalProperties': True}
marketing_manage_surface
Get or update analysis surface mappings
Gets or updates persisted selectors for a website/app analysis surface. Use action='get' to inspect mappings and action='update' to persist GA4, Search Console, or Bing Webmaster selectors.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['action'], 'properties': {'name': {'type': 'string', 'minLength': 1}, 'action': {'enum': ['get', 'update'], 'type': 'string'}, 'selectors': {'type': 'object', 'properties': {'ga4': {'anyOf': [{'anyOf': [{'type': 'string', 'minLength': 1}, {'type': 'integer', 'exclusiveMinimum': 0}], 'description': 'Google Analytics property identifier. Accepts a numeric GA4 property ID like 481373915 or a resource name like properties/481373915.'}, {'type': 'null'}], 'description': 'Google Analytics property identifier. Accepts a numeric GA4 property ID like 481373915 or a resource name like properties/481373915.'}, 'bing_webmaster': {'anyOf': [{'type': 'string', 'minLength': 1}, {'type': 'null'}]}, 'search_console': {'anyOf': [{'type': 'string', 'minLength': 1}, {'type': 'null'}]}}, 'additionalProperties': False}, 'surfaceId': {'type': 'string', 'default': 'default', 'minLength': 1}, 'mainDomain': {'anyOf': [{'type': 'string', 'minLength': 1}, {'type': 'null'}]}, 'selectorSets': {'type': 'object', 'properties': {'ga4': {'anyOf': [{'type': 'array', 'items': {'$ref': '#/properties/selectors/properties/ga4/anyOf/0'}}, {'type': 'null'}]}, 'bing_webmaster': {'anyOf': [{'type': 'array', 'items': {'type': 'string', 'minLength': 1}}, {'type': 'null'}]}, 'search_console': {'anyOf': [{'type': 'array', 'items': {'type': 'string', 'minLength': 1}}, {'type': 'null'}]}}, 'additionalProperties': False}}, 'additionalProperties': False}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'applied': {'type': 'boolean'}, 'surface': {'type': 'object', 'additionalProperties': {}}, 'sourceState': {'type': 'object', 'required': ['source', 'status', 'message'], 'properties': {'source': {'enum': ['ga4', 'search_console', 'bing_webmaster'], 'type': 'string'}, 'status': {'enum': ['ready', 'not_connected', 'missing_scope', 'unavailable'], 'type': 'string'}, 'message': {'type': 'string'}}, 'additionalProperties': False}}, 'additionalProperties': True}
已添加
marketing_manage_surface
2026年9月17日 12:37
已添加
marketing_get_funnel
2026年9月17日 12:37
已添加
marketing_get_report
2026年9月17日 12:37
已添加
marketing_get_catalog
2026年9月17日 12:37
已添加
marketing_get_sources
2026年9月17日 12:37