Let a caller filter order lines instead of paging the table
The backend gained productcode, ordernumber and ordernumber__status on the order-lines list; the spec and the MCP tools now carry them. The pair that matters is productcode with ordernumber__status: the first says what is committed on a reference, the second restricts it to orders still open. Without the second the answer counts every line ever shipped. Regenerated with k8s-platform/tools/generate-mcp-tools.py, not by hand. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -359,9 +359,30 @@ config:
|
||||
destructive_hint: false
|
||||
open_world_hint: false
|
||||
description: Retrieve a paginated list of all order line items with product and quantity information.
|
||||
Filter by product code to find what is committed on a reference, and by order status to count only
|
||||
orders still open.
|
||||
method: GET
|
||||
name: list-order-details
|
||||
parameters:
|
||||
- description: Only lines for this product reference.
|
||||
in: query
|
||||
name: productcode
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
- description: Only lines belonging to this order.
|
||||
in: query
|
||||
name: ordernumber
|
||||
required: false
|
||||
schema:
|
||||
type: integer
|
||||
- description: Only lines whose order has this status, e.g. In Process, On Hold, Shipped, Cancelled.
|
||||
An order that is Shipped or Cancelled commits no stock.
|
||||
in: query
|
||||
name: ordernumber__status
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
- description: A page number within the paginated result set.
|
||||
in: query
|
||||
name: page
|
||||
|
||||
Reference in New Issue
Block a user