Skip to main content
Glama
rybbit-mcp

rybbit-mcp

by nks-hub

Analyze Funnel

rybbit_analyze_funnel
Read-onlyIdempotent

Analyze custom conversion funnels by defining page-visit or event steps; returns per-step sessions, visitors, conversion rate, and dropoff rate.

Instructions

Analyze a custom funnel by defining steps (page visits or events). Returns one row per step with sessions, visitors, conversion_rate and dropoff_rate.

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>",
      "steps": "<steps>"
    },
    "name": "rybbit_analyze_funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesFunnel steps to analyze (minimum 2)
siteIdYesSite ID (numeric ID or domain identifier)
endDateNoEnd date (YYYY-MM-DD)
filtersNoFilters to apply
timeZoneNoIANA timezone (default UTC)
startDateNoStart date (YYYY-MM-DD)
pastMinutesEndNoMinutes ago end
pastMinutesStartNoMinutes ago start

Output Schema

NameRequiredDescriptionDefault
dataYesOne row per funnel step, in order
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. Changed5 schema fields changedv0.9.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / filters / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / steps / items / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / data / items / additionalProperties
      Previous value: -trueNew value: +{}
  2. Changed7 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'."
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • addedOutput schema / properties / data
      Added value: +{
      +  "description": "One row per funnel step, in order",
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "conversion_rate": {
      +        "description": "Percent of the first step; null when nobody entered the funnel",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "dropoff_rate": {
      +        "description": "Percent lost since the previous step",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "sessions": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "step_name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "step_number": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "visitors": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • 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 / steps
      Removed value: -{
      -  "description": "Per-step counts and dropoffs",
      -  "items": {
      -    "additionalProperties": true,
      -    "properties": {
      -      "count": {
      -        "type": "number"
      -      },
      -      "dropoff": {
      -        "type": "number"
      -      },
      -      "dropoffRate": {
      -        "type": "number"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "description": "True when rows were dropped to keep the response under the size cap",
      +  "type": "boolean"
      +}
    • addedOutput schema / required
      Added value: +[
      +  "data"
      +]
  3. Changed2 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."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "steps": {
      +      "description": "Per-step counts and dropoffs",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "count": {
      +            "type": "number"
      +          },
      +          "dropoff": {
      +            "type": "number"
      +          },
      +          "dropoffRate": {
      +            "type": "number"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Changed1 schema field 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."
  5. First observedv0.5.2

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value by specifying the per-step output metrics (sessions, visitors, conversion_rate, dropoff_rate), but says nothing about how ordering/conversion is computed or how date-range vs pastMinutes parameters interact.

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 purpose followed by return shape, with no redundant or filler wording. Slightly terse given the tool has 8 parameters, but nothing is wasted.

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?

With an output schema present and full schema description coverage, the description need not explain parameters or return values in detail. It covers purpose plus result granularity, which is sufficient for an 8-parameter analytics tool, though a note on ordering a multi-step funnel or min-2-step constraint would complete it.

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 description coverage is 100%, so the baseline is 3 and the schema already documents siteId, steps, filters, dates and timezone. The description only reinforces that steps may be page visits or events, which is already conveyed by the type enum in the schema. It adds no new meaning about filters or the date/time-window parameters.

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 and resource ("Analyze a custom funnel by defining steps") and even names the two step kinds (page visits or events). It also declares the return shape (one row per step with sessions, visitors, conversion_rate, dropoff_rate). It stops short of distinguishing itself from siblings such as rybbit_get_funnel_step_sessions or rybbit_create_funnel.

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 implied: define your own steps ad hoc and get per-step metrics. There is no explicit when-to-use/when-not, no mention of needing a pre-created funnel, and no pointer to alternatives like a stored-funnel step-session tool. An agent can infer the use case but must guess at the boundaries.

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