Skip to main content
Glama

Property summary

property_summary
Read-onlyIdempotent

Computes the median, 25th and 75th percentiles of a numeric event property over a date range, optionally split by another property, to reveal distributions such as seconds spent per article.

Instructions

The median, 25th and 75th percentiles of one numeric property of a named event, overall and split by another property of the same event. It answers questions such as how long people read each article: the median of seconds on article_read_100, split by post. Only events whose property is a JSON number count: overall.events says how many, and the figures are null when none does. With by, groups holds the 10 values of that property carried by the most events, and other_count counts the events of every other value; events without it count in overall only. The visit filters keep only the events of the visits that match all of them.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>",
      "from": "<from>",
      "to": "<to>",
      "event": "<event>",
      "key": "<key>"
    },
    "name": "property_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoAnother property of the same event to split the figures by: post.
osNo
toYesLast day of the range, inclusive (YYYY-MM-DD), at most the project's today.
keyYesThe numeric property to sum up: seconds.
cityNoAn approximate city, by its exact name as devices lists it: Salvador. Needs region, since the same name exists in several regions.
fromYesFirst day of the range, inclusive (YYYY-MM-DD).
eventYesThe named event whose property to sum up: article_read_100.
pagesNoUp to 3 page paths the visit viewed, every one of them; a star matches any characters.
deviceNo
failedNotrue: only the visits with a failed request.
regionNoISO 3166-2 region code: BR-SP.
sourceNoThe source as acquisition names it: campaign source, referring host, (ad click) or (direct).
browserNo
channelNo
countryNoTwo-letter country code: BR.
campaignNoThe utm_campaign.
identityNo
project_idYesThe project id, from list_projects.
visit_eventNoOnly the visits that sent this named event.
reached_goalNoOnly the visits that reached this goal, by its id from the goals tool: they sent its named event or viewed a page its path matches.
visit_propertyNokey=value: visit_event carried this property value. Needs visit_event.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • addedInput schema / properties / reached_goal
      Added value: +{
      +  "description": "Only the visits that reached this goal, by its id from the goals tool: they sent its named event or viewed a page its path matches.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.6.1
    • addedInput schema / properties / city
      Added value: +{
      +  "description": "An approximate city, by its exact name as devices lists it: Salvador. Needs region, since the same name exists in several regions.",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Addedv0.5.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already mark this as a safe read, yet the description adds substantial non-obvious behavior: only JSON-number properties count, figures are null when none exists, overall.events reports the counted population, groups is capped at the top 10 values with other_count aggregating the rest, and events missing the split property appear in overall only. It also discloses the 400-day range cap, time-zone handling of dates, and that reported text is raw visitor-supplied data.

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?

The core definition and the split behavior are front-loaded, and the dense paragraph carries a lot of information in few sentences. The closing note about visitor-supplied text is slightly tangential but earns its place as a data-fidelity caveat.

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?

For a 21-parameter, non-trivial analytics query with no output schema, the description does a good job covering inputs, filtering, limits and the names of key return fields (overall.events, groups, other_count). It stops short of fully describing the response envelope (overall vs split sections, percentile keys) and says nothing about the untouched enum filters.

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 coverage is 76%, so the schema does most of the work, but the description explains semantics the schema cannot: how 'by' partitions results into groups plus other_count, that visit filters combine conjunctively over the matching visits, and that dates are inclusive in the project time zone. Some enum filters (os, device, browser, channel, identity, failed) are left entirely to their schemas, which is the remaining gap.

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

Purpose5/5

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

The description opens with a precise computational definition: the median, 25th and 75th percentiles of one numeric property of a named event, overall and split by another property. The worked example ('how long people read each article: the median of seconds on article_read_100, split by post') makes the resource and its shape unmistakable, and it is clearly distinct from siblings like event_properties or engagement.

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?

It gives the question type it answers and prerequisites ('The project id and the project's today come from list_projects'), which implies when to reach for it. But it never names an alternative tool or states when not to use it, so the agent has no explicit routing rule versus event_properties or engagement.

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