{"attempts": [], "calls": [], "denied_syscalls": [{"errno": 1, "kind": "attempt", "operation": "unclassified", "target": "syscall:425"}, {"errno": 1, "kind": "attempt", "operation": "unclassified", "target": "syscall:425"}, {"errno": 1, "kind": "attempt", "operation": "unclassified", "target": "syscall:425"}], "exit_before_cleanup": null, "initialize": {"capabilities": {"tools": {"listChanged": true}}, "protocolVersion": "2025-11-25", "serverInfo": {"description": "Cresva: AI growth team for ecommerce brands. Ad performance, forecasts, profit, and your storefront as AI shopping agents see it.", "name": "cresva", "version": "2.5.1"}}, "list_change_notifications": 0, "monotonic_seconds": 0.9332543700002134, "outcome": "listed tools offline", "placeholder_env": [], "started_utc": "2026-11-27T14:30:34.880996Z", "status": "completed", "tools": [{"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "List brands"}, "description": "List the brands on this Cresva account, each with the ad platforms it has connected, its status, and when it last synced. Call this FIRST whenever you do not already know which brand id to use, because every other ad performance tool needs one. Takes no arguments and is one of the cheapest calls here. Returns what Cresva has on the account, so a brand that was never set up will not appear. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {}, "type": "object"}, "name": "list_brands", "title": "List brands"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "List campaigns"}, "description": "List a brand's campaigns that actually delivered in a window, each with its campaign id, the platform it ran on, what it spent and when it last delivered. Call this whenever you need a campaign id and do not have one, which is every time before compare_campaigns, and to find out what a brand is currently running. Ordered by spend, so the campaigns that matter come first. Returns only campaigns with delivery in the range, so a campaign that has been off all month will not appear: widen date_range to see it. Spend is labelled with the currency the ad account reports in, and there is deliberately no account total, because summing across accounts reporting in different currencies produces a number nobody can act on. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "date_range": {"default": "last_30d", "description": "How far back to look for delivery. Campaigns with no delivery in the window are not listed.", "enum": ["last_7d", "last_14d", "last_30d", "last_90d"], "type": "string"}, "limit": {"default": 50, "description": "How many campaigns to return, highest spend first.", "maximum": 200, "minimum": 1, "type": "integer"}, "platform": {"default": "all", "description": "Which ad platform to read. Defaults to all of them combined.", "enum": ["meta", "google", "tiktok", "microsoft", "all"], "type": "string"}}, "required": ["brand_id"], "type": "object"}, "name": "list_campaigns", "title": "List campaigns"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Get campaign metrics"}, "description": "Read what a brand's ads actually did: spend, revenue, ROAS, CPA, CPC, CPM, CTR, CVR, impressions, clicks, conversions and purchases. Works at account, campaign, ad set or ad level, over exact start_date and end_date or a named date range, with optional breakdowns by age, gender, country, platform, placement or device. Narrow it to campaigns, ad sets or ads by id or exact name; rank with sort_by, sort_order and limit; read a series with grain hour, day, week or month, each bucket with its coverage; and set one period against another with compare_to (previous_period, same_period_last_year or custom dates), which returns both periods, each metric's change and each campaign's contribution to it. Call this for any question about how a brand, a campaign or an ad performed, ranked, moved over time or changed between periods. Returns rows plus totals, and attribution_windows: the window each platform counted its revenue and ROAS over (a total across platforms mixes them). The numbers come from the ad data Cresva has already synced from Meta, Google, TikTok and Microsoft, so they reflect the last completed sync rather than what the platform's own dashboard is showing this minute. A brand whose ad accounts are not connected gets an explicit empty answer rather than a screen of zeroes. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"ad_ids": {"description": "Only these ads.", "items": {"type": "string"}, "type": "array"}, "adset_ids": {"description": "Only these ad sets.", "items": {"type": "string"}, "type": "array"}, "brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "breakdowns": {"description": "Optional splits, for example by country or device.", "items": {"enum": ["age", "gender", "country", "platform", "placement", "device"], "type": "string"}, "type": "array"}, "campaign_ids": {"description": "Only these campaigns (ids from list_campaigns).", "items": {"type": "string"}, "type": "array"}, "campaign_names": {"description": "Only the campaigns with these exact names.", "items": {"type": "string"}, "type": "array"}, "compare_end_date": {"description": "Last day of a custom comparison period, YYYY-MM-DD.", "type": "string"}, "compare_start_date": {"description": "First day of a custom comparison period, YYYY-MM-DD.", "type": "string"}, "compare_to": {"description": "A second period: both periods, each metric's change and each campaign's contribution.", "enum": ["previous_period", "same_period_last_year", "custom"], "type": "string"}, "date_range": {"description": "The period to report on. Use 'custom' with start_date and end_date for anything else.", "enum": ["today", "yesterday", "last_7d", "last_14d", "last_30d", "last_90d", "this_month", "last_month", "custom"], "type": "string"}, "end_date": {"description": "End date as YYYY-MM-DD. Required when date_range is 'custom'.", "type": "string"}, "grain": {"default": "total", "description": "total: one row per entity over the period. hour, day, week or month: one row per bucket, each with its coverage (level account, no breakdowns).", "enum": ["total", "hour", "day", "week", "month"], "type": "string"}, "level": {"default": "account", "description": "How far down to break the numbers. Account level is the whole brand.", "enum": ["account", "campaign", "adset", "ad"], "type": "string"}, "limit": {"default": 20, "description": "Maximum rows to return; totals cover every row.", "type": "number"}, "metrics": {"default": ["spend", "roas", "cpa", "conversions", "revenue"], "description": "Which metrics to return.", "items": {"enum": ["spend", "revenue", "roas", "cpa", "cpc", "cpm", "ctr", "cvr", "impressions", "clicks", "conversions", "purchases", "lpv"], "type": "string"}, "type": "array"}, "platform": {"default": "all", "description": "Which ad platform to read. Defaults to all of them combined.", "enum": ["meta", "google", "tiktok", "microsoft", "all"], "type": "string"}, "sort_by": {"description": "Rank the rows by this metric.", "enum": ["spend", "revenue", "roas", "cpa", "cpc", "cpm", "ctr", "cvr", "impressions", "clicks", "conversions", "purchases", "lpv"], "type": "string"}, "sort_order": {"default": "desc", "description": "desc for top, asc for bottom.", "enum": ["asc", "desc"], "type": "string"}, "start_date": {"description": "Start date as YYYY-MM-DD. Required when date_range is 'custom'.", "type": "string"}}, "required": ["brand_id", "date_range"], "type": "object"}, "name": "get_campaign_metrics", "title": "Get campaign metrics"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Compare campaigns"}, "description": "Put two to ten campaigns, ad sets or ads side by side on the metrics you name, over one shared date range so the numbers are actually comparable. Call this when someone is choosing between them: picking an A/B winner, deciding what to scale, deciding what to switch off. Returns one row per entity. Reads the same synced ad data as get_campaign_metrics, so the same freshness caveat applies. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "date_range": {"default": "last_14d", "description": "One shared period, so the numbers are comparable.", "enum": ["last_7d", "last_14d", "last_30d", "last_90d"], "type": "string"}, "entity_ids": {"description": "The campaign, ad set or ad ids to compare. Between two and ten.", "items": {"type": "string"}, "maxItems": 10, "minItems": 2, "type": "array"}, "level": {"description": "What kind of entity the ids are.", "enum": ["campaign", "adset", "ad"], "type": "string"}, "metrics": {"default": ["spend", "roas", "cpa", "ctr", "conversions"], "description": "Which metrics to compare on.", "items": {"type": "string"}, "type": "array"}, "platform": {"default": "meta", "description": "Which ad platform the ids belong to.", "enum": ["meta", "google", "tiktok", "microsoft"], "type": "string"}}, "required": ["brand_id", "entity_ids", "level"], "type": "object"}, "name": "compare_campaigns", "title": "Compare campaigns"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Detect anomalies"}, "description": "Find what changed unexpectedly in a brand's ad performance: CPA spikes, ROAS drops, spend surges, conversion dips. Call this when someone asks what went wrong, or before a client check-in when you want to walk in already knowing. Returns each anomaly with a severity, its z-score and the baseline it was scored against (the brand's own recent days, not an industry rule of thumb), the platform, and the campaign when the detector recorded one; otherwise the scope is the whole brand. Only changes of at least 2.5 standard deviations are returned. It does not state a cause. Computed from the synced ad data, so a brand with only a few days of history will surface little. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "date_range": {"default": "last_7d", "description": "How far back to look for unexpected changes. custom needs start_date and end_date.", "enum": ["today", "yesterday", "last_7d", "last_14d", "last_30d", "last_90d", "this_month", "last_month", "custom"], "type": "string"}, "end_date": {"description": "Last day of a custom period, YYYY-MM-DD.", "type": "string"}, "metrics": {"default": ["roas", "cpa", "spend", "revenue"], "description": "Which metrics to watch.", "items": {"enum": ["spend", "revenue", "roas", "cpa", "ctr", "cvr", "cpc", "conversions"], "type": "string"}, "type": "array"}, "platform": {"default": "all", "description": "Which ad platform to read. Defaults to all of them combined.", "enum": ["meta", "google", "tiktok", "microsoft", "all"], "type": "string"}, "severity": {"default": "all", "description": "Lowest severity worth returning.", "enum": ["all", "critical", "warning", "info"], "type": "string"}, "start_date": {"description": "First day of a custom period, YYYY-MM-DD.", "type": "string"}}, "required": ["brand_id"], "type": "object"}, "name": "detect_anomalies", "title": "Detect anomalies"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Get budget pacing"}, "description": "Answer whether a brand is on track to spend its monthly budget, and what it will land on if nothing changes. Call this for a mid-month check, or when someone asks whether they are going to overspend. Returns spend so far against expected spend to date, a projected end-of-month figure, and a flag where an account or campaign is pacing over or under against its cap or KPI target. The targets are the ones configured in Cresva, so a brand with no budget set will get pacing without a target to judge it against. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "include_projections": {"default": true, "description": "Include where the month is projected to land.", "type": "boolean"}, "level": {"default": "account", "description": "Pace the whole brand, or each campaign separately.", "enum": ["account", "campaign"], "type": "string"}, "platform": {"default": "all", "description": "Which ad platform to read. Defaults to all of them combined.", "enum": ["meta", "google", "tiktok", "microsoft", "all"], "type": "string"}}, "required": ["brand_id"], "type": "object"}, "name": "get_pacing_status", "title": "Get budget pacing"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Read stored forecast"}, "description": "Read the forecast Cresva has already computed for net sales (the store's own orders, not ad-platform revenue), ad spend or store orders, for the whole brand. Other metrics and levels answer 'not forecast'. Call this when someone asks where a number is heading. IT RETURNS A STORED FORECAST, OR SAYS PLAINLY THAT NONE EXISTS. It does not generate one on demand, so a brand that has not been through Cresva's forecasting job gets an explicit 'no forecast available' rather than a number. Do not describe the result as a live prediction or as something computed for this question; it is a lookup of work done earlier. When a forecast does exist it comes with its range (low to high), the range's coverage level, the date it is for and its currency, and the range is the part worth quoting. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "entity_id": {"description": "A specific campaign or ad set id, if not the whole account.", "type": "string"}, "horizon_days": {"default": 30, "description": "How far ahead the forecast should reach.", "maximum": 90, "minimum": 7, "type": "number"}, "include_ci": {"default": true, "description": "Include the confidence interval, which is the part worth quoting.", "type": "boolean"}, "include_drivers": {"default": true, "description": "Include the drivers behind the forecast, such as seasonality or a budget change.", "type": "boolean"}, "level": {"default": "account", "description": "Entity level.", "enum": ["account", "campaign", "adset"], "type": "string"}, "metric": {"description": "Which metric to look the forecast up for.", "enum": ["spend", "revenue", "roas", "cpa", "conversions", "cpc", "ctr"], "type": "string"}, "platform": {"default": "all", "description": "Which ad platform to read. Defaults to all of them combined.", "enum": ["meta", "google", "tiktok", "microsoft", "all"], "type": "string"}}, "required": ["brand_id", "metric"], "type": "object"}, "name": "forecast_performance", "title": "Read stored forecast"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Compare against benchmarks"}, "description": "Compare a brand's CTR, CVR, CPC, CPM, ROAS or CPA against an industry benchmark. Call this when someone asks whether a number is good, rather than just what it is. WHERE THE BENCHMARK COMES FROM MATTERS AND THE RESPONSE TELLS YOU: every answer carries a benchmark_source field naming the provenance of the row it used, and that provenance is not the same for every industry and day. Read that field and say where the comparison came from; when it is null there is no benchmark row for that industry and day and you should say so rather than implying the brand is average. Treat the result as a directional comparison, not an audited market figure. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "industry": {"default": "ecommerce", "description": "Which industry to benchmark against.", "enum": ["ecommerce", "fashion", "beauty", "food_beverage", "health_wellness", "electronics", "home_garden", "general"], "type": "string"}, "metrics": {"default": ["ctr", "cvr", "cpc", "roas"], "description": "Which metrics to compare.", "items": {"enum": ["ctr", "cvr", "cpc", "cpm", "roas", "cpa"], "type": "string"}, "type": "array"}, "platform": {"default": "meta", "description": "Which ad platform to benchmark on.", "enum": ["meta", "google", "tiktok"], "type": "string"}}, "required": ["brand_id"], "type": "object"}, "name": "get_benchmarks", "title": "Compare against benchmarks"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Recommend budget shifts"}, "description": "Suggest how a brand's daily ad budget should be split across its channels: today's total, or a total_budget you give as a daily figure in the brand's reporting currency. It is the Scenarios page's best split: measured response curves, within the brand's Limits caps, never past break-even, maximising contribution after ad spend when Profit states a margin and net sales otherwise. Constraints you pass are reported back as not applied. THIS IS THE SLOWEST TOOL IN THIS SERVER. It reads performance history and forecasts and runs an allocation pass, so it takes noticeably longer than every other call here. Do not call it speculatively or to fill out an answer; call it when someone has actually asked what to change. Returns each channel's current and suggested daily amount, or says plainly that a spending channel has no measured curve yet. IT RECOMMENDS ONLY. Nothing is applied to any ad account by this tool or by this server, and no budget changes as a result of calling it. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "constraints": {"description": "Business constraints the recommendation must respect.", "properties": {"max_cac": {"description": "Highest acceptable cost per acquisition.", "type": "number"}, "min_roas": {"description": "Lowest acceptable return on ad spend.", "type": "number"}, "min_spend_per_campaign": {"description": "Floor on daily spend per campaign.", "type": "number"}}, "type": "object"}, "optimization_goal": {"default": "maximize_roas", "description": "What the allocation should optimise for.", "enum": ["maximize_roas", "minimize_cac", "maximize_revenue", "maximize_conversions"], "type": "string"}, "platform": {"default": "all", "description": "Which ad platform to read. Defaults to all of them combined.", "enum": ["meta", "google", "tiktok", "microsoft", "all"], "type": "string"}, "total_budget": {"description": "Total monthly budget to allocate, in the account's currency.", "type": "number"}}, "required": ["brand_id"], "type": "object"}, "name": "get_budget_recommendation", "title": "Recommend budget shifts"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Ask Cresva a question"}, "description": "Ask a marketing performance question about a brand in plain language. THIS IS THE FALLBACK. Use a specific tool whenever one fits: get_campaign_metrics for performance, detect_anomalies for what changed, get_pacing_status for budget pacing, compare_campaigns for a head to head. Reach for this one only when the question does not fit any of them, or spans several. It answers these kinds of question: an overview, one metric, a ratio such as ROAS, a breakdown by platform or another dimension, a top or bottom ranking, two named platforms against each other, two campaigns by their ids or by their whole names, one period against another, why a metric changed, and a metric over time. Pass campaign_ids to compare two campaigns. Any other kind (advice, a question that is not about marketing, a metric, shape or time period it does not read) comes back as answer_kind not_supported with what it does answer, and no data is read: say so rather than guessing a figure. It reads these time periods: today, yesterday, the last N days, weeks or months, this week (week to date), last week, this month (month to date, MTD), last month, this quarter (quarter to date), last quarter, a quarter such as Q3 or Q3 2026, this year (year to date, YTD), last year, a month such as September, in September 2026 or since March, the week before last, the month before last, the quarter before last, or the year before last; by hour, day, week or month (for example \"by week\" or \"monthly\"). Any other time period is not supported. Returns the rows it found alongside the question type and the interpretation it made of the question, so you can tell the user how it was read and be corrected. Quote that interpretation back; a confident table with an invisible reading behind it is how a wrong answer survives. Reads the same synced ad data as the other tools here. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "platform": {"default": "all", "description": "Which ad platform to read. Defaults to all of them combined.", "enum": ["meta", "google", "tiktok", "microsoft", "all"], "type": "string"}, "question": {"description": "The question, in plain language, as the user asked it.", "minLength": 3, "type": "string"}}, "required": ["brand_id", "question"], "type": "object"}, "name": "ask_cresva", "title": "Ask Cresva a question"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": false, "title": "Propose a budget change"}, "description": "Propose a daily budget for one Google campaign, stated with the Google Ads account's currency (its three-letter code); a budget in any other currency is refused. THIS DOES NOT CHANGE THE AD ACCOUNT and cannot be made to: it writes one row into the merchant's approvals queue with status 'proposed' and an expiry, through the same writer the Cresva dashboard uses. APPROVING AND RUNNING BOTH HAPPEN IN CRESVA, behind a person and a session. There is no approve tool and no execute tool on this server, so the most this can do is put a suggestion in front of somebody. Propose from anywhere, approve in Cresva. A campaign id that is not this brand's is refused as campaign_not_found (list_campaigns has the ids), a campaign on another platform as not_a_google_campaign, a budget in another currency as currency_mismatch, the current budget again as no_change, one below 1 or with fractions of a cent as budget_below_minimum or budget_precision, and an implausibly large budget as budget_above_limit or, past three times the current one, budget_jump_too_large; nothing is proposed in each case. With dry_run set it says the change it would propose from and to, or that it is already queued. Say so when you use it. A user who hears 'I have changed your budget' and finds an unapproved row in a queue has been told something false, and the opposite error, silently queuing something they did not ask for, is worse. Tell them what you are proposing and what it will cost before you call this. Needs a Cresva API key AND the write:proposals scope, which is off by default and has to be granted explicitly on the consent screen.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "campaign_id": {"description": "The campaign id, exactly as list_campaigns returned it.", "maxLength": 64, "minLength": 1, "type": "string"}, "currency": {"description": "The Google Ads account's currency as its ISO code, the one new_daily_budget is in. Cresva refuses a currency other than the account's, so a budget meant in one currency is never spent in another.", "pattern": "^[A-Za-z]{3}$", "type": "string"}, "new_daily_budget": {"description": "The proposed daily budget in the Google Ads account's own currency, in major units (5000 in a JPY account is 5000 yen). The result names that currency. Cresva refuses a budget above 100,000 USD a day converted into the account's currency at today's rate. Zero is refused: setting a budget to nothing is pausing, which has its own verb.", "exclusiveMinimum": 0, "type": "number"}, "reason": {"description": "Why, in your own words. The merchant reads this beside the numbers when deciding, so say what moved and what you expect.", "maxLength": 500, "minLength": 1, "type": "string"}}, "required": ["brand_id", "campaign_id", "new_daily_budget", "currency", "reason"], "type": "object"}, "name": "propose_budget_change", "title": "Propose a budget change"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Get profit and margin"}, "description": "Read whether a brand actually made money, not just revenue: contribution margin, gross profit, ad spend against what the shop banked, break-even ROAS and CPA, the fee-loaded target ROAS, and which SKUs lose money at their current price. Call this whenever someone asks about profit, margin, break-even, or whether a ROAS figure is good, because a ROAS is only good or bad against a break-even and this is the tool that knows the break-even. Profit here is measured against NET SALES, which is what the shop banked, never the ad platform's attributed revenue. Say so when you quote it. When contribution margin cannot be resolved this returns available: false with the reason, and NO numbers at all. That is deliberate: do not fill the gap with an assumed margin, tell the user which input is missing. The reply names how the margin was determined, and that is worth repeating to the user, because a margin from real product costs and one from a configured percentage deserve different confidence. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "window_days": {"default": 30, "description": "How many days back to measure. Defaults to the last 30.", "maximum": 365, "minimum": 1, "type": "integer"}}, "required": ["brand_id"], "type": "object"}, "name": "get_profit", "title": "Get profit and margin"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Read brand memory"}, "description": "Read what Cresva has learned about a brand over time: recurring patterns it has spotted, decisions that were taken and how they turned out, and recent questions the team asked. Call this before recommending anything, so you can say whether a brand has tried this before and what happened. Repeating an idea that failed here in March is the fastest way to lose a marketer's trust. This is learned context, not a live metric read. For numbers use get_campaign_metrics. Amounts in these strings are already formatted in the brand's own currency, so quote them as they are rather than converting or re-prefixing them. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "include": {"default": ["patterns", "decisions", "conversations"], "description": "Which kinds of learned context to return.", "items": {"enum": ["patterns", "decisions", "conversations"], "type": "string"}, "type": "array"}, "limit": {"default": 10, "description": "How many items of each kind to return.", "maximum": 50, "minimum": 1, "type": "integer"}}, "required": ["brand_id"], "type": "object"}, "name": "get_memory", "title": "Read brand memory"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "List approvals"}, "description": "List the actions a Cresva agent has proposed and is waiting on a human to approve, each with the agent that raised it, what it would touch, the spend cap it may not cross, and when the proposal lapses. Recently decided actions come back too, with their outcome. Call this when someone asks what is waiting on them, what the agents want to do, or why a recommendation has not happened yet. READ ONLY. You cannot approve, reject or expedite anything from here, and there is no tool that can: a person decides in the Cresva app. Say that plainly rather than offering to do it. Each status is one of pending, done, not_confirmed (sent, but the platform did not confirm it took effect), not_sent (approved and recorded, nothing sent to the platform), no_change, undone, rejected, expired or not_run, the words the Cresva approvals page uses. A null spend cap means none was recorded on that proposal, not that the action is uncapped. Do not describe it as unlimited. The limit applies to each list on its own: up to that many waiting and up to that many recent. Needs a Cresva API key.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Use list_brands if you do not have it.", "minLength": 1, "type": "string"}, "include_recent": {"default": true, "description": "Include recently decided actions as well as what is waiting.", "type": "boolean"}, "limit": {"default": 20, "description": "How many proposals to return, pending and recent each.", "maximum": 50, "minimum": 1, "type": "integer"}}, "required": ["brand_id"], "type": "object"}, "name": "list_approvals", "title": "List approvals"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Discover a storefront"}, "description": "Check what a brand publishes for AI shopping agents: whether there is an agent-readable storefront at all, and what it supports (search, recommend, compare, negotiate, buy), which currencies and languages, and its rate limits. Call this FIRST when working with a storefront, because it tells you which of the other storefront tools will work for that brand. Returns the brand's published capability manifest, which is what the brand declares about itself rather than anything Cresva measured. No API key and no Cresva account needed.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Storefront tools are public, so this can be a brand you do not own.", "minLength": 1, "type": "string"}}, "required": ["brand_id"], "type": "object"}, "name": "discover_storefront", "title": "Discover a storefront"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Search products"}, "description": "Search a brand's catalogue using the words a shopper would actually use, with an optional category filter and price cap. Call this when someone describes what they are looking for rather than naming a product. Returns ranked product cards with price, currency and availability; a product holding the whole phrase ranks above one matching only some of its words. A price cap needs a catalogue priced in one currency. Matching is done by the storefront, not by you: words match whole, singular or plural, so tea does not match teapot. A query that returns nothing may mean the catalogue words it differently rather than that the product is absent, so try list_products before telling someone a brand does not sell something. No API key needed.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Storefront tools are public, so this can be a brand you do not own.", "minLength": 1, "type": "string"}, "category": {"description": "Optional category filter, for example 'sports/footwear/running'.", "type": "string"}, "limit": {"description": "How many results to return. Up to 30.", "maximum": 30, "minimum": 1, "type": "integer"}, "price_max": {"description": "Optional maximum price.", "exclusiveMinimum": 0, "type": "number"}, "query": {"description": "What the shopper is looking for, in their own words.", "minLength": 2, "type": "string"}}, "required": ["brand_id", "query"], "type": "object"}, "name": "search_products", "title": "Search products"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "List products"}, "description": "Page through a brand's catalogue in order, rather than searching it. Call this when someone wants to browse, when you need to know how big a catalogue is, or when a search came back empty and you want to check whether the catalogue is empty or just worded differently. Returns product cards with price, currency and availability, plus a total count. No API key needed.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Storefront tools are public, so this can be a brand you do not own.", "minLength": 1, "type": "string"}, "limit": {"description": "How many per page. Up to 50.", "maximum": 50, "minimum": 1, "type": "integer"}, "page": {"description": "Which page of the catalogue. Starts at 1.", "maximum": 9007199254740991, "minimum": 1, "type": "integer"}}, "required": ["brand_id"], "type": "object"}, "name": "list_products", "title": "List products"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Get a product"}, "description": "Read one product in full: price, currency, availability, description, attributes such as colour, size and material, images, and any review summary the storefront publishes. Call this after a search or a listing when you need more than a card, and always before quoting a price to someone as fact. Returns the fields a purchase decision actually needs. No API key needed.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Storefront tools are public, so this can be a brand you do not own.", "minLength": 1, "type": "string"}, "product_id": {"description": "The product id, as returned by search_products or list_products.", "minLength": 1, "type": "string"}}, "required": ["brand_id", "product_id"], "type": "object"}, "name": "get_product", "title": "Get a product"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Compare products"}, "description": "Put two to five products from the same brand side by side on the fields an agent reads: price, availability, attributes, and what differentiates them. Call this when someone is choosing between specific products they have already found. All the products must belong to the same brand; this does not compare across brands. No API key needed.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Storefront tools are public, so this can be a brand you do not own.", "minLength": 1, "type": "string"}, "product_ids": {"description": "Between two and five product ids, all from the same brand.", "items": {"minLength": 1, "type": "string"}, "maxItems": 5, "minItems": 2, "type": "array"}}, "required": ["brand_id", "product_ids"], "type": "object"}, "name": "compare_products", "title": "Compare products"}, {"annotations": {"destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true, "title": "Get trust score"}, "description": "Read the trust signals a storefront publishes about itself: a composite score out of 100, a tier, the components behind it such as fulfilment reliability and pricing transparency, and any certification. Call this when weighing whether to recommend a brand, alongside price and availability rather than instead of them. The tier is 'unrated', with a tier_reason, when too little is measured, when the score is provisional, or when the storefront's orders were seeded rather than real; unrated means not yet measured, never badly rated. Say it that way. A component that is unmeasured or not applicable is null, measured_components says which are measured, and a seeded storefront publishes no stored score (unweighted_score is null). No API key needed.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Storefront tools are public, so this can be a brand you do not own.", "minLength": 1, "type": "string"}}, "required": ["brand_id"], "type": "object"}, "name": "get_trust_score", "title": "Get trust score"}, {"annotations": {"destructiveHint": true, "idempotentHint": false, "openWorldHint": true, "readOnlyHint": false, "title": "Negotiate a price"}, "description": "Open a live price negotiation with a brand for one of its products. THIS IS NOT A READ. It creates a real negotiation session against the brand's own pricing rules, and the reply can be an ACCEPTED OFFER WITH AN ORDER REFERENCE and a hold on the price. Other replies are a counter-offer at a different price, a rejection, or an alternative such as a bundle. CONFIRM THE EXACT NUMBER WITH THE USER BEFORE YOU CALL THIS. Do not pick an offer price yourself, do not round one you were given, and do not call it to find out what would happen. Every call is a fresh negotiation and the brand's rules decide the outcome, not you. Call it only when the user has said what they want to offer and has understood that it may be accepted on the spot. The tool reads the product's list price and currency itself, so you supply only the offer. No API key needed, which means anyone can open a negotiation: treat that as a reason for more care, not less.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"brand_id": {"description": "The brand's id in Cresva. Storefront tools are public, so this can be a brand you do not own.", "minLength": 1, "type": "string"}, "message": {"description": "An optional note to send with the offer.", "type": "string"}, "offered_price": {"description": "The price the USER said they want to offer, per unit. Do not invent or round this.", "exclusiveMinimum": 0, "type": "number"}, "product_id": {"description": "The product to negotiate on.", "minLength": 1, "type": "string"}, "quantity": {"description": "How many units. Defaults to 1.", "exclusiveMinimum": 0, "maximum": 9007199254740991, "type": "integer"}}, "required": ["brand_id", "product_id", "offered_price"], "type": "object"}, "name": "negotiate_price", "title": "Negotiate a price"}, {"annotations": {"destructiveHint": false, "idempotentHint": false, "openWorldHint": true, "readOnlyHint": true, "title": "Scan a store for AI shopping agents"}, "description": "Point this at any public store URL and it reports whether AI shopping agents can find it, understand what it sells, and buy from it. Returns a three-axis verdict with the individual checks behind each one, quoted evidence from the page, what the store's robots.txt declares per crawler, and specific fixes. NO BRAND ID AND NO API KEY. It works on any public store, including one the user does not own, so it answers both 'is my store ready for AI shopping agents' and 'how does this competitor compare'. Takes a few seconds and makes no model calls, so it is cheap to run. This is the tool to reach for when someone names a store by its web address rather than by a Cresva brand. Returns storePage, the store's one public page on cresva.ai when it has one (its Store run, else its AI Shopper Index entry), the same page run_ai_shopper hands off to. OPTIONALLY, pass tryToBuy: true and it also WALKS the store's checkout the way a shopping assistant would: it finds the machine-readable route, reads the offer for that product, adds one to a cart, and asks what shipping costs to an address in the store's own market. It stops before payment, never completes a checkout and never sends card details. Use tryToBuy only when someone asks whether an agent can actually BUY, and only on a product URL, because it puts one item in a real cart on somebody's shop. Without it this tool only reads what the store publishes.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"fresh": {"default": false, "description": "Bypass the one hour cache. Use when the store was just changed.", "type": "boolean"}, "page_kind": {"default": "other", "description": "What the URL points at. Saying 'product' skips a discovery fetch and is faster.", "enum": ["product", "collection", "home", "other"], "type": "string"}, "url": {"description": "The full store URL including https://. A product page gives the fullest answer; a homepage works.", "format": "uri", "maxLength": 2048, "type": "string"}}, "required": ["url"], "type": "object"}, "name": "scan_store", "title": "Scan a store for AI shopping agents"}, {"annotations": {"destructiveHint": true, "idempotentHint": false, "openWorldHint": true, "readOnlyHint": false, "title": "Store run: an AI shopper on any store"}, "description": "Runs Cresva's Store run on any public online store and returns a public page with the result. The store's platform is read from its storefront: Shopify, WooCommerce, BigCommerce, Salesforce Commerce, Magento or a custom-built store. An AI shopper reads the catalogue (on Shopify its product list, elsewhere the store's public store API or its product pages), picks something to buy from the store's own categories, negotiates against an estimated margin floor, offers a bundle and prices the cart against the live product, then stops at payment: nothing is added to a cart, checked out, ordered or charged. Alongside it the run reads the store's live ads in the Meta Ad Library and asks an AI assistant (ChatGPT, or Gemini when ChatGPT cannot answer) ten generic shopping questions in the store's category. When the storefront blocks automated visitors, times out or does not resolve, the shopper's steps are skipped with the reason and the ads and the assistants still run on the brand's name. NO BRAND ID AND NO API KEY. It never creates a cart, an order or a draft order on the store. It answers once the payment step and the ads are done, usually under a minute after the call; the assistants check may land after the answer (assistantsPending is true until it lands) and then fills the public page. The assistants act always ends in a state: assistants.state is asking, answered or not_asked, and not_asked carries the reason (the check could not start or did not answer in time). The negotiation is against the list price under Cresva's rules and no offer reaches the store unless its agent storefront publishes negotiate; negotiationLine says so in one sentence whenever that applies. sentence is the run's top finding in one sentence, never empty. storePage is the store's one public page, the same one scan_store returns. Returns the same public cresva.ai/store/ link the homepage and the Chrome extension return, plus each step with the time it finished.", "execution": {"taskSupport": "forbidden"}, "inputSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "properties": {"url": {"description": "The store's address, like yourstore.com. Any public online store.", "maxLength": 300, "minLength": 1, "type": "string"}}, "required": ["url"], "type": "object"}, "name": "run_ai_shopper", "title": "Store run: an AI shopper on any store"}], "tools_list_hashes": ["4b442c3325d62b57f93925babc9afeab0b6c29918c8ed7c7e25b659e17c142f7"], "wall_limit_seconds": 45}