Skip to main content
Glama

Openfoodfacts Category

openfoodfacts_category
Read-onlyIdempotent

Products by category.

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": {
      "category": "breakfast cereals"
    },
    "name": "openfoodfacts_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
categoryYes
page_sizeNo

Output Schema

NameRequiredDescriptionDefault
pageNoCurrent page number
countNoTotal products in category
productsNoArray of products in category
page_sizeNoResults per page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered elsewhere. The description adds no behavioral context of its own — nothing about pagination, result volume, or whether an unknown category errors or returns empty.

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?

Three words are technically brief but this is under-specification rather than conciseness. There is no structure to front-load because there is essentially no content beyond a noun phrase.

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

Completeness2/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 values need no explanation, and annotations cover the safety profile. Still, for a paginated, filter-driven listing tool with three undocumented parameters, the description leaves out what an agent needs to call it correctly — pagination behavior and category naming in particular.

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 0%, so the description should compensate, but the only parameter it alludes to is the category filter. The meaning of page and page_size, their defaults or bounds, and the expected category string format (slug vs display name) are documented nowhere.

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

Purpose3/5

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

"Products by category" names the resource returned (products) and the filter dimension (category), so an agent can roughly infer a filtered product listing. But it is a verbless fragment that reads almost as a restatement of the tool name (openfoodfacts_category) and does nothing to distinguish it from siblings like openfoodfacts_product or openfoodfacts_country.

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?

The description gives no when-to-use guidance, no when-not-to-use, and no mention of any alternative tool. An agent must guess whether a free-text lookup should go here or to openfoodfacts_search.

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.