Record weekly evidence
Record one week of evidence for one product, across Product, Sales, and Marketing. Run this once per product per week.
Goal
One weekly snapshot saved against a product, with exactly three stored areas and an explicit distinction between measured and not-applicable evidence.
Steps
- 01
Pick the product and the week
Get productId from list_portfolio or get_product. Send weekStart as the UTC Monday for the reporting week. The server normalizes dates to UTC Monday. A new submission for the same product and week replaces that snapshot and all its area signals, so resend the complete intended week, not a partial patch.
- 02
Fill each of the three areas
Send a signals array with at most one entry for each of product, sales, and marketing. Set the KPI first with a metric decision if you want its name, target, and unit captured. The server copies those three fields from the current metric definition; they are not snapshot input arguments.
- area
- Required: product, sales, or marketing.
- focusText
- Optional focus for this area and week.
- currentValue
- Optional numeric observation. Zero is a measured zero, not missing data.
- trend
- One of up, down, or flat.
- status
- Only populated or not_applicable are accepted as inputs. Defaults to populated for a supplied signal.
- note
- Anything the numbers do not carry.
- 03
Set an honest status on every area
Use populated for an applicable area; currentValue can be null when no observation is available, with a note explaining the gap. Use not_applicable only when the area does not apply. Omitted areas are stored as not_applicable, with numeric and metric fields cleared. Do not submit missing: it is a read-time placeholder when there is no snapshot, not an accepted MCP input status.
- 04
Write it through your agent
Call upsert_weekly_snapshot with productId, weekStart, signals, and a new idempotencyKey. The example uses placeholder identifiers: replace them before use. It demonstrates one supplied area; the other two will be stored as not_applicable. Retry the same normalized request with the same key to read its saved result. A correction needs a new key and the complete intended signals array.
{ "idempotencyKey": "<unique-key>", "productId": "<productId>", "weekStart": "2026-11-09", "signals": [ { "area": "product", "focusText": "Improve activation", "currentValue": 42, "trend": "up", "status": "populated", "note": "Measured from the weekly cohort" } ] } - 05
Check freshness on the portfolio
Read the product and snapshot back, then check the portfolio. Server freshness is based on weekStart, not submittedAt: resubmitting an old week does not make it current. submittedAt is an optional submission timestamp.
Worth knowing
Evidence is copied, not linked
The metric name, target, and unit are copied at submission. A later metric decision does not alter existing snapshots. Resubmitting a week replaces it and copies the metric definition again.
One snapshot per product per week
The product and normalized week are unique together. Snapshots are replaceable, unlike immutable decisions. list_product_snapshots returns up to the eight newest weeks.