get_account_summaries
Retrieve Google Analytics account and property information to view available data sources and manage access permissions.
Instructions
Retrieves information about the user's Google Analytics accounts and properties.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- analytics_mcp/tools/admin/info.py:29-39 (handler)The main handler function for the 'get_account_summaries' tool, decorated with @mcp.tool() which handles both implementation and registration. It asynchronously retrieves all account summaries using the Google Analytics Admin API client and converts them to dictionaries.@mcp.tool() async def get_account_summaries() -> List[Dict[str, Any]]: """Retrieves information about the user's Google Analytics accounts and properties.""" # Uses an async list comprehension so the pager returned by # list_account_summaries retrieves all pages. summary_pager = await create_admin_api_client().list_account_summaries() all_pages = [ proto_to_dict(summary_page) async for summary_page in summary_pager ] return all_pages