Skip to content

Commit bdd701c

Browse files
author
Arunabh Banerjee
committed
chore: improved prompt
1 parent 6e90ca7 commit bdd701c

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

  • analytics_mcp/tools/reporting

analytics_mcp/tools/reporting/core.py

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,6 @@ def _run_funnel_report_description() -> str:
174174
Common next action dimensions include:
175175
- `eventName` - Next events users trigger
176176
- `pagePath` - Next pages users visit
177-
178-
### Important Notes
179-
180-
- The runFunnelReport method is currently in **alpha** status and may change
181-
- Funnel reports require at least 2 steps to be meaningful
182-
- Use `return_property_quota: true` to monitor your API usage
183-
- For complex filtering, prefer `filter_expression` over simple `event` filters
184-
- Date ranges support relative dates like "7daysAgo", "today", "yesterday"
185-
186177
"""
187178

188179

@@ -288,11 +279,8 @@ async def run_funnel_report(
288279
segments: List[Dict[str, Any]] = None,
289280
return_property_quota: bool = False,
290281
) -> Dict[str, Any]:
291-
"""Run a Google Analytics Data API funnel report using the v1alpha API.
292-
293-
The runFunnelReport method is currently in alpha and allows you to create
294-
funnel reports showing how users progress through a sequence of steps.
295-
282+
"""Run a Google Analytics Data API funnel report.
283+
296284
Args:
297285
property_id: The Google Analytics property ID. Accepted formats are:
298286
- A number
@@ -323,9 +311,9 @@ async def run_funnel_report(
323311
"event": "sign_up"
324312
}
325313
]
326-
date_ranges: A list of date ranges. If not provided, defaults to last 30 days.
327-
Each date range should have 'start_date' and 'end_date' keys.
328-
Example: [{"start_date": "2024-01-01", "end_date": "2024-01-31"}]
314+
date_ranges: A list of date ranges
315+
(https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange)
316+
to include in the report.
329317
funnel_breakdown: Optional breakdown dimension to segment the funnel.
330318
This creates separate funnel results for each value of the dimension.
331319
Example: {"breakdown_dimension": "deviceCategory"}

0 commit comments

Comments
 (0)