Skip to main content
Glama
rybbit-mcp

rybbit-mcp

by nks-hub

User Session Count

rybbit_get_user_session_count
Read-onlyIdempotent

Retrieve a single user's daily session counts over a specified time range to visualize engagement intensity with calendar heatmaps or sparklines.

Instructions

Get the per-day session count for a single user across the requested time range. Useful for plotting user engagement intensity (calendar heatmap or sparkline).

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>",
      "userId": "<userId>"
    },
    "name": "rybbit_get_user_session_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesSite ID (numeric ID or domain identifier)
userIdYesUser ID — either identified_user_id or device hash user_id
endDateNoEnd date (YYYY-MM-DD)
timeZoneNoIANA timezone (default UTC)
startDateNoStart date (YYYY-MM-DD)
pastMinutesEndNo
pastMinutesStartNo

Output Schema

NameRequiredDescriptionDefault
dataNo
noteNoCaveat about this response, e.g. how many rows were returned and how to get the rest
truncatedNoTrue when rows were dropped to keep the response under the size cap

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.9.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / data / items / additionalProperties
      Previous value: -trueNew value: +{}
  2. Changed3 schema fields changedv0.9.0
    • 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. Changed1 schema field changedv0.8.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "date": {
      +            "type": "string"
      +          },
      +          "sessions": {
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Addedv0.4.3

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered elsewhere. The description adds the useful fact that output is bucketed per day for exactly one user, but says nothing about how date-range parameters interact, what happens when they are omitted, or timezone handling.

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 sentences with the core behavior front-loaded and the use case second. No filler or repeated title language; the plotting clause is motivation rather than redundancy and reads efficiently.

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

Completeness3/5

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

An output schema exists, so return shape need not be explained. However, with seven parameters and two of them (pastMinutesStart/pastMinutesEnd) undocumented anywhere, the description leaves an agent guessing about relative-vs-absolute time handling, which matters for calling this correctly.

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 coverage is 71%, so most parameters are already documented in the schema. The description reinforces userId (single user) and the time range, but adds no meaning for pastMinutesStart/pastMinutesEnd, which are the two undocumented parameters and remain ambiguous.

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?

States a specific verb ('Get'), a specific metric ('per-day session count'), and scopes it to 'a single user across the requested time range'. An agent can distinguish it from session-level or event-level siblings by the per-day/one-user combination, though it does not name any sibling explicitly.

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?

The second sentence gives an intended use case (heatmap/sparkline visualization of engagement intensity), which implies when to reach for this tool. It offers no when-not guidance and does not point to alternatives such as aggregate session metrics or per-event breakdowns, so the routing signal remains implied.

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