Skip to main content
Glama
DENNISDGR

efood-mcp

by DENNISDGR

Add an item to the cart (auto-resolve options)

add_item

Add a menu item to the efood basket by describing its options in plain language. Resolves names to codes, auto-fills required choices, computes price, and rejects out-of-stock items.

Instructions

Add a menu item to the shop's server-side basket by naming its options in plain language — no raw codes or price math. Give item_code and an options list (names as they appear in the menu, or codes), e.g. ["traditional pita","tomato","tzatziki"]. It resolves each name to a code, auto-fills required choices (bread; all-vs-choose), computes the price, rejects out-of-stock items, and appends the line to the basket (visible in the efood app). Pass lang matching the language of your option names (default EFOOD_LANG). Unknown names return the option catalog so you can retry. dry_run previews the resolved line without saving.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoMenu language for resolving names, e.g. "en" or "el".
commentNoSpecial instructions for this item.
dry_runNoResolve and price only; do not modify the basket.
optionsNoOption selections by name (menu language) or code. Required tiers auto-fill if omitted.
quantityNoQuantity (default 1).
item_codeYesThe item `code` from the menu (e.g. "IT_000000000083").
restaurant_idYesRestaurant/shop id the item belongs to.
Behavior5/5

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

With no annotations, the description fully discloses key behaviors: resolves names to codes, auto-fills required choices, computes price, rejects out-of-stock items, appends to basket, returns catalog on unknown names, and dry_run does not save. This is comprehensive for a mutation tool.

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?

The description is a dense paragraph but every sentence provides useful information. It is front-loaded with the main action and then details behaviors and parameters. It could be slightly more structured with bullets, but it remains concise and to the point.

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?

The description covers the main workflow, failure case, language handling, and dry_run mode. However, since there is no output schema, it does not explicitly state what a successful add returns (e.g., updated cart or confirmation), which is a minor gap. Overall, it is sufficiently complete for a complex mutation tool.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds significant value beyond the schema. It explains the `options` parameter with an example, clarifies that names or codes are accepted, and describes `lang` default behavior and `dry_run` semantics, which are not obvious from the schema alone.

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

Purpose5/5

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

The description clearly states 'Add a menu item to the shop's server-side basket' with a specific verb and resource. It also distinguishes from siblings by emphasizing the plain-language option resolution and no price math, making it specific to this tool.

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

Usage Guidelines4/5

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

The description implies when to use it (adding an item to the basket) and provides operational guidance like using plain-language names and dry_run for preview. It does not explicitly contrast with sibling tools, but the context is clear enough for an agent to select it correctly.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DENNISDGR/efood-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server