Find YoPrint operations
searchFinds the YoPrint API operations this connection can call. Call it without arguments first: it returns the guide (ids, dates, amounts, changes, files and limits) and the families of operations. Then describe the task in a few words (query: "record payment", "add tracking to shipment"): the best matches come in full, the next ones as short rows. Ask for rows in full with operation, list a family with family, run several searches at once with queries, or run JavaScript over the list with code, such as: return spec.operations.filter((o) => o.family === "shipments" && o.access === "change").map((o) => ${o.method} ${o.path}: ${o.summary})
interface Operation {
operation: string; method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; path: string;
access: "read" | "change"; family: string; summary: string; notes: string;
impact?: string[]; // money, customer_message, delete, irreversible, external, team_admin, bulk: get the go-ahead first
parameters?: Array<{ name: string; in: "path" | "query" | "header"; required: boolean; description?: string }>;
body?: unknown; filters?: Record<string, unknown>; sort?: string[];
example: { method: string; path: string; query?: unknown; body?: unknown }; // values are placeholders
returns?: string; // the answer's shape as an owner gets it, where it is known
budget?: "render";
}
declare const spec: { operations: Operation[] };
// Search code calls nothing. It has yoprint.shape, yoprint.amount and yoprint.connection, as read code does.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | JavaScript or TypeScript, the body of an async function, that reads spec.operations and returns what you need. | |
| full | No | With code: return up to about 25,000 tokens instead of 6,000. | |
| query | No | The task in a few words, such as "record payment" or "open orders for a customer". | |
| family | No | A family to list as short rows, such as "shipments". | |
| queries | No | Several searches in one call, each answered on its own, for example ["customer create", "order line", "publish order"]. | |
| operation | No | Operations to give in full, by name ("v2.order.create") or method and path ("POST v2/sales_order/new"). |