Skip to main content
Glama
casaley-mcp

casaley-mcp

by s00rk

get_product

Read-onlyIdempotent

Retrieve product details by EAN/UPC for a specific store; returns not_found if the item is unavailable at that branch.

Instructions

Ficha de un producto por su EAN/UPC en una sucursal. Devuelve status: not_found si no existe ahí.

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": {
      "ean": "<ean>"
    },
    "name": "get_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
eanYesEAN/UPC del producto (13 dígitos).
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.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered elsewhere. The description adds one genuine behavioral fact beyond that: the tool returns `status: not_found` rather than failing when the product is absent in the branch. It says nothing about permissions, rate limits, or what the rest of the payload contains.

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 with zero filler; the identification key and scope come first and the failure mode follows. Nothing could be removed without losing information.

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 a full input schema, an output schema and rich annotations, the description only needs to convey purpose and the notable not-found path, which it does. A brief note on how to obtain the EAN or on the store default would make it fully self-contained, though the schema already covers the latter.

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 described there, including the numeric store id (with a cross-reference to `list_stores`) and the empty-means-configured default. The description only echoes 'en una sucursal' and adds no format or edge-case detail beyond the schema, so the baseline 3 applies.

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+resource: retrieve a single product record ('Ficha de un producto') keyed by EAN/UPC scoped to a branch. That distinguishes it from list-style tools such as search_products or list_offers, but it never names an alternative, so the differentiation is inferred rather than stated.

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: use this when you already have a barcode and want that product's record. The description adds one useful condition (the product may not exist in that branch), but gives no explicit when-not or pointer to search_products for name-based lookup.

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