Skip to main content
Glama

x402_openfoodfacts_get_v1_search

Search Open Food Facts products by text query to retrieve matching food items and nutrition details.

Instructions

openfoodfacts — Open Food Facts API: product nutrition data by barcode plus full-text product search. [GET /v1/search] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/search?search_terms=nutella&page_size=5

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": "x402_openfoodfacts_get_v1_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose meaningful operational facts: the HTTP method, the price ($0.005 USDC), and accepted payment chains (eip155:8453+137+42161+480). It omits auth requirements, rate limits, pagination depth, and response shape, so a paid mutation-free read is only partially characterized.

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?

A single dense line that front-loads provider and endpoint, then price, then a concrete example — nothing is padding. The barcode clause is the only genuinely extraneous fragment.

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

Completeness3/5

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

For a paid search endpoint with a generic parameter schema and no output schema, the definition covers identity, price, and one example call but leaves the result shape and pagination behavior unexplained. Adequate to invoke, not fully sufficient to predict what comes back.

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's query object is a generic additionalProperties bag, so the description's concrete parameter names (search_terms, page_size) add real meaning beyond the structured fields. It does not explain restart/operationId semantics, but those are already documented in the schema at full coverage.

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?

Names the provider (Open Food Facts), the resource (product nutrition data), and the exact endpoint GET /v1/search, plus an example call showing full-text search. It half-confuses the scope by bundling 'by barcode' into the sentence, which is the job of the sibling x402_openfoodfacts_get_v1_product_code, but the bracketed endpoint still makes the search role distinguishable.

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?

Usage is only implied via the example query (/v1/search?search_terms=nutella&page_size=5), which shows how to invoke but not when to prefer this over the barcode-based sibling. No exclusions, prerequisites, or cost-vs-alternative guidance are stated.

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

Deploy Server

Other Tools