Skip to main content
Glama
stupidprogrammer4

digikala-mcp

Add To Cart

add_to_cart
DestructiveIdempotent

Adds a seller offer to your cart using an approved plan, refreshing cart, price, inventory, and limits, then reads back to verify.

Instructions

POST one new seller offer using an approved add plan. Never call without user approval.

Refreshes cart, price, inventory and both limits before writing, then reads back. Retry only this same plan_id to inspect an uncertain outcome; it never resends the write.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
cartNo
stateYes
reasonNo
plan_idYes
limits_exceededNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare the mutation/idempotency profile, but the description adds real behavioral context beyond them: the pre-write refresh of cart, price, inventory and both limits, the read-back after writing, and the guarantee that a retry with the same plan_id inspects rather than resends.

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?

Three short sentences, front-loaded with the action and its gating condition; the retry/idempotency caveat follows immediately. No filler.

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

Completeness5/5

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

For a single-parameter write with an output schema, the description covers everything the agent needs: approval requirement, what is refreshed beforehand, and the safe retry protocol. Return values are correctly left to the output schema.

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 0% (only a hex pattern), so the description must carry the meaning of plan_id — and it does, framing it as an approved add plan whose reuse is what makes retries safe. It does not explain where a plan_id comes from, which keeps it from a 5.

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?

States a specific verb and resource ('POST one new seller offer') plus its gating input ('an approved add plan'), which cleanly separates it from prepare_cart_change and update_cart_item in the sibling list.

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?

Gives explicit preconditions ('approved add plan', 'Never call without user approval') and a narrow retry rule tied to the same plan_id. It stops short of naming the sibling that produces the plan (prepare_cart_change), leaving that linkage to inference.

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