Skip to main content
Glama

Get review figures

get_review_stats
Read-onlyIdempotent

Returns live review figures per location: Google's own average rating and total review count, plus counts over the latest reviews fetched in this request (rating distribution, unanswered, unanswered negative, response rate, median response time). Figures are computed at request time and not stored. With activity analytics, also returns the organization's own activity in the service (drafts, approvals, published replies, review requests, link clicks).

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": "get_review_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
client_idNoAgency client workspace id
location_idNoOne location; all locations if empty
sample_sizeNoLatest reviews per location to compute counts over
activity_daysNoPeriod for the activity summary

Output Schema

NameRequiredDescriptionDefault
noteNo
totalsYes
activityNo
locationsYes
computed_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description still adds real value beyond them: figures are 'computed at request time and not stored', the counts are scoped to only the latest reviews fetched in this request, and the activity block is conditional. Missing is any note on cost/latency or how the live Google data can diverge from synced data, but this is solid disclosure.

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?

Three sentences, front-loaded with the primary output, then secondary counts, then the conditional activity block. The nested parenthetical list is dense but each item adds a distinct figure an agent might otherwise misreport. No filler or repeated framing.

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?

An output schema exists, so the description need not document return shapes, and annotations carry the safety profile; between them the definition covers what remains — data provenance (Google-sourced vs request-computed), the conditional activity payload, and the non-persistent nature of the figures. A competent agent can call this correctly without further context.

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

Parameters4/5

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

Schema description coverage is 100%, so a baseline 3 is guaranteed. The description goes beyond the schema by explaining what the sample actually drives ('counts over the latest reviews fetched in this request') and by tying the activity figures to the analytics option, giving the agent a reason to tune sample_size and activity_days rather than leaving them at defaults. It does not address the client_id/location_id scoping interplay, which the schema handles alone.

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 states a specific verb and resource ('Returns live review figures per location') and enumerates the concrete figures produced: Google's average rating and total review count, plus rating distribution, unanswered counts, response rate and median response time. That clearly separates it from review-listing siblings like list_reviews or get_review, which return individual records. It stops short of naming an alternative tool explicitly, which keeps it at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent can infer this is the tool for aggregate review metrics and that the activity block only appears 'with activity analytics'. There is no explicit when-to-use versus when-to-use-a-sibling guidance and no stated prerequisites (e.g. whether client_id or a location must be resolved first). Adequate but leaves routing decisions to inference.

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.

Resources