search_foods
Search a foods database by text query to locate matching entries. Supports pagination and custom page sizes for browsing results.
Instructions
Search the foods database.
Args: query: Search text page: Page number (default 1) per_page: Results per page (default 10)
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_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| query | No | ||
| per_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |