Skip to main content
Glama

Statable Analytics

Create funnel

create_funnel
Idempotent

Add a funnel: an ordered list of 2 to 8 steps, e.g. {"kind":"page","path":"/pricing"}, {"kind":"page","path":"/products/","operator":"b"}, {"kind":"event","event":"Signup"}, {"kind":"goal","goal_id":7}, {"kind":"scroll","threshold":50}. entry_page may only be the first step and exit_page only the last. scope "visitor" (default) or "session". A duplicate name is refused (funnel_exists). Read the result with funnel_report.

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": {
      "site": "<site>",
      "name": "<name>",
      "steps": "<steps>"
    },
    "name": "create_funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
siteYessite_id from list_sites.
scopeNo
stepsYes
strict_orderNoSteps must occur in exactly this order with nothing between.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / steps / items / properties / event
      Added value: +{
      +  "description": "Custom event name, for event.",
      +  "type": "string"
      +}
    • addedInput schema / properties / steps / items / properties / goal_id
      Added value: +{
      +  "description": "id from list_goals, for goal.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / steps / items / properties / kind
      Added value: +{
      +  "description": "entry_page only as the first step, exit_page only as the last.",
      +  "enum": [
      +    "page",
      +    "event",
      +    "goal",
      +    "scroll",
      +    "entry_page",
      +    "exit_page"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / steps / items / properties / operator
      Added value: +{
      +  "description": "How path matches: e exact (default), b begins with, c contains, r RE2 regex.",
      +  "enum": [
      +    "e",
      +    "b",
      +    "c",
      +    "r"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / steps / items / properties / path
      Added value: +{
      +  "description": "URL path, for page, entry_page and exit_page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / steps / items / properties / prop_key
      Added value: +{
      +  "description": "Optional: only events with this property, for event.",
      +  "type": "string"
      +}
    • addedInput schema / properties / steps / items / properties / prop_value
      Added value: +{
      +  "description": "The value prop_key must have.",
      +  "type": "string"
      +}
    • addedInput schema / properties / steps / items / properties / threshold
      Added value: +{
      +  "description": "Scroll depth in percent, for scroll.",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • removedInput schema / properties / steps / items / properties / type
      Removed value: -{
      -  "enum": [
      -    "page",
      -    "event",
      -    "entry_page",
      -    "exit_page"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / steps / items / properties / value
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / properties / steps / items / required
      Previous value: -[
      -  "type",
      -  "value"
      -]New value: +[
      +  "kind"
      +]
    • addedInput schema / properties / steps / maxItems
      Added value: +8
  2. Added
  3. Removed
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (non-destructive, idempotent, closed-world), and the description adds genuinely non-obvious behavior: duplicate names are refused with a funnel_exists error, entry_page/exit_page are positionally constrained, and scope defaults to visitor. It does not describe what the response contains or permission requirements.

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?

It is dense and front-loaded: creation semantics first, then constraints, defaults, error mode, and the follow-up tool. Inline JSON fragments make it longer than a plain sentence but each carries real information about step shapes.

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 mutation tool with no output schema and 40% parameter coverage, the description covers constraints, defaults, and failure modes thoroughly. The main gap is that it never says what a successful call returns (e.g., the created funnel's identifier), which an agent would need before calling funnel_report.

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 description coverage is only 40%, but the description compensates well by showing concrete step-object examples (page/event/goal/scroll with operator "b"), explaining positional rules for entry_page and exit_page, and stating the scope default. Name uniqueness and the 2–8 step bounds are also clarified beyond the raw schema.

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?

The description opens with a specific verb and resource ("Add a funnel") and immediately defines the resource as an ordered list of 2 to 8 steps. It is clearly distinguishable from siblings like update_funnel, list_funnels, and funnel_report.

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 creation context plus a follow-up pointer ("Read the result with funnel_report"), and states validation rules that select valid inputs. It stops short of explicitly routing modification to update_funnel or listing to list_funnels, so alternatives are only partially covered.

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