Skip to main content
Glama
rybbit-mcp

rybbit-mcp

by nks-hub

Metric Breakdown

rybbit_get_metric
Read-onlyIdempotent

Break down Rybbit analytics metrics by dimension such as page, browser, country, or traffic source; get session-sorted rows with counts, percentages, pageviews, and bounce rates.

Instructions

Get metric breakdown by dimension. Use parameter='pathname' for top pages, 'browser'/'operating_system'/'device_type' for tech stats, 'country'/'city' for geo, 'utm_source'/'utm_campaign' for marketing, 'referrer'/'channel' for traffic sources, 'entry_page'/'exit_page' for user flow. Returns rows sorted by sessions with count, percentage, pageviews and bounce_rate, 50 per page; totalCount says how many values there are.

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>",
      "parameter": "<parameter>"
    },
    "name": "rybbit_get_metric"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-indexed
limitNoRows per page
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']}]
timeZoneNoIANA timezone (e.g., Europe/Prague). Default: UTC
parameterYesMetric dimension to break down by. device_model and app_version apply only to mobile-type sites (legacy: app) tracked via SDK.
startDateNoStart date in ISO format (YYYY-MM-DD)
pastMinutesEndNoAlternative to dates: minutes ago end (default 0 = now)
pastMinutesStartNoAlternative to dates: minutes ago start (e.g., 60 = last hour)

Output Schema

NameRequiredDescriptionDefault
dataYesMetric breakdown rows
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
totalCountNoTotal rows across all pages

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
    • addedInput schema / properties / page / maximum
      Added value: +9007199254740991
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / data / items / additionalProperties
      Previous value: -trueNew value: +{}
  2. Changed18 schema fields changedv0.9.0
    • 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'."
    • addedInput schema / properties / limit / default
      Added value: +50
    • changedInput schema / properties / limit / description
      Previous value: -"Results per page (default: 20-50 depending on endpoint, max 200)"New value: +"Rows per page"
    • addedInput schema / properties / page / default
      Added value: +1
    • changedInput schema / properties / page / description
      Previous value: -"Page number, 1-indexed (default: 1)"New value: +"Page number, 1-indexed"
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • removedOutput schema / properties / data / items / properties / bounceRate
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / data / items / properties / bounce_rate
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / count / description
      Added value: +"Sessions"
    • changedOutput schema / properties / data / items / properties / count / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • addedOutput schema / properties / data / items / properties / pageviews
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / data / items / properties / pageviews_percentage
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / data / items / properties / percentage / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / data / items / properties / timeOnPage
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / data / items / properties / time_on_page_seconds
      Added value: +{
      +  "description": "Page dimensions only",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / data / items / properties / value / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • 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. Changed4 schema fields changedv0.8.1
    • 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, vpn, crawler, datacenter, company, company_type, company_domain, asn_org, asn_type, asn_domain, 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 app-type sites tracked via SDK."New 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."
    • changedInput schema / properties / parameter / description
      Previous value: -"Metric dimension to break down by. device_model and app_version apply only to app-type sites tracked via SDK."New value: +"Metric dimension to break down by. device_model and app_version apply only to mobile-type sites (legacy: app) tracked via SDK."
    • changedInput schema / properties / parameter / enum
      Previous value: -[
      -  "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",
      -  "timezone",
      -  "company",
      -  "company_type",
      -  "asn_org",
      -  "asn_type"
      -]New value: +[
      +  "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",
      +  "timezone"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "Metric breakdown rows",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "bounceRate": {
      +            "type": "number"
      +          },
      +          "count": {
      +            "type": "number"
      +          },
      +          "percentage": {
      +            "type": "number"
      +          },
      +          "timeOnPage": {
      +            "type": "number"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "totalCount": {
      +      "description": "Total rows across all pages",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  4. Changed3 schema fields changedv0.4.3
    • changedInput schema / properties / filters / items / properties / parameter / description
      Previous value: -"Filter dimension: browser, operating_system, language, country, region, city, device_type, 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. Note: user_id filter checks BOTH the device hash (user_id) and app-provided ID (identified_user_id)."New 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, vpn, crawler, datacenter, company, company_type, company_domain, asn_org, asn_type, asn_domain, 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 app-type sites tracked via SDK."
    • changedInput schema / properties / parameter / description
      Previous value: -"Metric dimension to break down by"New value: +"Metric dimension to break down by. device_model and app_version apply only to app-type sites tracked via SDK."
    • changedInput schema / properties / parameter / enum
      Previous value: -[
      -  "browser",
      -  "operating_system",
      -  "language",
      -  "country",
      -  "region",
      -  "city",
      -  "device_type",
      -  "referrer",
      -  "hostname",
      -  "pathname",
      -  "page_title",
      -  "querystring",
      -  "event_name",
      -  "channel",
      -  "utm_source",
      -  "utm_medium",
      -  "utm_campaign",
      -  "utm_term",
      -  "utm_content",
      -  "entry_page",
      -  "exit_page"
      -]New value: +[
      +  "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",
      +  "timezone",
      +  "company",
      +  "company_type",
      +  "asn_org",
      +  "asn_type"
      +]
  5. First observedv0.5.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered; the description adds behavior beyond that by disclosing sort order (by sessions), the metrics returned, default page size of 50, and that totalCount reports the full number of distinct values. That pagination/totalCount detail is the kind of thing an agent needs to avoid truncation mistakes.

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, front-loaded with the purpose before the value mapping, and every clause carries information. The long slash-separated enumeration is dense but scannable and earns its space by resolving parameter choice.

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

Completeness5/5

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

With annotations covering safety, a full output schema covering return values, and 100% schema coverage for the ten parameters, the description only needs to resolve dimension choice and pagination semantics, which it does. Nothing an agent needs to call this tool correctly is missing.

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 100%, so a baseline of 3 would apply, but the description adds genuine meaning beyond the schema by explaining what each important enum value is for, which the schema only lists. It does not explain the filters array or the date-vs-pastMinutes alternatives, leaving those to the schema.

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 opens with a specific verb and resource ('Get metric breakdown by dimension') and then concretely enumerates which dimension values serve which analytical purpose (top pages, tech stats, geo, marketing, traffic sources, user flow). An agent can distinguish this generic breakdown tool from fixed-dimension siblings such as rybbit_get_page_titles, though no sibling is named explicitly.

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?

It gives clear selection guidance for the key required parameter by mapping use cases to values ('pathname' for top pages, 'country'/'city' for geo, etc.), which is exactly the decision an agent faces. It stops short of saying when to prefer a sibling tool or when not to use this one, so it is strong context without explicit exclusions.

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