Skip to main content
Glama

Marketing spend and cost per lease

marketing_performance
Read-onlyIdempotent

For a landlord, a management company or a contractor: what was spent on each way people find them (listing networks, the Seayora listing, social ads, signs, referrals, walk-ins, phone) over a window of months, beside the contact book's own funnel for the same channel — leads, tours, applications and signed leases (or, for a contractor, quotes and customers hired) — and the cost of each. A lead counts toward the channel they FIRST came through. Seayora's own listing advertising is included automatically as spend, less refunds. A cost is given only where there is something to divide by: "null" means no leads (or no leases) yet, NEVER zero cost — say so. "Not from marketing" are people who reached the account some other way and carry no cost. "degraded" names a part that could not be read (listing fees, contacts, budgets) — the figures are then incomplete, not zero. Read only.

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": "marketing_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast month, YYYY-MM (optional; default this month).
fromNoFirst month, YYYY-MM (optional; overrides months).
monthsNoHow many months back from this month (default the account's setting, usually 6).
property_idNoOnly leads and spend tied to one property (optional).

Output Schema

NameRequiredDescriptionDefault
toNo
fromNo
noteNoWhy the result was truncated, when it was.
notesNo
totalsNo
windowNo
channelsNo
degradedNo
pipelineNo
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
not_marketingNo
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations to disclose non-obvious behavior: first-touch lead attribution, automatic inclusion of Seayora listing advertising net of refunds, the meaning of "null" (no denominator, never zero cost), the "not from marketing" bucket, and that "degraded" signals partial rather than zero figures. These are exactly the interpretation traps an agent would otherwise fall into when reporting numbers.

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?

Front-loads the core purpose and reserves the trailing sentences for interpretation rules that each earn their place. The opening sentence is dense with nested parentheticals that slow parsing, but there is little true filler.

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?

Output schema exists, so return structure need not be described, and the description covers the critical edge-case semantics (nulls, degraded, unattributed contacts). The one gap relative to tool complexity is disambiguation from neighboring analytics tools, which is left implicit.

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 all four parameters (to, from, months, property_id) are already documented in the schema. The description only echoes the "window of months" concept and adds no format or precedence detail (e.g. how from overriding months interacts) beyond what the schema supplies, so the 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?

States a specific verb-and-resource combination: spend per acquisition channel over a month window, paired with the funnel (leads, tours, applications, leases) and cost-per-outcome. It is clearly distinguishable from a generic listing tool in substance, but it never names a sibling (e.g. listing_performance or contractor_analytics) to route the agent, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the intended audiences (landlord, management company, contractor) and the window semantics, which implies when the tool applies. However, there is no explicit statement of when to prefer it over listing_performance or contact_pipeline, and no exclusions or prerequisites, so guidance remains implied rather than stated.

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