Skip to main content
Glama

Analyze Market Activity

analyze_market_activity
Read-only

Monthly sales volume over time: how activity has evolved, and seasonality. Use score_market_health instead for a single comparable number ("is this market good?", "compare two markets").

REQUIRED: one location: code_postal, commune ("PARIS 11") or code_departement. Optional: type_local, months (default 24, max 60; use ≥ 12). Caps: code_departement alone → 12 months; PARIS, LYON or MARSEILLE city-wide → 36 months. The response's window {requested, applied, reason} gives the dates behind a capped or default months.

Returns monthly volumes with year-over-year changes, trend ("increasing" | "decreasing" | "stable"), activity level ("hot" | "normal" | "slow"), peak and low months, and a market signal.

Example: {commune: "LYON", type_local: "Appartement", months: 24}

Cost: 10 credits per call

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

Input Schema

NameRequiredDescriptionDefault
monthsNoNumber of months to analyze (default: 24)
communeNo
type_localNo
code_postalNo
code_departementNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/destructive annotations, the description discloses a cost ('10 credits per call'), location-granularity caps on the analysis window (12 months for code_departement alone, 36 for PARIS/LYON/MARSEILLE city-wide), and the fact that the response carries a window {requested, applied, reason} block explaining a capped or defaulted run. These are non-obvious behaviors an agent cannot derive from the annotations or schema.

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?

The content is front-loaded — purpose and the sibling split come first, then requirements, return shape, example, and cost — and essentially every sentence carries information. The telegraphic, label-style phrasing ('REQUIRED:', 'Caps:') is dense but readable, with only minor redundancy against the schema for months' default and maximum.

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

Completeness5/5

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

Although there is no output schema, the description enumerates the return payload (monthly volumes, year-over-year changes, trend, activity level, peak/low months, market signal, window block). Combined with required-location rules, caps, example, and cost, nothing an agent needs to invoke or interpret this tool is missing.

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

Parameters5/5

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

Schema coverage is only 20%, and the schema marks zero required parameters, yet the description corrects that by declaring 'REQUIRED: one location' with the three accepted forms and a format example ('PARIS 11'). It also adds meaning to months (default 24, max 60, recommend ≥ 12) plus the per-location caps, and supplies a concrete invocation example, compensating for the sparse schema.

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?

The description uses a specific verb-plus-resource pairing ('Monthly sales volume over time… how activity has evolved, and seasonality') and immediately contrasts the tool with score_market_health, which returns 'a single comparable number.' An agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

It gives an explicit routing rule to the sibling ('Use score_market_health instead for a single comparable number') with quoted user phrasings that trigger that alternative ('is this market good?', 'compare two markets'). It also states the input prerequisite (exactly one location) and the practical constraint (use ≥ 12 months), leaving little to inference.

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