Skip to main content
Glama

Statable Analytics

Update funnel

update_funnel
DestructiveIdempotent

Replace a funnel's definition. Send the whole funnel including every step — omitted steps are removed, not kept. Steps take the same shape as in create_funnel. An omitted scope or strict_order keeps the funnel's current value.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
siteYessite_id from list_sites.
scopeNo
stepsYes
funnel_idYesid from list_funnels.
strict_orderNo

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.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes further by explaining exactly what is destroyed: omitted steps are removed, not kept. It also discloses the subtle asymmetry that omitted scope/strict_order retain current values while omitted steps do not — precisely the trap an agent would otherwise fall into on a destructive tool.

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?

Three short sentences, front-loaded with the replacement contract, followed by the two nuances that matter. No filler, no restatement of the title, and the destructive warning is placed before the shape reference.

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 destructive, idempotent mutation with nested step arrays and no output schema, the description covers replacement semantics, step shape, and partial-update defaults — enough to call it correctly. It leaves unstated whether the call returns the updated funnel or how invalid funnel_ids fail, which are minor given the annotation coverage.

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 33%, but the schema's nested step properties are richly documented, so the real gaps are name, scope and strict_order. The description resolves the scope and strict_order semantics (omitted = keep current) and points to create_funnel for step shape; only the required "name" field remains undocumented anywhere.

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?

"Replace a funnel's definition" names a specific verb and resource, and the word "replace" distinguishes it from the sibling create_funnel and from the other update_* tools. An agent immediately knows this mutates an existing funnel rather than creating or listing one.

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 makes the usage contract explicit — the whole funnel must be sent, and "Steps take the same shape as in create_funnel" routes the agent to the right sibling for the payload format. It stops short of naming when to prefer create_funnel over this tool or any prerequisite (e.g., needing funnel_id from list_funnels, which is only in the schema).

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