get_campaign_performance
Retrieve Amazon Sponsored Ads campaign performance metrics including impressions, clicks, spend, sales, ACOS, ROAS, and TACOS for a specified date range.
Instructions
Read Sponsored Products / Sponsored Brands / Sponsored Display campaign performance metrics for a date range, including impressions, clicks, spend, sales, ACOS, ROAS, and TACOS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_date | No | Start of the date range, YYYY-MM-DD. | |
| end_date | No | End of the date range, YYYY-MM-DD. |
Implementation Reference
- src/index.ts:41-46 (registration)Tool registration for 'get_campaign_performance' in the tools array with name, description, and inputSchema.
{ name: "get_campaign_performance", description: "Read Sponsored Products / Sponsored Brands / Sponsored Display campaign performance metrics for a date range, including impressions, clicks, spend, sales, ACOS, ROAS, and TACOS.", inputSchema: dateRangeSchema, }, - src/index.ts:22-37 (schema)dateRangeSchema used as inputSchema for get_campaign_performance, defining start_date and end_date string parameters with date format.
const dateRangeSchema = { type: "object" as const, properties: { start_date: { type: "string", format: "date", description: "Start of the date range, YYYY-MM-DD.", }, end_date: { type: "string", format: "date", description: "End of the date range, YYYY-MM-DD.", }, }, additionalProperties: false, } - src/index.ts:253-279 (handler)CallToolRequestSchema handler: since the tool name is not 'agentcentral_setup', it falls through to the generic stub response returning the HOSTED_NOTICE message. This is a stub implementation; the actual execution happens at the hosted endpoint.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const name = request.params.name if (name === "agentcentral_setup") { return { content: [ { type: "text", text: `Hosted MCP endpoint:\n ${HOSTED_URL}\n\n` + `Setup guide:\n ${SETUP_URL}\n\n` + `Add this to your client config:\n` + `{\n "mcpServers": {\n "agentcentral": {\n "url": "${HOSTED_URL}",\n "headers": { "Authorization": "Bearer ac_live_<YOUR_API_KEY>" }\n }\n }\n}`, }, ], isError: false, } } return { content: [ { type: "text", text: HOSTED_NOTICE, }, ], isError: false, } })