Skip to main content
Glama

search_foods

Read-only

Find foods in a Ukrainian nutrition database by name, with tolerance for word endings and small typos, and optionally filter results by category.

Instructions

Find foods by name. Handles word endings and small typos (гречки -> Гречка).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_foods"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesPart of a food name in Ukrainian, e.g. 'гречка'
categoryNoOptional category filter, see list_categories

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already establish a safe read (readOnlyHint=true, openWorldHint=false). The description adds matching semantics not covered anywhere else: it resolves word endings and small typos, with a worked example (гречки -> Гречка), which tells the agent how lenient the matcher is. It does not disclose result ordering, but this is a minor gap in a read-only tool.

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

Conciseness5/5

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

Two short sentences, front-loaded with the purpose and immediately followed by the most decision-relevant detail (fuzzy matching) plus a compact example. There is no filler.

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?

An output schema exists, so return shapes need not be explained, and the category filter is already tied to list_categories in the schema. For a three-parameter read tool this is close to complete; only result ordering or empty-result behavior would add value.

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

Parameters4/5

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

The schema documents query (Ukrainian partial name, e.g. 'гречка') and category (pointing to list_categories), giving 67% coverage. The description explains how the query is matched (inflections and typos are tolerated), which meaningfully changes how an agent should phrase input, and is something the schema does not state. limit is left to the schema, which is acceptable.

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

Purpose4/5

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

The description gives a specific verb and resource ("Find foods by name"), which clearly separates it from get_food (exact lookup) and list_categories. However, it never names or contrasts those sibling tools, so the distinction has to be inferred.

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

Usage Guidelines3/5

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

The fuzzy matching hint implies 'use this when you have an approximate or inflected name', which is useful context. The description still says nothing explicit about when not to use it, or that get_food is the alternative once an exact name is known.

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