Skip to main content
Glama

Octobooks

Write products

product_set
Destructive

Write the product list. what=save: code (an existing product to change; left out with a new name, a code is made from the name) and any of name, description, unit, sales_price (the standard price from today), revenue_account and sales_tax_code, purchase_price, purchase_account and purchase_tax_code, kind (good or service, new products), the packing: piece_gross_g (a piece with its packaging, grams), units_per_case, case_gross_kg, cases_per_pallet, pallet_gross_kg; product_type (a new product, or one moved to another type, takes the type's accounts), barcode (EAN-8, UPC-A, EAN-13 or GTIN-14, check digit checked, one product per barcode), purchase_unit with purchase_per (bought in cases of 12: case, 12; a purchase order line is then in cases and its receipt puts 12 units each into stock at the cost of one unit), stock_account and cogs_account (none: the chart's); a field left out stays, an empty text clears it; tax rates by code, name or rate (20%). what=archive or restore: code. what=delete: code, a product no invoice, quote or stock movement names (one that is named is archived). what=import: rows (objects keyed by those field names) or csv (an export of Xero, QuickBooks, Zoho, Shopify, Unleashed; columns recognised by their headers) or document_id (an uploaded CSV or Excel file); a product of the same code, else name, is updated; a product type not on file is made. what=export: every product in the import's fields. what=types: the product types (Finished good, Raw material, Packaging, Service and the company's own) with their accounts. what=type: name, kind (good or service), revenue_account, purchase_account, stock_account, cogs_account (empty: the company's usual one), active=false archives an own type. Invoice and bill lines then pick the product by any part of its code or name, or its barcode. Books nothing.

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

Input Schema

NameRequiredDescriptionDefault
csvNo
codeNo
kindNo
nameNo
rowsNo
unitNo
whatNosave
activeNo
barcodeNo
companyNo
descriptionNo
document_idNo
sales_priceNo
cogs_accountNo
product_typeNo
purchase_perNo
case_gross_kgNo
piece_gross_gNo
purchase_unitNo
stock_accountNo
purchase_priceNo
sales_tax_codeNo
units_per_caseNo
pallet_gross_kgNo
revenue_accountNo
cases_per_palletNo
purchase_accountNo
purchase_tax_codeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations: 'a field left out stays, an empty text clears it', delete is refused when the product is referenced (and archived instead), import upserts by code then name and creates missing types, barcodes are check-digit validated and unique per product, and 'Books nothing.' These are exactly the side-effect details an agent needs.

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 `what=` labelling gives a usable structure and key rules are front-loaded, but the bulk is one sprawling semicolon-chained sentence that is hard to scan. Most content earns its place, yet it could be broken into per-mode sentences for readability.

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 28-parameter, 8-mode tool this covers modes, field behavior, import formats and sources, and delete safeguards, and an output schema exists so return values need not be explained. The unmentioned `company` parameter and the absence of an explicit enumerated `what` value list are the only material gaps.

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 description coverage is 0%, so the description carries the burden and largely does: it explains the meaning of code, name, description, unit, sales_price, tax/account fields, kind, all packing measurements, product_type, barcode, purchase_unit/purchase_per, rows, csv, document_id and active. Only the `company` parameter goes entirely unexplained, leaving a small gap.

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?

Opens with a specific verb+resource ('Write the product list') and enumerates the eight `what` modes (save, archive, restore, delete, import, export, types, type) with concrete fields. It is clearly a product-write tool, but it never distinguishes itself from siblings like prices_set or stock, and the core purpose is somewhat buried under dense field enumeration.

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?

The `what=...` prefixes effectively document each mode's semantics (e.g. delete only when no invoice/quote/stock movement names the product; import updates by code then name). However, it gives no guidance on when to reach for this tool versus related siblings, and there are no exclusions or prerequisites stated.

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