Marketing spend and cost per lease
marketing_performanceFor 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
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last month, YYYY-MM (optional; default this month). | |
| from | No | First month, YYYY-MM (optional; overrides months). | |
| months | No | How many months back from this month (default the account's setting, usually 6). | |
| property_id | No | Only leads and spend tied to one property (optional). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| note | No | Why the result was truncated, when it was. | |
| notes | No | ||
| totals | No | ||
| window | No | ||
| channels | No | ||
| degraded | No | ||
| pipeline | No | ||
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| not_marketing | No | ||
| total_available | No | How many rows existed before truncation. |