Skip to main content
Glama

add_purchase

Add an item the user has BOUGHT to their Items Purchased list (the next step after sourcing). Returns the created item incl. its id — use that id with generate_sku and create_listing. cost is per unit; sourced_from is the retailer/site they bought from.

projected_sale_price: default this to the product's 90-day average price
(from analyse_product) and tell the user what you've set — don't guess a
price. It's what create_listing will list at unless changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roiNo
asinNo
costNo
notesNo
titleYes
companyNo
quantityNo
sourced_fromNo
projected_profitNo
projected_sale_priceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the return value ('returns the created item incl. its id') and the downstream contract for that id. It omits mutation side effects, permissions, and whether fields are persisted verbatim, so it is strong but not complete.

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?

Front-loads the core action and return value, then a short second paragraph for the pricing rule. Efficient overall, though the pricing paragraph is somewhat verbose relative to the rest.

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?

No annotations and no output schema, with 10 params at 0% coverage; the description covers the creation purpose, return contract, and one pricing policy but leaves most parameters and all mutation semantics undocumented. Adequate but with clear gaps for a multi-field write tool.

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 0% across 10 params, so the description must compensate but only clarifies cost (per unit), sourced_from (retailer/site), and the projected_sale_price default policy. roi, asin, notes, company, quantity, and projected_profit remain unexplained in both schema and description.

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?

States a specific verb+resource ('Add an item the user has BOUGHT to their Items Purchased list') and positions it in the workflow ('the next step after sourcing'), clearly distinguishing it from siblings like add_to_sourcing_list and get_items_purchased.

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?

Explicitly names downstream tools (generate_sku, create_listing) and the condition for using the returned id, plus a directive on how to set projected_sale_price (default to the 90-day average from analyse_product, don't guess). This is real when-to-use guidance, not just 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.

Resources