Skip to main content
Glama

Financial events

get_financial_events
Read-only

Return Finances v0 financial-event rows and deterministic ASIN economics. view='fee_breakdown' returns raw order components when order_id is supplied; otherwise grain='asin' returns the existing ASIN pivot, grain='order_item' returns bulk order/SKU/ASIN fee pivots, and grain='raw_component' returns component rows across the date range. view='profitability' returns ASIN-level shipment_principal, source-signed refund_principal, source-signed refund_net, revenue, fees, tax, net, units, refund-event coverage, and data-gap fields. revenue remains shipment_principal + refund_principal for backward compatibility. Its money fields are selected by financial-event posted_date, not order date; order_item_revenue is an independently filtered purchase-date reference, so posted-date economics must not be subtracted from order-date sales as though both cutoffs represented the same orders. Fees on off-Amazon fulfillment (MCF) orders, which carry no Principal, are excluded from total_fees and net_profit and returned in off_amazon_fulfillment_fees (net_including_off_amazon_fulfillment reconciles); prior_period_order_share reports how much posted shipment principal came from orders placed before start_date. Profitability includes Shipment/Refund events only and excludes all ad spend, FBA storage fees, inbound freight, COGS, and account-level Adjustment/ServiceFee events; responses expose date_basis, scope, excluded_costs, and reconciliation_note. Account-level Adjustment/ServiceFee rows remain available with view='fee_breakdown' and grain='raw_component', where they are surfaced for any marketplace key. Rows are attributed to the marketplace Amazon reports for each event, and a marketplace's rows can include components in another currency (for example cross-border fees), so money is scoped to the marketplace currency by default; set include_all_currencies=true to include all component currencies (amounts are then mixed across currencies and should not be summed). Rows carry data_gap='no_refund_events_in_period' when refund adjustments are absent. For pre-settlement Transaction View rows use get_payment_transactions; for finalized settlements use get_settlement_economics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asinNoFilter by ASIN
viewNoFinancial events view: fee_breakdown returns fee components by ASIN/order grain; profitability returns ASIN economics over financial events.fee_breakdown
grainNofee_breakdown view only. Date-range output grain when order_id is omitted: asin returns the existing ASIN pivot; order_item returns one row per posted_date/order_id/ASIN/SKU/event_type with common fee components pivoted; raw_component returns one row per fee component.asin
limitNoMax rows (1-1000, default 20).
offsetNoPagination offset (0-100000, default 0). Use the returned pagination.next_offset to continue.
sort_byNoColumn to sort by. Allowed columns depend on view and order_id mode.
end_dateNoOptional. YYYY-MM-DD end date for posted_date.
order_idNofee_breakdown view only. Specific order ID returns raw component rows for that order.
sort_orderNoSort directiondesc
start_dateNoOptional. YYYY-MM-DD start date for posted_date.
include_raw_rowsNoFalse returns compact rows. Default true.
include_diagnosticsNoTrue may add expanded freshness diagnostics. Basic empty-result data-window diagnostics are included by default when available.
include_all_currenciesNoBy default, money is scoped to the marketplace currency so amounts are not summed across USD/CAD/MXN etc. Set true to include all component currencies (amounts are then mixed and should not be summed).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
evidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already establish this as a safe read, and the description piles on genuinely useful behavior: what profitability excludes (ad spend, FBA storage, inbound freight, COGS, Adjustment/ServiceFee events), how MCF fees are segregated from total_fees/net_profit, the posted_date vs order-date distinction, data_gap flags, and the currency-mixing hazard of include_all_currencies.

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

Conciseness3/5

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

The opening sentence is appropriately front-loaded, but the body is a single dense block with reconciliation caveats, exclusion lists, and cross-references interleaved rather than grouped. Nearly every clause carries information, yet the flat structure makes it hard to scan for the one or two facts an agent needs for a given call.

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

Completeness5/5

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

For a 13-parameter, multi-mode read tool with an output schema and full annotation coverage, the description supplies the scoping, exclusion, reconciliation, and currency semantics an agent needs to interpret results correctly. The remaining mechanics (sort columns, pagination offsets) are already handled by the schema and need no restatement.

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

Parameters4/5

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

Schema coverage is 100% and each parameter is already documented, so the baseline is 3; the description goes beyond it by explaining the view/grain interaction (grain only matters when order_id is omitted), the meaning of include_all_currencies summing risk, and which money fields each view emits. It does not add format or syntax detail for the date/pagination params, keeping it just short of a 5.

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?

The description names the specific resource (Finances v0 financial-event rows plus ASIN economics) and enumerates the two views and three grains, so an agent can tell exactly what the tool returns. It also explicitly disambiguates from siblings by naming get_payment_transactions and get_settlement_economics with the conditions that select them.

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

Usage Guidelines5/5

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

It states when each mode applies ('view=fee_breakdown' with order_id vs date-range grains; 'profitability' for ASIN economics) and gives explicit when-not routing: pre-settlement rows go to get_payment_transactions and finalized settlements to get_settlement_economics. Alternatives and their selecting conditions are spelled out rather than implied.

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.