Skip to main content
Glama

Удалить позицию из корзины

remove_from_cart

Remove a specific item from your cart using its name and, if needed, options. Use this to replace a cart item by removing it and adding a different version.

Instructions

Точечно удаляет ОДНУ позицию из корзины по названию (в отличие от clear_cart, который сносит всё). Одно и то же блюдо может лежать в корзине в нескольких вариантах с разными опциями (они видны в view_cart) — тогда укажи options, чтобы удалить нужный вариант. Это правильный способ ПОМЕНЯТЬ позицию: remove_from_cart нужный вариант → add_to_cart с новыми опциями.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemYesНазвание позиции как в корзине (view_cart)
optionsNoОпции варианта для точного совпадения, если блюдо в корзине в нескольких вариантах (из view_cart)
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the targeted one-item removal, the variant-specific removal via `options`, and the recommended sequence for changing an item. However, it does not specify failure behavior (e.g., what happens if the item is not found) or any side effects beyond the cart itself.

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

Conciseness5/5

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

The description is three sentences, front-loaded with the main action, and each sentence adds important context: scope, variant handling, and the change workflow. No wasted words.

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 tool has no output schema and no annotations, so the description must carry the contextual burden. It covers the operation, the options nuance, and the recommended workflow, but lacks explicit return-value or failure semantics. Given the simplicity of the tool, this is a minor gap.

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?

Schema coverage is 100%, so the baseline is 3. The description adds value by explaining the purpose of `options` in context (same dish with different options) and how it relates to the removal variant. This goes beyond the schema's individual parameter descriptions.

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 the tool 'удаляет ОДНУ позицию из корзины по названию' and explicitly contrasts with clear_cart, which removes everything. This distinguishes it from siblings and gives a specific verb+resource+scope.

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

Usage Guidelines5/5

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

The description explicitly says when to use this tool versus clear_cart ('в отличие от clear_cart, который сносит всё') and provides the correct workflow for changing an item ('remove_from_cart нужный вариант → add_to_cart с новыми опциями'). It also instructs when to use the `options` parameter.

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/sandexplus/yandex-eda-mcp'

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