AA
Ask AI
/get_discounts
get discounts
Get discount code analytics. Reports: summary (usage rate, AOV impact), top_codes (best performing codes by revenue/usage), code_details (specific code performa
liveunknown~5s typical
mcpaskai
$0.0020
per call
plus $0.001 platform fee per run
Open MCP server; Cracked bills routing only
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run mcp-com-ask-ai-data-connector-ask-ai /get_discounts for me.
Input
| Field | Type | Description |
|---|---|---|
| report* | string (summary | top_codes | code_details | by_product) | Report type |
| startDate | string | Start date (YYYY-MM-DD) |
| endDate | string | End date (YYYY-MM-DD) |
| code | string | For code_details: required. For by_product: optional filter by specific discount code. |
| limit | integer | For top_codes/by_product: number of results (default: 10/20) |
| sortBy | string (revenue | usage | discount) | For top_codes: sort field |
Call it
curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
-H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
-d '{"provider":"mcp-com-ask-ai-data-connector-ask-ai","endpoint":"/get_discounts","input":{"report":"summary"}}'cli
npx cracked-ai run -p mcp-com-ask-ai-data-connector-ask-ai -e /get_discounts -i '{"report":"summary"}'mcp
run_tool({ provider: "mcp-com-ask-ai-data-connector-ask-ai", endpoint: "/get_discounts", input: {"report":"summary"} })Try it
Runs against your signed-in workspace balance. Sign in if you have not.