Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
start_dateNoStart of the date range, YYYY-MM-DD.
end_dateNoEnd 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,
    },
  • 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,
    }
  • 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,
      }
    })
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It indicates a read operation but does not disclose rate limits, authentication requirements, pagination, or data freshness, offering only minimal behavioral insight.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence efficiently conveys the tool's action, resource, and output metrics without unnecessary words, though slightly long for readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Description lists returned metrics but lacks output schema details such as structure, aggregation level, or pagination; adequate for a simple tool but incomplete for full understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with clear parameter descriptions; description adds no additional semantic value beyond restating that it's for a date range, which is already implied by the parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the verb 'Read' and resource 'Sponsored Products / Sponsored Brands / Sponsored Display campaign performance metrics', with explicit mention of date range and specific metrics, distinguishing it from sibling tools like get_keyword_performance and get_tacos.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description implies usage for reading campaign performance metrics, but provides no explicit guidance on when to use this tool vs. alternatives such as get_tacos or get_keyword_performance, or any context for exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/agentcentral-to/agent-central-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server