Skip to main content
Glama
davidboulay

Lightspeed X-Series MCP

by davidboulay

search_sales

Read-onlyIdempotent

Find sales by local date range and filter by state, outlet, customer, product, register, or invoice; return compact summaries or full line items for review.

Instructions

Find sales. date_from/date_to are local store dates YYYY-MM-DD, inclusive (default: today). states: closed, pending (on account / layby), parked, voided (default: all). Compact rows by default; set compact=False for full line items, or call get_sale(id).

Input Schema

NameRequiredDescriptionDefault
limitNo
statesNo
compactNo
date_toNo
user_idNo
date_fromNo
outlet_idNo
product_idNo
customer_idNo
register_idNo
invoice_numberNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so safety is covered. The description adds non-obvious context the annotations cannot: dates are local store dates in YYYY-MM-DD and inclusive, defaulting to today, and the meaning of each state value (e.g. pending = on account/layby). It omits any pagination/limit behavior, so not a 5.

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 tightly packed sentences, no filler, and the highest-value facts (date semantics and the compact/get_sale fork) come first.

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?

An output schema exists, so return shape need not be described. However, for an 11-parameter filter tool with zero schema descriptions, leaving seven filter parameters unexplained (and no mention of the limit parameter's effect) leaves real ambiguity about how to scope a search.

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%, so the description carries the full burden. It explains three of eleven parameters well (date_from/date_to format and defaults, states enumeration values and default-all, compact toggle), but limit, user_id, outlet_id, product_id, customer_id, register_id and invoice_number have no meaning documented in either schema or description.

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?

Opening verb+resource ('Find sales') is specific, and the description explicitly contrasts compact rows against get_sale(id), separating it from the sibling detail tool. It does not distinguish itself from sales_summary or get_user_sale_totals, which also touch sale data.

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?

Gives clear routing: use search_sales for compact rows, set compact=False or call get_sale(id) when full line items are needed. Date filtering defaults are stated. No explicit when-not-to-use against sales_summary, but the primary alternative is named.

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