Skip to main content
Glama
casaley-mcp

casaley-mcp

by s00rk

estimate_shopping_list

Read-onlyIdempotent

Estimate a shopping list by returning a product match for each item with price, unit price, offer, and confidence, plus two alternatives; unmatched items are marked not_found.

Instructions

Estima una lista del súper. Para cada artículo (p. ej. 'leche 1 lt', 'huevo 30 pz', 'queso panela') devuelve la mejor coincidencia con precio, precio unitario, oferta y confianza (high/medium/low), más 2 alternativas. Lo que no encuentra sale not_found: nunca se inventa.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "estimate_shopping_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesArtículos, uno por elemento.
storeNoId numérico de la sucursal (ver `list_stores`). Vacío: la configurada.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The description goes beyond the readOnly/idempotent annotations by disclosing the result contract: best match plus two alternatives, per-item confidence levels, and that unmatched items return `not_found` rather than a fabricated price. It doesn't mention rate limits or how the store default resolves, but the 'never invents' promise is valuable behavioral context.

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 compact sentences: purpose, return shape with concrete examples, and the failure mode. Every sentence earns its place and the return contract is front-loaded.

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?

With an output schema present and annotations covering safety, the description needs only to convey purpose, input format, and failure semantics, which it does. The one gap is not stating the alternatives' purpose or any batch-size behavior beyond the schema's 50-item cap.

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 100% and both parameters are documented there, so the baseline is 3. The description does add that items are free-form strings with example formats ('leche 1 lt', 'huevo 30 pz'), which helps agents format input, but adds no detail on the store parameter.

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?

States a specific verb and resource (estimate a shopping list) in Spanish and immediately specifies the per-item return shape: best match with price, unit price, offer, confidence, plus 2 alternatives. That distinguishes it clearly from lookup siblings like get_product or search_products. It does not explicitly name a sibling alternative, keeping it below a 5.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: it's for estimating a basket of items at once, and the store param's schema description routes to `list_stores`. There is no explicit when-to-use/when-not-to guidance versus search_products or get_product for single-item lookups.

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