Skip to main content
Glama
Dealroot

Dealroot

Get lead report

dealroot-get-report
Read-onlyIdempotent

Get visits, leads, won deals, revenue, gross profit, ad spend and contact clicks grouped by channel, source, campaign, landing page or form to see which marketing efforts bring enquiries and customers and which pay off.

Instructions

Returns visits, leads, won deals, revenue, gross profit (when margins are set), ad spend (when imported) and contact clicks grouped by marketing channel, source, campaign, landing page or form. Use it to answer which channels or campaigns bring enquiries and customers, and which ones pay off.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dealroot-get-report"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoCredit the first visit, the visit right before the enquiry, or half each (shared). By channel, a lead can also be shared among all its visits: equally (path), more for recent visits with a half-life of 7 days (time_decay), 40% first, 40% last and 20% in between (position), or by how much each channel makes the difference between won and lost enquiries (data_driven, a Markov chain; with fewer than 10 won deals it counts like position). Shared models give fractions of leads.first
periodNoReporting period: 7d, 30d, 90d, this_month, last_month, 12m or all.30d
dimensionNochannel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered structurally. The description adds real behavioural detail the annotations cannot: gross profit appears only when margins are configured and ad spend only when imported, which explains why result fields may be missing. Return shape and any cost/latency characteristics remain unspecified.

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?

Two sentences, both earning their place: the first front-loads what is returned, the second states the decision it supports. No filler, no restating of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description must convey the payload, and it does so by listing every metric plus the conditional-field caveats. With only three optional, fully enum-constrained parameters, nothing an agent needs in order to call it correctly is missing; the unmentioned dimension values are visible in the schema.

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 coverage is 67% and the model enum carries an unusually detailed, self-sufficient explanation, so the schema does most of the work. The description restates the grouping axes but only five of the nine dimension values (device, browser, country and city go unmentioned), and adds nothing about attribution or period beyond what the schema says.

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 the resource (a report) and enumerates the metrics returned (visits, leads, won deals, revenue, gross profit, ad spend, contact clicks) plus the grouping axes (channel, source, campaign, landing page, form). That is specific enough to separate it from the sibling tools dealroot-get-lead and dealroot-list-leads, which deal with individual leads. It stops short of stating outright that this is the aggregation tool rather than a record fetcher.

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?

'Use it to answer which channels or campaigns bring enquiries and customers, and which ones pay off' gives a concrete question this tool answers, which is stronger than generic context. It offers no explicit exclusions or pointers to the sibling tools for single-lead lookups, so the agent must infer those boundaries.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.