Skip to main content
Glama
rybbit-mcp

rybbit-mcp

by nks-hub

Session Detail

rybbit_get_session
Read-onlyIdempotent

Retrieves one Rybbit Analytics session with device, location, counters, and its paged event timeline so you can inspect user activity after finding a session ID.

Instructions

Get one session: session (device, location, counters) and events, its timeline of page views and events, oldest first, 25 per call (page with offset). Use rybbit_list_sessions first to find session IDs.

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>",
      "sessionId": "<sessionId>"
    },
    "name": "rybbit_get_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoEvents per call; `pagination.total` says how many the session has
offsetNoEvents to skip, for paging through a long session
siteIdYesSite ID (numeric ID or domain identifier)
sessionIdYesSession ID to retrieve

Output Schema

NameRequiredDescriptionDefault
noteNoCaveat about this response, e.g. how many rows were returned and how to get the rest
eventsNoEvent timeline, oldest first
sessionNoSession summary: ids, device, location, start/end, counters
truncatedNoTrue when rows were dropped to keep the response under the size cap
paginationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.9.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / events / items / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / events / items / properties / props / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / pagination / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / session / additionalProperties
      Previous value: -trueNew value: +{}
  2. Changed20 schema fields changedv0.9.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 25,
      +  "description": "Events per call; `pagination.total` says how many the session has",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Events to skip, for paging through a long session",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • removedOutput schema / properties / browser
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / city
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / country
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / device
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / events / description
      Added value: +"Event timeline, oldest first"
    • addedOutput schema / properties / events / items / additionalProperties
      Added value: +true
    • addedOutput schema / properties / events / items / properties
      Added value: +{
      +  "event_name": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "pathname": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "props": {
      +    "anyOf": [
      +      {
      +        "additionalProperties": {},
      +        "type": "object"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "timestamp": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "type": {
      +    "description": "pageview, custom_event, outbound, ...",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • addedOutput schema / properties / events / items / type
      Added value: +"object"
    • 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"
      +}
    • removedOutput schema / properties / os
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / pagination
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "hasMore": {
      +      "type": "boolean"
      +    },
      +    "limit": {
      +      "type": "number"
      +    },
      +    "offset": {
      +      "type": "number"
      +    },
      +    "total": {
      +      "description": "Events in the session",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / properties / region
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / session
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Session summary: ids, device, location, start/end, counters",
      +  "properties": {
      +    "country": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "device_type": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "entry_page": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "events": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "exit_page": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "identified_user_id": {
      +      "description": "App-provided user ID, empty for anonymous visitors",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "pageviews": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "session_duration": {
      +      "description": "Seconds",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "session_end": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "session_id": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "session_start": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "user_id": {
      +      "description": "Device hash",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / properties / sessionId
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / traits
      Removed value: -{
      -  "additionalProperties": {},
      -  "type": "object"
      -}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "description": "True when rows were dropped to keep the response under the size cap",
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / userId
      Removed value: -{
      -  "type": "string"
      -}
  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": {
      +    "browser": {
      +      "type": "string"
      +    },
      +    "city": {
      +      "type": "string"
      +    },
      +    "country": {
      +      "type": "string"
      +    },
      +    "device": {
      +      "type": "string"
      +    },
      +    "events": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "os": {
      +      "type": "string"
      +    },
      +    "region": {
      +      "type": "string"
      +    },
      +    "sessionId": {
      +      "type": "string"
      +    },
      +    "traits": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "userId": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observedv0.5.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real context beyond them: chronological ordering (oldest first), a page size of 25, offset-based paging, and the shape of the response. It omits edge behavior such as what happens for an unknown session ID.

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

Conciseness5/5

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

Two compact sentences, front-loaded with the primary action and return shape, then the prerequisite. Every clause carries information; nothing is redundant padding.

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 return values need only light explanation, and the description still summarizes the two top-level keys and their ordering. It covers required parameters implicitly (session ID discovery via the list tool) and is nearly complete, missing only failure/empty-result behavior.

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 100%, and the schema already documents limit, offset, siteId, and sessionId. The description's "25 per call (page with offset)" mostly restates those defaults, adding only the "oldest first" ordering cue, so it stays at the baseline rather than adding substantive new parameter meaning.

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?

States a specific verb and resource ("Get one session") and goes further by naming the two returned components, `session` (device, location, counters) and `events`. The contrast with rybbit_list_sessions is explicit, so an agent can distinguish this from the sibling without reading either schema.

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

Usage Guidelines4/5

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

Gives an explicit prerequisite: use rybbit_list_sessions first to obtain session IDs, which is the main routing decision for this tool. It does not spell out when not to use it (e.g. aggregate/timeline siblings like rybbit_get_session_locations), leaving a small inference gap.

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