Skip to main content
Glama

Amazon Seller MCP Server — AgentXray

Ad spend and net contribution per product

get_ads_by_product
Read-onlyIdempotent

Advertising per product (advertised SKU): each SKU's own spend, ad sales, ACoS, its measured break-even and the net contribution its ads made after Amazon fees, product cost and ads. Read its narrative as the answer.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_ads_by_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow in store days, 1-90 (default 30).
marketplace_idNoMarketplace (inferred when only one is connected).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: net contribution is computed after Amazon fees, product cost, and ads, and a `narrative` field carries the interpretive answer — information an agent cannot get from the annotations or schema. It omits caveats such as attribution windows or what happens when ad data is missing.

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?

Two sentences with essentially no filler, and the resource definition is front-loaded before the output-reading instruction. The metric list is dense domain jargon, but every clause carries information rather than padding.

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

Completeness4/5

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

For a two-optional-parameter read tool with no output schema, the description supplies the key output vocabulary (spend, ad sales, ACoS, break-even, net contribution, narrative) so the agent knows what comes back. It leaves the time-window behavior and empty/no-ad-spend cases unaddressed, which is a modest gap given how simple the input surface is.

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 description coverage is 100%, with both `days` (window and default) and `marketplace_id` (single-marketplace inference) fully documented in the schema. The description adds no syntax or meaning beyond the schema, so the baseline of 3 applies.

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

Purpose4/5

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

The description names the resource precisely — advertising metrics broken down per advertised SKU — and lists the concrete outputs (spend, ad sales, ACoS, break-even, net contribution), which clearly separates it from campaign-, target-, or search-term-level siblings. It never states an explicit verb or naming contrast with the closest siblings (get_profit_by_sku, get_ads_arm_economics), so an agent must infer the distinction rather than read it.

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?

Usage is only implied: the per-SKU advertising framing plus 'Read its `narrative` as the answer' suggests when to reach for this tool and how to consume the output. There is no statement of when to prefer it over get_profit_by_sku or get_ads_overview, no exclusions, and no prerequisites (e.g., whether Amazon Ads must be connected).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources