Skip to main content
Glama

Get a campaign’s online sales

get_sales_funnel
Read-onlyIdempotent

Use this when a signed-in brand asks how one campaign is selling online: link clicks and what followed on their website (page views, carts, purchases), then the sales their store confirmed, refunds and creator commission, by creator. Changes nothing.

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": {
      "campaign": "<campaign>"
    },
    "name": "get_sales_funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignYesThe campaign reference, like cmp_…, from create_campaign_draft or list_campaigns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so 'Changes nothing' largely restates what structured data already says. The genuinely additive part is the disclosure of the return payload's shape and ordering (clicks, then on-site follow-through, then store-confirmed sales, refunds and commission), which functions as a stand-in for the missing output schema. No permission model, latency, or data-freshness details are given.

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 a single front-loaded sentence that opens with the usage trigger and then enumerates the payload, with no filler paragraphs. The trailing 'Changes nothing' is the one clause that fails to earn its place given the annotations.

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?

There is no output schema, so the description carries the burden of explaining return values, and it does so concretely including attribution and refund/commission treatment. Remaining gaps are minor: no mention of time-window defaults, empty-result behavior, or response format, which matter somewhat for a funnel-metrics tool.

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?

With a single required parameter at 100% schema description coverage, the schema already documents the campaign reference format and its source tools. The description only reinforces the 'one campaign' framing and adds no format, edge-case, or validation detail beyond that. 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 names a specific resource (one campaign's online sales funnel) and enumerates the exact metrics returned: link clicks, page views, carts, purchases, confirmed sales, refunds and creator commission, attributed by creator. That scope makes it distinguishable in spirit from a general reporting tool, though it never names the sibling campaign_report explicitly.

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 an explicit trigger condition: use it when a signed-in brand asks how one campaign is selling online, and it fixes the unit of analysis to a single campaign. It stops short of stating when not to use it or naming the alternative (campaign_report) for multi-campaign or aggregate reporting.

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