Skip to main content
Glama
rybbit-mcp

rybbit-mcp

by nks-hub

Event User Leaderboard

rybbit_get_event_user_leaderboard
Read-onlyIdempotent

Ranks top users for a specific event, showing who triggered it most often. Answers questions like who sent the most messages or clicks in a time range.

Instructions

Returns the top users for a given event (e.g. who triggered the most message_sent, who clicked the most ad_click). Groups by identified_user_id + traits.username. Answers questions like 'who sent the most messages today'. By default only identified users are ranked; when that leaves events out, note says how many and how to include them. Events are read in pages of 1000, roughly 0.5 s each: the default maxScan of 5000 takes about 3 s, 50000 about 20 s.

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": {
      "siteId": "<siteId>",
      "eventName": "<eventName>"
    },
    "name": "rybbit_get_event_user_leaderboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNoTop N users (default 25).
siteIdYesSite ID (numeric ID or domain identifier)
endDateNoEnd date in ISO format (YYYY-MM-DD)
filtersNoArray of filters. Example: [{parameter:'browser',type:'equals',value:['Chrome']},{parameter:'country',type:'equals',value:['US','DE']}]
maxScanNoMaximum events to read, newest first (default 5000).
timeZoneNoIANA timezone (e.g., Europe/Prague). Default: UTC
eventNameYesEvent name to rank users by (e.g. 'message_sent', 'signup', 'ad_click').
startDateNoStart date in ISO format (YYYY-MM-DD)
identifiedOnlyNoIf true (default), exclude anonymous users without identified_user_id. Set false on sites that do not identify users.
pastMinutesEndNoAlternative to dates: minutes ago end (default 0 = now)
pastMinutesStartNoAlternative to dates: minutes ago start (e.g., 60 = last hour)

Output Schema

NameRequiredDescriptionDefault
noteNoCaveat about this response, e.g. how many rows were returned and how to get the rest
groupsYesGrouped event counts, sorted by count DESC by default
hasMoreYesTrue if scan was capped by maxScan and more data exists
scannedYesTotal events scanned across pagination
hitCountYesEvents matching eventName / property filters
truncatedNoTrue when rows were dropped to keep the response under the size cap
windowEndNo
windowStartNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.9.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / filters / items / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / groups / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / groups / items / properties / extras / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed7 schema fields changedv0.9.0
    • changedInput schema / properties / eventName / description
      Previous value: -"Event name to rank users by (e.g. 'pm_sent', 'chat_v2_message_sent', 'ad_click')."New value: +"Event name to rank users by (e.g. 'message_sent', 'signup', 'ad_click')."
    • changedInput schema / properties / filters / items / properties / parameter / description
      Previous value: -"Filter dimension. One of: browser, browser_version, operating_system, operating_system_version, language, country, region, city, device_type, device_model, app_version, dimensions, referrer, hostname, pathname, page_title, querystring, event_name, channel, utm_source, utm_medium, utm_campaign, utm_term, utm_content, entry_page, exit_page, user_id, lat, lon, timezone, tag. Custom URL parameters use the prefix 'url_param:NAME' (e.g., 'url_param:campaign_id'). Note: user_id filter checks BOTH the device hash (user_id) and app-provided ID (identified_user_id). device_model and app_version are populated only for mobile-type sites (legacy: app) tracked via SDK."New value: +"Filter dimension, e.g. browser, country, pathname, device_type, referrer, event_name (all of them are listed by rybbit_describe_dimension). Custom URL parameters use the prefix 'url_param:NAME'."
    • changedInput schema / properties / identifiedOnly / description
      Previous value: -"If true (default), exclude anonymous users without identified_user_id."New value: +"If true (default), exclude anonymous users without identified_user_id. Set false on sites that do not identify users."
    • changedInput schema / properties / maxScan / description
      Previous value: -"Maximum events to scan (default 5000)."New value: +"Maximum events to read, newest first (default 5000)."
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "Caveat about this response, e.g. how many rows were returned and how to get the rest",
      +  "type": "string"
      +}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "description": "True when rows were dropped to keep the response under the size cap",
      +  "type": "boolean"
      +}
  3. Addedv0.8.1

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile requires no restating. The description earns credit for real extra context: unidentified users are excluded by default, a `note` field reports how many events that dropped, and scan cost scales with maxScan (5000 events is about 3 s, 50000 is about 20 s). However, it says nothing about ordering rules or tie-breaking for the top-N ranking, or whether the grouping key is sensitive to missing username traits.

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 description is front-loaded with purpose and examples, then moves to behavior, then to performance, which is a sensible order and all six sentences carry information. It is on the dense side, and the sentence explaining default scans reads as two sentences compressed into one.

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 an 11-parameter analytics tool, the definition covers the riskiest choices: which users are ranked, what maxScan costs in time, and what happens when events are excluded. Since an output schema exists, return values need not be described, but the description mentions `note` without saying where that field sits in the response, which leaves a small gap.

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?

With schema description coverage at 100%, the schema already documents every parameter, so the baseline of 3 applies. The description adds some cross-parameter meaning: the identifiedOnly default and its consequence, and the latency consequence of maxScan. It does not explain how topN behaves when fewer users qualify, or how startDate interacts with pastMinutesStart when both are supplied.

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 uses a specific verb plus resource ('Returns the top users for a given event') and grounds it with concrete examples ('who triggered the most message_sent, who clicked the most ad_click'). It also discloses the grouping key (identified_user_id + traits.username), so the shape of the answer is clear. It never contrasts itself with plausible alternatives such as the inverse breakdown tool, so it stops short of full sibling differentiation.

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 conveyed indirectly through a sample question ('who sent the most messages today'), which implies a ranking use case, and there is a conditional hint: set identifiedOnly to false on sites that do not identify users. There is no explicit 'use this instead of X' routing and no statement of when this tool is the wrong choice.

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