Skip to main content
Glama
dragosh29

Breww MCP server

by dragosh29

List orders

list_orders
Read-onlyIdempotent

Retrieve sales orders and invoices with filters for customer, status, dates, and amount due. Identify unpaid or overdue orders quickly.

Instructions

Sales orders, which in Breww are also the invoices: number, customer, issue and due dates, order and payment status, value, total and amount due. Filter by customer, status, payment status, dates, amount due, number, PO number or source. Good for 'what is unpaid and overdue?' (payment_status unpaid/part_paid, due_before today). Uses GET /orders/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoAPI page to start from (use next_page from a previous call, with the same max_results)
numberNoExact order/invoice number (API parameter `number`)
sourceNoOnly orders from these sources (API parameter `source__in`)
orderingNoSort order (API parameter `ordering`): a field name, - in front for descending, several separated by commas. The API's default is ascending id.
issued_toNoIssue date on or before (API parameter `issue_date__lte`)
due_beforeNoDue date before this date (API parameter `due_date__lt`)
customer_idNoOnly this customer's orders (API parameter `customer`)
issued_fromNoIssue date on or after (API parameter `issue_date__gte`)
max_resultsNoMost records to return in this call; whole API pages only (up to 200 per page), so fewer may come back with a next_page to continue from
order_statusNoOnly these order statuses (API parameter `order_status__in`)
payment_statusNoOnly these payment statuses (API parameter `payment_status__in`)
amount_due_overNoAmount due greater than this (API parameter `amount_due__gt`)
po_number_containsNoPart of the customer's PO number (API parameter `po_number__contains`)
include_contact_detailsNoInclude customer names as stored (without redacting emails and phone numbers typed into them). Off by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered; the description adds the underlying GET /orders/ endpoint, the redaction behavior of include_contact_details (off by default), and pagination semantics. That is meaningful extra context beyond the structured fields.

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

Conciseness5/5

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

Three sentences, front-loaded with what the resource is, then the filter surface, then a high-value example and the endpoint. The field enumeration is dense but each element is informative, and nothing is redundant.

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?

With 14 parameters and no output schema, the description helpfully enumerates the returned fields and clarifies filter behavior, which compensates for the missing output schema. Minor gaps remain, such as not restating pagination limits, but the schema covers those.

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%, so the baseline is 3, but the description adds value by grouping the filters conceptually and showing how payment_status and due_before compose for the overdue-unpaid case. It does not add syntax or formats beyond what the schema already documents.

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 the resource (sales orders, which in Breww are also the invoices), the fields returned, and the filter dimensions, so an agent can immediately distinguish it from list_customers, list_products, or the singular get_order. The verb is implicit but unambiguous from the name and content.

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?

Provides a concrete worked example of the intended query pattern ('what is unpaid and overdue?' via payment_status unpaid/part_paid with due_before today), which tells the agent when this tool fits. It does not explicitly name get_order as the alternative for a single order, so it stops short of full routing guidance.

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