Model Context Protocol (MCP) server for the OnPay API — query sales records and update shipping info from any MCP client.
Three tools with clear verb-noun naming (sales_list, sales_get, sales_update_shipping_info). All have descriptions (10 - 100 chars, within baseline 34 - 392 range). Input schemas use Zod with type constraints and descriptions for all parameters. However, output schemas are completely undocumented, the `run()` wrapper returns raw JSON without specifying what fields clients should expect. Parameter descriptions are minimal (e.g., 'The sale record ID' lacks format guidance). No error recovery guidance beyond generic OnPayError handling. Missing pagination metadata (total count, next_cursor) in sales_list despite accepting page/per_page. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels.
Get a single OnPay sale record by its ID.
List OnPay sale records (paginated, filterable, sortable).
Update the courier and tracking code for an OnPay sale.
Output schemas completely undocumented. Tools return raw JSON via `run()` wrapper with no specification of response fields, types, or structure. LLMs cannot plan downstream calls or extract required data reliably.
sales_list accepts page/per_page but response schema does not document pagination metadata (total_count, next_cursor, has_more). Without this, agents cannot reliably iterate through large result sets.
Parameter descriptions lack actionable constraints. 'The sale record ID' does not specify format (alphanumeric? UUID? max length?). 'Courier name, e.g. J&T, Pos Laju' uses examples instead of enum constraint, inviting hallucinated courier names.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2026-07-28+ | v2 |
No tool annotations (readOnlyHint/destructiveHint/idempotentHint). sales_update_shipping_info is marked WRITE but lacks destructiveHint annotation. Agents cannot infer retry safety or side-effect scope.
Error handling returns raw OnPayError with HTTP status and body JSON, but no recovery guidance. 'OnPay request failed: ...' tells agent nothing about whether to retry, ask user, or abort.