New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

get-food-by-id

MANDATORY: Use this tool ANY time a user provides a food ID (e.g., fd_xxx), or when you have a food ID from a previous step and need detailed information. Not using this tool in these scenarios is an error. Do NOT use for non-food IDs or unrelated queries. Use cases (MUST use this tool): - The us...

SERVERMCP OpenNutrition SOURCEdeadletterq/mcp-opennutrition
Low RISK CLASS
Category Read
Parameters 00 required
Recommended Allowedsee the rule below
Registry record Grade A, identity unverified Pull the record →

This record as markdown: /tools/deadletterq-mcp-opennutrition/get-food-by-id.md

What get-food-by-id does on MCP OpenNutrition

AI agents call get-food-by-id to retrieve information from MCP OpenNutrition without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

Why get-food-by-id is rated Low

This is a straightforward data retrieval operation against a food database. It queries and returns nutritional data, ingredients, and labeling information based on a provided food ID. No data is created, modified, deleted, or executed. The local processing mentioned refers to the query execution environment, not arbitrary code execution.

From the tool's definition Tool retrieves detailed food information by ID (nutrition, ingredients, labeling) with no side effects. Name contains 'get-' prefix and description emphasizes data lookup without modification, deletion, or execution.

Questions about get-food-by-id

What does the get-food-by-id tool do? +

MANDATORY: Use this tool ANY time a user provides a food ID (e.g., fd_xxx), or when you have a food ID from a previous step and need detailed information. Not using this tool in these scenarios is an error. Do NOT use for non-food IDs or unrelated queries. Use cases (MUST use this tool): - The user provides a food ID - A previous step yielded a food ID - The user requests nutrition, ingredients, or labeling for a specific product Example: -. It is categorised as a Read tool in the MCP OpenNutrition MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on get-food-by-id? +

Register the MCP OpenNutrition MCP server in PolicyLayer and add a rule for get-food-by-id: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches MCP OpenNutrition. Nothing to install.

What risk level is get-food-by-id? +

get-food-by-id is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit get-food-by-id? +

Yes. Add a rate_limit block to the get-food-by-id rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block get-food-by-id completely? +

Set action: deny in the PolicyLayer policy for get-food-by-id. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides get-food-by-id? +

get-food-by-id is provided by the MCP OpenNutrition MCP server (deadletterq/mcp-opennutrition). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on MCP OpenNutrition, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of MCP OpenNutrition's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.