-
Notifications
You must be signed in to change notification settings - Fork 0
feat(client): list_orders overdue + sort filters #36
Copy link
Copy link
Open
Labels
area/clientTouches statuspro_public_api_client/Touches statuspro_public_api_client/area/mcpTouches statuspro_mcp_server/ onlyTouches statuspro_mcp_server/ onlyarea/specTouches docs/statuspro-openapi.yamlTouches docs/statuspro-openapi.yamlpriority/p1Workflow polish, ships after P0Workflow polish, ships after P0theme/tool-surface-redesignMCP tool surface redesign initiativeMCP tool surface redesign initiative
Metadata
Metadata
Assignees
Labels
area/clientTouches statuspro_public_api_client/Touches statuspro_public_api_client/area/mcpTouches statuspro_mcp_server/ onlyTouches statuspro_mcp_server/ onlyarea/specTouches docs/statuspro-openapi.yamlTouches docs/statuspro-openapi.yamlpriority/p1Workflow polish, ships after P0Workflow polish, ships after P0theme/tool-surface-redesignMCP tool surface redesign initiativeMCP tool surface redesign initiative
Problem
"Show me orders needing attention" is a recurring operational ask. Today it requires:
list_orders(due_date_to=today_isoformat)to filter to overduedue_dateto surface the most-overdue firstBoth
overdue(server-side computed boolean) andsort(server-supported ordering) would collapse this to a single call.Proposed shape
```
GET /orders?overdue=true&sort=due_date_asc
GET /orders?sort=updated_at_desc
```
sortshould support at least:due_date_asc,due_date_desc,updated_at_desc,created_at_desc. Specific names match server semantics.Acceptance
overdue(boolean) andsort(enum) parameters toGET /ordersOrders.list(overdue=True, sort="due_date_asc")helper kwargsoverdue=truefilterConversion path if server doesn't support these
If #30 (F3) shows the server doesn't filter on
overdueor honorsort:Orders.listas a stopgap (auto-paginate then sort), with a clear docstring warning about cost on large result setsDepends on
Tracking
Part of epic #31, Tier 2.