Skip to main content
Glama

Create a funnel

create_funnel

Saves a funnel: ordered steps a visitor must reach in turn, ending for example in payment to see where buyers drop off. 1–8 comma-separated steps, counted in order: visit, page:/path (path prefix), page:=/path (exact page), page:host/path (one hostname), event:goal_name, identify, payment. Example: visit,page:/pricing,event:signup,payment. Show the user the name and steps before saving. Returns the funnel; report it with get_conversions and funnel_id. Up to 50 funnels per website. Requires the write scope (admin or owner).

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

Input Schema

NameRequiredDescriptionDefault
nameYesFunnel name, e.g. Pricing to paid.
stepsYes1–8 comma-separated steps, counted in order: visit, page:/path (path prefix), page:=/path (exact page), page:host/path (one hostname), event:goal_name, identify, payment. Example: visit,page:/pricing,event:signup,payment
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).

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 cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds genuinely new context: the write scope requirement (admin or owner) and the per-website funnel cap. It does not address duplicate names or what happens when the 50-funnel limit is hit, which keeps it short of a 5.

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 front-loaded with the definition and example, then tacks on the confirmation step, quota, and auth requirement in short clauses. The step-syntax sentence duplicates the schema field description, which is the only real waste.

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 3-parameter mutation with no output schema, it covers the essentials: what gets created, the step grammar, the confirmation workflow, the auth scope, and the quota. Return handling is addressed by pointing to get_conversions with funnel_id, though failure modes are unmentioned.

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 schema already documents all three parameters. The description restates the steps syntax and example almost verbatim from the schema, so it adds ordering emphasis ('counted in order') but little meaning the schema lacks; 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 description uses a specific verb and resource ('Saves a funnel') and immediately defines what a funnel is: ordered steps a visitor must reach in turn. It doesn't explicitly contrast with the sibling update_funnel, but the creation semantics are unmistakable from the text.

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 a concrete workflow instruction ('Show the user the name and steps before saving') and a downstream pointer ('report it with get_conversions and funnel_id'), plus a hard limit of 50 funnels per website. It never states when to use update_funnel instead of creating a new one, so the alternative routing is left to inference.

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