Skip to main content
Glama

Содержимое корзины

grocery_cart
Read-onlyIdempotent

Retrieves current basket contents for a specified store app and pickup point; use IDs from grocery_stores that match those used when adding items.

Instructions

Содержимое корзины. app_id/point_id — из grocery_stores() (обязательны) и должны совпадать с теми, что использовались в grocery_add_to_cart.

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

Input Schema

NameRequiredDescriptionDefault
app_idNo
point_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint/idempotentHint, so the safety profile is covered. The description adds a genuinely behavioral fact beyond them — that the identifiers must match a prior grocery_add_to_cart call, otherwise the agent would query a different or empty cart. It does not explain what happens on an ID mismatch or an empty cart.

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?

Two short sentences, front-loaded with the resource and immediately followed by the parameter sourcing rule. Nothing is superfluous given how small the tool is.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile; the remaining need — where the IDs come from and that they must be consistent — is addressed. The gap is that the relationship to the other cart tools (shop_cart, grocery_set_cart) is left implicit.

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

Parameters3/5

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

Schema coverage is 0% (both params are bare strings titled 'App Id'/'Point Id'), so the description carries the burden and does supply provenance and a consistency constraint for both parameters. However, it calls them required while the schema lists no required fields and defaults them to empty strings, and it gives no format guidance for the opaque values.

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?

The description names the resource unambiguously — the contents of the cart — so an agent knows this is a read of the current cart state. It implicitly distinguishes itself from grocery_add_to_cart by requiring the same identifiers, though it never states an explicit verb like 'return' or 'show' and the first sentence merely repeats the title.

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?

It gives concrete prerequisites: app_id/point_id must come from grocery_stores() and must match those used in grocery_add_to_cart, which tells the agent exactly what to call first and what constraint to honor. It stops short of naming when to use this versus shop_cart or grocery_set_cart, so no exclusion guidance.

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