Read one number by day
metrics_seriesReads one business-wide number day by day over the last days, every channel added together: { metric, sources (every source that has measured it), series ([{date, value}], only the days something was measured: a missing day is unknown, never zero), total, level }. One source counts where several measure the same number (Stripe before Marsell's own app for money and subscriptions, else the one read most recently), so sources are never added together. total is the span's sum for a count, and the last measured day's value for a level (level true); null when nothing was measured. Use it for a trend; a piece of work's own results are outcomes_summary, and what is not counted yet and why is in situation_read.
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": {
"metric": "<metric>",
"days": "<days>"
},
"name": "metrics_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | The span, in days ending today (30 for a month, 90 for a quarter). | |
| metric | Yes | The number. Counts of each day: visits, sessions_by_source (visits split by where they came from), signups, orders, revenue_cents (money taken, in cents), spend_cents (ad spend, in cents), reach, impressions, engagement, clicks, replies, mentions, citations (AI assistants' answers citing the business), backlinks, posts_published, clips_live (creators' clips that went live), accounts (new customer accounts in the business's own app), activations, new_subscriptions, cancelled_subscriptions, customers (new at the payment provider), booked_calls, video_views (the channel's views that day), uploads. Levels, the standing value on each day: indexed_pages, subscriptions (paying), mrr_cents (monthly recurring revenue, in cents), trials, followers, video_views_total, stars, forks, open_issues, release_downloads (the latest release), downloads (every release since the first). | |
| project | No | The project's id or exact name. Optional when the account has one project. |