get_foods
Search and list foods by name, or retrieve hierarchical food structures with child items.
Instructions
List or search for foods.
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": "get_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Optional ID to get first-level children (0 for root). | |
| tree | No | Optional ID to get all children in a tree. | |
| query | No | Optional search term for food name. |