List items
Items you sell, with code, name, group and unit.
MCP tool erpnext_read → list_items
read
Lists Item records so your agent can use the exact item code on an invoice line. The search matches part of the item code or name. Pages hold up to 100 items; pass next_cursor back as cursor for the next page.
Parameters
| Name | Type | Description |
|---|---|---|
| search string | string | Part of the item code or item name. |
| item_group string | string | Item Group name from your site. |
| limit integer | integer | Records per page. Default: 20. |
| cursor string | string | Next page cursor from the previous call. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "erpnext_read",
"arguments": {
"operation": "list_items",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"items": [
{
"item_code": "CONSULT-HR",
"item_name": "Consulting hour",
"item_group": "Services",
"stock_uom": "Hour"
},
{
"item_code": "SETUP-FEE",
"item_name": "Setup fee",
"item_group": "Services",
"stock_uom": "Nos"
}
],
"next_cursor": null
},
"isError": false
}