Skip to main content
Glama

Analytics get online sales

analytics_get_online_sales
Read-only

GA4 online sales drivers. client_id picks the brand (defaults to the active one); extra passes any other field the app accepts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analytics_get_online_sales"
  }
}

Input Schema

NameRequiredDescriptionDefault
extraNo
limitNo
user_idNo
end_dateNo
client_idNo
start_dateNo
user_emailNo
property_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context beyond that: client_id selects the brand and falls back to the active one, and 'extra' is a passthrough for arbitrary app-accepted fields. It says nothing about what the sales-driver payload contains or whether results are aggregated over start_date/end_date.

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

Conciseness4/5

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

Two short clauses with no filler, and the brand-selection rule is front-loaded where it matters most. The brevity is efficient even if the content is thin; the missing information is a completeness problem rather than a verbosity problem.

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

Completeness2/5

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

For an 8-parameter analytics tool with 0% schema description coverage, this is under-specified: most parameters and the nature of the returned sales-driver breakdown are unexplained. An output schema exists, so return-shape detail is not required, but the input side and the tool's relationship to sibling GA4 reports remain unclear.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description carries the full burden, yet it explains only client_id and extra. start_date, end_date, property_id, user_id, user_email, and limit are entirely undocumented — an agent cannot tell the date format, whether limit paginates, or what property_id accepts.

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

Purpose3/5

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

The phrase 'GA4 online sales drivers' identifies the domain and the kind of data returned, but supplies no verb (fetch, list, compute) and does not distinguish it from near-siblings such as analytics_get_ga4_metrics or analytics_get_overview. An agent can guess it is a read of GA4 sales-attribution data, but not how it differs from those other GA4 tools.

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?

There is no when-to-use or when-not-to-use guidance and no named alternative. The only contextual note is that client_id defaults to the active brand, which is a defaulting rule rather than usage guidance. The agent is left to infer selection among the many analytics_get_* siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.