Skip to main content
Glama
dhawalshah

google-analytics-mcp

Get Device Metrics

get_device_metrics

Retrieve device category metrics from Google Analytics 4 for a date range. Specify property and dates to analyze user behavior by device type.

Instructions

Get device metrics for a specific date range from Google Analytics 4.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYesEnd date in YYYY-MM-DD format
dimensionsNoList of dimensions to group by (optional, defaults to ["deviceCategory"])
start_dateYesStart date in YYYY-MM-DD format
property_idYesGoogle Analytics 4 property ID (numeric, e.g., "123456789")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the behavioral disclosure burden. The verb 'get' signals a read-only operation, and the GA4 source plus date-range scoping add context. However, it does not disclose pagination, authorization needs, or any other operational behavior, though the output schema helps fill the return-shape gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence with no filler, redundancy, or vague qualifiers. Every word contributes meaning about the tool's purpose and scope.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The combination of a 100%-covered schema and an output schema makes the definition mostly complete for invocation: required parameters are documented, the optional dimensions parameter has a clear default, and return shape is covered by the output schema. The main missing piece is usage guidance relative to sibling tools, which is accounted for above.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description reinforces the date-range parameters ('specific date range') but adds no semantic detail beyond what the input schema already provides for property_id, start_date, end_date, or dimensions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get'), the resource ('device metrics'), the source ('Google Analytics 4'), and the temporal filter ('specific date range'). It is not a tautology and can be distinguished from siblings by the 'device metrics' focus, though it does not explicitly contrast itself with any sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like run_report or get_page_views. There is no mention of exclusions, alternatives, or conditions that would help an agent choose this tool over similar GA4 query tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.