Skip to main content
Glama

Octobooks

Propose an Amazon settlement

amazon_settlement

An Amazon settlement report (the V2 flat file, tab separated, as Seller Central or A2X downloads it) as one entry to the penny: every row on an account by its role (sales, promotions, selling fees, fulfilment, advertising, VAT, reimbursements, reserve, lending), VAT by ship-to country with Amazon as the deemed supplier where it withheld the VAT, the payout Amazon owes for exactly the file's total, in the settlement's own currency. preview=true reads it and stores nothing; without it the entry goes forward as a proposal (one per settlement) for whoever this company lets release. A row of a kind not known yet stops it, named. content_base64: the file's bytes, base64, at most 5 MB. ship_to: optional {order id: country code} from an order report, or order_report_base64: Amazon's order report itself (the ship-to country of each order, and where the goods left from where it says so). Every row is looked up in the catalogue of Amazon's kinds, each sale carries the company's VAT code of its country and rate. typed: the settlement as its summary PDF gives it, for a seller with the PDF only, {settlement (its ID), start, end, paid_on, gross_sales and refunds (with VAT, as the customer paid), fees: [{label, account, net, vat}] as Amazon's VAT invoice states them (a fee refunded is negative), reimbursements, payout}: the same entry on the settlement's last day, sales and refunds net with their output VAT, each fee net with its input VAT, the payout owed by Amazon on the marketplace clearing account, its bank line reconciled where it is on file; without paid_on (a settlement still open at a month end) the entry reverses the next day. Once per settlement. Needs the right propose.

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": "amazon_settlement"
  }
}

Input Schema

NameRequiredDescriptionDefault
typedNo
reasonNo
companyNo
previewNo
ship_toNo
filenameNo
content_base64No
order_report_base64No

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Beyond the annotations it discloses real behavior: preview writes nothing, an unknown row kind aborts the run and names it, the 5 MB base64 ceiling, the marketplace clearing account and bank-line reconciliation, and the reversal on the next day when paid_on is absent. It also states 'Needs the right propose', which flags a permission prerequisite. However, 'once per settlement' sits in tension with idempotentHint=false, and the duplication semantics (error vs dedupe on a second call) are never spelled out.

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

Conciseness2/5

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

The content is dense and valuable but is delivered as one rambling, clause-chained paragraph with no front-loading — the primary file-upload mode is buried behind a long abstract description of the resulting entry. Ideas repeat ('as one entry to the penny' / 'the same entry', and 'Once per settlement' twice), and the typed-object spec reads as an embedded schema rather than usable prose.

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?

For a complex, non-idempotent proposal tool with 8 parameters and no field descriptions, the description covers both input modes, the currency/payout constraint, the unknown-row failure mode and the permission requirement, and an output schema exists so return values need no explanation. The gap is input completeness: company, reason and filename are never mentioned, and the second-call behavior implied by 'once per settlement' is ambiguous.

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?

With schema description coverage at 0%, the description does most of the work: it defines content_base64 (file bytes, base64, max 5 MB), ship_to ({order id: country code}), order_report_base64, the preview flag, and gives a detailed field-by-field spec for the typed object. It leaves company, reason and filename entirely unexplained, so three of eight parameters remain undocumented anywhere.

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 makes clear this converts an Amazon settlement (V2 flat file, or a 'typed' summary) into a single proposal entry, and 'one per settlement' plus 'goes forward as a proposal' pins the action down. It is specific about the resource and scope, but the actual verb ('propose') surfaces late in a run-on first sentence, and it never distinguishes itself from sibling propose tools such as accruals_propose or propose_batch.

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

Usage Guidelines4/5

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

It gives concrete mode selection: preview=true reads the file and stores nothing, while omitting it creates the proposal; and 'typed' is explicitly for the seller who only has the summary PDF. ship_to vs order_report_base64 are presented as alternative sources of the same data. What is missing is any exclusion or routing guidance relative to sibling tools, or when not to use this at all.

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