Capability catalogue
ordersread
orders.lookup_by_id
Lookup order by ID
Fetch a single order by its ID. Canonical shape returned regardless of source system.
Effect
read Fanout
no
Cache TTL
120s
Traits
none
Request arguments
Passed as the args parameter to ctx.capability.call("orders.lookup_by_id", …).
| Field | Type | Required | Description |
|---|---|---|---|
| string | no | Optional: the requester's email, used by providers to prove the order belongs to them format: email | |
| orderId | string | yes |
Response
Returned by ctx.capability.call("orders.lookup_by_id", …).
| Field | Type | Required | Description |
|---|---|---|---|
| items | array<object> | no | |
| total | number | null | no | |
| status | string | null | no | |
| orderId | string | yes | Customer-facing order number |
| currency | string | null | no | |
| placedAt | string | null | no | format: date-time |
| tracking | array<object> | no | |
| shippedAt | string | null | no | format: date-time |
| customerEmail | string | null | no | For ownership checks only — never shown to a customer |
| fulfilmentStatus | string | null | no |
Example call
From inside your agent's handle(). The kernel resolves orders.lookup_by_id to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"orders.lookup_by_id",
args={
"email": "...",
"orderId": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.