Skip to main content
Glama
mercadona-mcp
by Syuf1514

Purchase history analysis

purchase_history
Read-only

Aggregate recent online orders into per-product stats—order count, total and typical quantity, last bought date, and spend per order—to reveal what you usually buy and rebuild a regular basket.

Instructions

Aggregate the last N online orders into per-product stats: how many orders included it, total quantity, typical quantity, last bought date, and spend per order. Great for 'what do I usually buy?' and for rebuilding a usual basket.

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

Input Schema

NameRequiredDescriptionDefault
topNo
max_ordersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds value by disclosing the shape of the aggregation (per-product rollups over a bounded window of recent orders), but says nothing about how the window is bounded, whether uncatalogued/renamed products are merged, or how much data is returned.

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

Conciseness4/5

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

Two sentences, front-loaded with the operation and output fields, then the use case. The stat list is dense but each item earns its place; the only mild filler is the "Great for" framing, which does contribute usage signal.

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

Completeness3/5

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

With no output schema, the description usefully enumerates the returned fields, which is the main completeness win for a low-complexity read tool. The gap is on the input side: both parameters are undocumented and defaults/bounds are only visible in the raw schema, so an agent cannot confidently set 'top'.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry both parameters. It only implicitly maps "last N online orders" to max_orders; the more consequential 'top' parameter (default 60, max 300) is never mentioned, leaving the agent to guess whether it caps products returned or something else entirely.

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?

Specific verb (aggregate) plus resource (last N online orders) and an explicit inventory of the resulting per-product stats: order count, total quantity, typical quantity, last bought date, spend per order. This is clearly distinct from list_orders or get_order, which return individual orders rather than per-product aggregation.

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?

The description gives a concrete intent cue — "what do I usually buy?" and "rebuilding a usual basket" — which tells the agent when to prefer this over order-listing siblings. It stops short of naming alternatives such as list_orders or my_regulars, and gives no when-not-to-use condition, so it is clear context without full routing guidance.

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