Skip to main content
Glama

PageLens Analytics

run_funnel

Read-only

Conversion funnel: how many sessions completed each step. Steps are pages (path, * wildcard allowed), custom event names, or a page scrolled at least threshold percent (type scroll). mode: ordered (default; other pages may come in between), strict (each step right after the previous one) or flexible (middle steps may be skipped). compare_previous adds the same funnel over the previous period.

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
modeNo
stepsYes
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
compare_previousNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, non-destructive, closed-world behavior. The description adds meaningful behavioral context about how steps are evaluated (page, event, scroll threshold), how modes differ, and that compare_previous runs the same funnel over the previous period. It stops short of describing return structure or authentication/rate-limit behavior.

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?

The description is compact and front-loaded: it states the tool's purpose first, then step semantics, then mode options and compare_previous. Every sentence adds actionable information without repetition or filler.

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?

For a 10-parameter analytics tool with no output schema, the description covers the essential behavior: what the funnel computes, valid step types, mode differences, and previous-period comparison. Annotations and schema cover safety and most parameter details. Some minor return-shape details are omitted, but they are not critical for correct invocation.

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?

With 70% schema description coverage, the description fills important gaps: it explains mode enum meanings, step types and wildcard support, scroll threshold semantics, and compare_previous behavior. Other parameters such as filters, period, and timezone are already documented in the schema, so the description appropriately avoids restating them.

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 clearly states a specific analysis: 'Conversion funnel: how many sessions completed each step.' It defines what a step is and outlines modes, so the agent knows the resource and operation. However, it does not explicitly distinguish this tool from similar siblings such as get_journeys or get_retention.

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 by the funnel description and the explanation of ordered/strict/flexible modes. There is no explicit guidance on when to choose run_funnel over sibling tools, nor any stated prerequisites or exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources