API Reference

Google Analytics 4 / API Reference

ga4_top_pages

GA4 analytics tool. Get the most visited pages in GA4 by page views. Args: property_id: GA4 property ID. Leave blank to use the default property. start_date: Start date YYYY-MM-DD. Defaults to 28 days ago. end_date: End date YYYY-MM-DD. Defaults to today. row_limit: Max rows. Default 20.

This is a read-only tool: it returns top pages for your Google Analytics 4 account. It changes nothing.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Top pages in my Google Analytics 4 account.

It takes 0 required and 4 optional parameters.

Parameters

ParameterTypeRequiredDescription
property_idstringNoProperty Id
start_datestringNoStart Date
end_datestringNoEnd Date
row_limitintegerNoRow Limit

Related Google Analytics 4 tools

Before you can call it

This tool needs a connected Google Analytics 4 account. The Google Analytics 4 connect guide covers the OAuth flow and the permissions it asks for, and the quickstart gets a client talking to the server in about five minutes.

Workflows that use this

Rather than calling tools one at a time, these skills run a whole procedure against the same account:

Start using MCP Ads