MCP server that recalibrates advertising decisions against observed sales-funnel performance
Five tools with complete schemas, strong descriptions (150-250 chars), and clear parameter documentation. All tools are read-only with proper risk annotations. Naming is domain-specific but not action-verb-prefixed (measure_sku_funnel vs get_sku_funnel_metrics). Parameter descriptions include ranges, defaults, and ISO format specs. Output schemas are documented in code but not exposed in tool registration. Error handling is present but generic. No security issues detected (read-only, no secrets). Composition is sound, each tool has one responsibility and outputs chain naturally.
Judge whether a proposed advertising decision survives contact with the measured funnel rates and current cost per lead. Returns 'supported' when the proposal is sound, 'contradicted' when the evidence argues for a different action, or 'insufficient_data' when the sample is too thin to rule. Read-only.
List every product in the snapshot with order counts, manufacturer, and whether economics are on file. Use this to discover which products can be measured and which lack the price and cost data that calibration requires. Read-only.
Measure the observed call-centre approval, post-office buyout, and return rates for one product over a date window, counting only order cohorts old enough to have resolved. Use this before any decision that depends on approval or buyout rates, instead of assuming the portfolio-wide 65% approval and 52.5% buyout. Returns rates together with sample size and a reliability flag, and returns null rates with reliability 'insufficient' rather than a number when the resolved sample is too small to support a conclusion. Read-only.
Recompute Stop CPL (the cost per lead at which profit reaches zero) and Goal CPL (the optimisation target) for one product from its own measured funnel rates instead of portfolio-wide assumptions, and report the drift against the baseline currently in use. Measures the product itself when observed rates are not supplied. Use whenever a cost-per-lead target is being set, defended, or questioned. Flags the case where the assumed target sits above the true break-even, which is invisible in the ads dashboard. Read-only.
Tool names lack action verbs. 'measure_sku_funnel' should be 'get_sku_funnel_metrics' or 'measure_funnel_rates'. LLMs infer intent from verb-noun patterns; domain-specific names reduce clarity.
Output schemas are documented in Python type hints and docstrings but not exposed in the MCP tool registration. LLMs cannot see the structure of returned fields (e.g., FunnelMeasurement.approval_rate, .reliability) without reading implementation code.
Error messages are generic ToolError strings. No recovery guidance. E.g., 'Unknown product code' lists similar codes but does not suggest calling list_covered_skus() first to discover valid SKUs.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | 2025-06-18+ | v2 |
Recommend the next action for a product from its measured funnel rates and current cost per lead, without reference to any outside proposal. Returns one of: scale (the product is strong), hold (it is performing as expected), pause_retry (it is weak but not hopeless), stop (it is hopeless), or full_stop (it is losing money on every parcel). Read-only.
Parameters like 'window_from' and 'window_to' accept optional ISO dates with defaults, but the description does not state what the defaults are (snapshot.window_from, snapshot.window_to). LLMs cannot infer defaults from code.
No pagination or result limits documented for list_covered_skus(). If the snapshot contains thousands of SKUs, the response could exhaust context. No limit parameter or guidance on expected result size.