Skip to main content
Glama

Funnel

funnel
Read-onlyIdempotent

Measure conversion across 2-8 ordered page or event steps, showing visit or user counts, median time between steps, and per-step event revenue for a chosen date range.

Instructions

How many visits or people reached each step of a funnel, in order, with the median time from each step to the next and through the whole funnel. Each event step also has its revenue: that of the event that completed the step for each visit or person, its first one after the previous step, so later ones add nothing; null for a page step. Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

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": {
      "project_id": "<project_id>",
      "from": "<from>",
      "to": "<to>",
      "steps": "<steps>"
    },
    "name": "funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLast day of the range, inclusive (YYYY-MM-DD), at most the project's today.
fromYesFirst day of the range, inclusive (YYYY-MM-DD).
modeNovisit counts each visit on its own; user follows identified people across visits.visit
stepsYesThe steps of the funnel, in order: 2 to 8 pages or named events.
project_idYesThe project id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already establish read-only/idempotent/closed-world, and the description layers on real behavioral detail: revenue is a raw sum in the project currency with no conversion, the per-step revenue is attributed to the first qualifying event so later ones add nothing, page steps yield null, and all filterable values are unvalidated visitor-supplied text. These are exactly the gotchas an agent needs.

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

Conciseness3/5

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

It is front-loaded with the return semantics, which is good, but the revenue sentence ('that of the event that completed the step for each visit or person, its first one after the previous step, so later ones add nothing') is tangled enough to require rereading. Every sentence carries content, but the phrasing costs clarity.

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 no output schema, the description must carry the return semantics and it largely does: counts, median timings, and per-step revenue including the null case. It stops short of describing the overall response structure (per-step array shape, totals), which would fully close the gap for a complex reporting tool.

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%, so parameters like mode, step types, and date formats are already documented in the schema; the description adds only the attribution semantics of step revenue, not parameter-level meaning. Baseline 3 applies.

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 opening sentence names the concrete outputs (step-by-step visitor/person counts, median inter-step and total time, per-step revenue), which is more specific than a restated title. It doesn't explicitly distinguish this from funnel_segments or funnel_subjects, so an agent must infer the split from names alone.

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 only implied: constraints (2-8 ordered steps, range <= 400 days, to <= project's today) shape when it's callable, but there is no statement of when to prefer this over funnel_segments, funnel_subjects, or goals. The agent gets no explicit routing guidance.

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