Skip to main content
Glama

Openfoodfacts Search

openfoodfacts_search
Read-onlyIdempotent

Full-text search.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "chocolate"
    },
    "name": "openfoodfacts_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
queryYes
fieldsNoComma-sep return fields.
sort_byNounique_scans_n | product_name | created_t | last_modified_t | nutriscore_score | nova_score
page_sizeNo

Output Schema

NameRequiredDescriptionDefault
pageNoCurrent page number
countNoTotal results matching query
productsNoArray of matching products
page_sizeNoResults per page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

D1.9/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. However the description adds nothing beyond that — no note on result ordering, pagination limits, coverage of the Open Food Facts index, or how empty results are returned.

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

Conciseness2/5

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

The single two-word sentence wastes nothing but is under-specified rather than concise; it front-loads no useful constraint an agent could act on. This is the low-content case, not a tight summary.

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

Completeness1/5

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

For an open-world search tool with five parameters and a 40% documented schema, the description supplies essentially nothing an agent needs to call it correctly. The presence of an output schema excuses explaining return values, but not explaining search semantics or scope.

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

Parameters2/5

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

Schema description coverage is only 40% across 5 parameters, so the description was expected to compensate and does not. It never mentions query syntax, whether page_size is capped, or what fields/sort_by accept beyond the sparse schema notes and examples.

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

Purpose2/5

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

"Full-text search" names an operation but not the resource, so an agent must infer from the tool name that it searches Open Food Facts products. It does not distinguish this from siblings like openfoodfacts_product, openfoodfacts_category, or search_within.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of alternatives, and no indication of when a structured lookup (product/category/country) should be preferred over free-text search. The only hint is the required query parameter in the schema.

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.