Skip to main content
Glama
aswathas

TradeMCP

by aswathas

trademcp_get_market_breadth

Read-onlyIdempotent

Measure market breadth for an Indian index by counting advancers, decliners and unchanged stocks, showing average and median moves plus top gainers and losers, with optional 200-day moving average trend breadth.

Instructions

Measure market breadth for an Indian index.

Counts advancers, decliners and unchanged stocks among the index constituents, reports the average and median move, and lists the top gainers and losers. Optionally adds the percentage of constituents trading above their 200-day moving average, the classic trend-breadth gauge.

Args: index: index to analyse include_trend: compute the 200-day moving average breadth too response_format: 'markdown' or 'json'

Returns: Markdown or JSON breadth summary with gainers, losers and breadth percentages.

Input Schema

NameRequiredDescriptionDefault
indexNoIndex whose constituents are analysed: 'NIFTY 50' or 'NIFTY 100'NIFTY 50
include_trendNoAlso compute the share of constituents above their 200-day moving average (slower)
response_formatNo'markdown' or 'json'markdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, destructive=false and openWorld. The description adds genuine behavioral detail beyond that: the trend calculation is 'slower' (a latency signal) and precisely what statistics are produced. It doesn't discuss rate limits, error behavior, or index validity handling.

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 opening sentence front-loads the purpose and the body enumerates outputs efficiently. The Args/Returns blocks are partly redundant with the fully described schema and output schema, slightly diluting conciseness.

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, complete annotation coverage, and 100% parameter documentation, the description is sufficient to call the tool correctly. The only missing element is guidance on picking this tool over sibling analysis tools.

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%, so all three parameters are already documented, including the 'slower' caveat on include_trend and the JSON/markdown enum. The Args section largely restates the schema, adding no new syntax, defaults, or constraints, so 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 (measure) and resource (market breadth for an Indian index) and enumerates the concrete outputs: advancers/decliners, average and median move, gainers/losers. It does not contrast itself with adjacent siblings like get_index_snapshot or get_technical_analysis, so it falls short of 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 by the description of what it computes, and 'Optionally adds ... the classic trend-breadth gauge' gives some context for include_trend. There is no explicit when-to-use, when-not-to-use, or named alternative among the 13 siblings.

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