Skip to main content
Glama

d8a_run_funnel

Read-only

Use this to measure conversion through ordered steps, e.g. product view, add to cart, purchase: how many users or sessions reach each step within a conversion window, with per-step conversion, drop-off and timing, and an optional breakdown. Add compare for an earlier period; the summary gives entrant and completion deltas, with the completion-rate change in percentage points. Steps are conditions on dimensions, e.g. the name dimension for event names: read d8a_get_tracking_guide topic funnel-definition first, or start from a saved funnel's run_input.

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": {
      "property_id": "<property_id>",
      "definition": "<definition>"
    },
    "name": "d8a_run_funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
presetNoInstead of dates. last_week is the previous Sunday-Saturday.
compareNoAlso run the same request for a comparison period: previous_period (the same number of days just before), previous_year (the same dates a year earlier) or explicit dates.
date_toNoLast day (inclusive), YYYY-MM-DD, in the property timezone.
date_fromNoFirst day, YYYY-MM-DD, in the property timezone.
definitionYes
property_idYesProperty ID from d8a_list_properties.

Output Schema

NameRequiredDescriptionDefault
periodYes
resultYes
summaryNo
previousNo
timezoneYes
warningsYes
property_idYes
generated_atYes
compare_periodNo
breakdown_labelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: it enumerates the output content (per-step conversion, drop-off, timing) and explains that compare yields entrant and completion deltas with the completion-rate change expressed in percentage points. It does not mention cost, latency, or limits on step count, so it is useful context rather than a full behavioral picture.

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?

The single paragraph is front-loaded with the core purpose, then moves to comparison behavior and finally to the definition prerequisite, which is the right order of importance. It is dense but nearly every clause carries information; a light restructuring into sentences or bullets would improve scanability.

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 tool with a deeply nested definition object, six parameters and an output schema, the description covers purpose, prerequisite guidance, comparison output semantics and breakdown optionality. Given that an output schema already documents return values, the remaining gap is mainly the meaning of the enumerated-but-undocumented definition fields, which it partially delegates to d8a_get_tracking_guide.

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 coverage is 83%, above the baseline, yet the complex nested `definition` object has largely undocumented subfields (kind, order, aggregation) and the description compensates by explaining that steps are conditions on dimensions, that the `name` dimension carries event names, and how the conversion window is applied. It also clarifies compare semantics (previous_period = the same number of days just before) and that preset substitutes for explicit dates. It still leaves the valid values for kind, order and aggregation unstated.

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 gives a specific verb and resource — measure conversion through ordered steps — and spells out the output shape (per-step conversion, drop-off, timing, optional breakdown), so the agent knows exactly what this tool computes. It does not explicitly contrast itself with the sibling d8a_run_query or d8a_run_journeys, so the alternative-selection signal is only implicit.

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 states the usage context (ordered-step conversion with a conversion window) and gives a concrete prerequisite: read d8a_get_tracking_guide topic funnel-definition first, or start from a saved funnel's run_input. It also explains what `compare` is for. What is missing is any explicit when-not guidance versus the other run/query siblings.

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