Capability catalogue
ordersreadfanout
orders.lookup_by_phone
Lookup orders by customer mobile number
Fetch a customer's recent orders by mobile number, for stores that identify customers by mobile. Weaker identity proof than the sender's email: agents should flag these matches for human confirmation.
Effect
read Fanout
yes
Cache TTL
120s
Traits
none
Request arguments
Passed as the args parameter to ctx.capability.call("orders.lookup_by_phone", …).
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | no | default: 5 · min: 1 · max: 50 |
| phone | string | yes | Mobile number; providers match on the last 10 digits |
Response
Returned by ctx.capability.call("orders.lookup_by_phone", …).
Array; each element is an object with the following fields.
| 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_phone to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"orders.lookup_by_phone",
args={
"limit": 5,
"phone": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.