Skip to main content
Glama

luceed_recent_sales_orders

Fetches newest sales orders from Luceed using status and date filters, deduplicates and sorts them newest-first, then returns only the requested limit.

Instructions

PREFERRED for 'last N sales orders / nalozi prodaje'. Fetches NaloziProdaje by status + date window, dedupes, sorts newest-first (datum then broj), and returns only limit rows. Do NOT use raw luceed_nalozi_prodaje statusi for this — Luceed returns unsorted batches and a single status can miss other recent orders.

Input Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days ending today (default 14)
limitNoHow many newest orders to return (default 40)
to_dateNoOverride window end (default today)
statusesNoComma-separated Luceed status codes (default 10,99,05). Status 10 = typical open webshop/B2B; 99 often canceled; 05 often complete-ish.
from_dateNoOverride window start (YYYY-MM-DD or D.M.YYYY)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/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 well: it discloses deduplication, the sort key (datum then broj, newest-first), and that output is truncated to `limit`. It does not cover auth requirements, rate limits, or what an order row contains, which is the remaining gap for a read tool with no output schema.

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 the routing cue 'PREFERRED', then mechanics, then the anti-pattern. Every sentence earns its place; nothing is repeated from the schema.

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 five-parameter, no-output-schema tool with no annotations, the description covers the behavioral essentials an agent needs (dedupe, ordering, truncation, routing). It stops short of describing the returned order shape or any failure modes, which would have made it fully self-sufficient.

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 100%, so all five parameters are already documented, giving a baseline of 3. The description adds only marginal semantics (status + date window drive the fetch, and statuses can miss orders), without explaining precedence between days and from_date/to_date or the accepted date formats beyond the schema.

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 and resource ('Fetches NaloziProdaje') plus the exact user phrasing it serves ('last N sales orders / nalozi prodaje'), and explicitly contrasts itself with the sibling luceed_nalozi_prodaje. An agent can pick between the two without opening either schema.

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?

Gives an explicit positive selection rule ('PREFERRED for last N sales orders') and an explicit negative one ('Do NOT use raw luceed_nalozi_prodaje statusi'), with the reason (unsorted batches, single status missing recent orders). This is textbook when/when-not guidance.

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