Skip to main content
Glama

Search foods and products

search_foods
Read-onlyIdempotent

Look a food up before logging it: the person's saved foods (yours, by id) and Kove's food table and products (kove, by ref), figures per 100 g (100 ml for a drink). Then log_meal with saved_foods [{id, amount}] or kove_foods [{ref, amount}], and Kove logs its own figures.

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

NameRequiredDescriptionDefault
queryNoA food, product or brand, in the person's words.
barcodeNoA product's barcode digits.

Output Schema

NameRequiredDescriptionDefault
koveYes
yoursYes
messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent, non-destructive, and open-world behavior, so the description's contribution is the return-shape detail: two separate result sets keyed by id vs ref, values normalized per 100 g (100 ml for drinks), and the fact that Kove computes its own figures on logging. It does not address empty results, ambiguity handling, or whether query and barcode can be combined, so it adds real value but not full behavioral depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lookup purpose and the two result sources are front-loaded, and the sentence is dense but information-bearing. The second half is about log_meal rather than this tool, which is helpful chaining context but slightly dilutes focus; a brief clause on barcode usage would have earned its place more.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and full annotation coverage, the description need not explain return values, and it still adds the per-100 g normalization and key conventions an agent needs to chain into log_meal. The remaining gap is that neither parameter is required, yet the description gives no hint about which input to supply or how the two interact.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are already documented (query is 'the person's words', barcode is 'a product's barcode digits'). The description adds no additional semantics for either parameter and never mentions barcode at all, so the extra meaning it supplies concerns downstream identifiers rather than this tool's inputs. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Look a food up') and immediately splits the result space into 'yours' (saved foods, by id) and 'kove' (food table and products, by ref), which tells an agent exactly what comes back. It also positions itself relative to log_meal as the downstream consumer, so the tool's role is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Look a food up before logging it' gives a clear usage context, and the follow-up sentence names log_meal as the next step with the exact argument shapes to use. There is no when-not guidance (e.g., barcode-only lookups, or cases where get_food/save_food is the better route), which keeps it short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.