Skip to main content
Glama

get_market_trends

One market by house or by bottle size: median price and price per ml, spread (interquartile range over the median), in-stock share, and the change since the start of the window.

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": {
      "market": "<market>"
    },
    "name": "get_market_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNobrand
toNoLast day, YYYY-MM-DD
fromNoFirst day, YYYY-MM-DD
typeNofull_bottle
brandNoOnly this house
limitNo
cursorNo
marketYesTwo-letter country code (SA, EG, AE…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does useful work by defining the returned metrics, including the non-obvious 'spread (interquartile range over the median)' and that change is measured from the start of the window. It says nothing about pagination behavior despite limit/cursor, nor about any auth or rate constraints, so the behavioral picture is partial.

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?

A single dense sentence with no filler; the grouping dimension comes first and the metrics follow. The opening 'One market by house or by bottle size' is slightly telegraphic and could be tighter, but nothing is redundant.

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?

This is an 8-parameter aggregation tool with no annotations and no output schema, so the description's enumeration of returned metrics is essential and well done. However, it omits pagination semantics, the default filtering effect of type, and any hint of how results are ordered, which leaves real gaps for correct invocation.

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?

At 50% schema coverage, the description meaningfully clarifies two ambiguous fields: it maps 'by house or by bottle size' onto the brand/size enum and explains that 'change' is measured from the window start, giving from/to meaning. It says nothing about type, limit, or cursor, leaving half the parameters to the schema alone.

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 states a specific resource (one market) and a specific result set: median price, price per ml, IQR-over-median spread, in-stock share, and change since window start. That is concrete enough to distinguish it from a raw price tool, but it never names or contrasts a sibling such as get_market_prices, 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 Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. The phrase 'One market' hints that scope is a single market and the metrics are aggregate, but an agent must guess whether this or get_market_prices is the right call for a given question. No prerequisites or exclusions are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources