Skip to main content
Glama
Indian Stock Exchange MCP Server

Indian Stock Exchange MCP Server

by prakharv-ops

Compare stocks

compare-stocks
Read-onlyIdempotent

Compare 2-5 stocks side by side across price, valuation, profitability, growth, risk, and analyst views to support investment research.

Instructions

Side-by-side comparison of 2-5 stocks on price, valuation, profitability, growth, risk and analyst views.

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": {
      "names": "<names>"
    },
    "name": "compare-stocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesYesCompanies to compare

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so the safety and determinism profile is covered. The description adds that the tool reports across six analytical categories, which is useful context, but it says nothing about data freshness, latency, or how missing metrics for a stock are handled.

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 sentence with the core scope front-loaded and no filler. The enumerated dimensions are dense but each earns its place by telling the agent what the comparison covers.

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 no output schema, the description partially compensates by listing the six comparison categories, which effectively previews the return content. Combined with annotations covering the safety profile and a fully documented single parameter, this is largely complete for a simple read tool; only return formatting and failure behavior are unstated.

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 description coverage is 100% and the single parameter already documents that items are company names or NSE symbols with a 2-5 item range. The description's '2-5 stocks' restates the minItems/maxItems constraints rather than adding new meaning, 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?

The description gives a specific verb and resource ('side-by-side comparison of 2-5 stocks') and enumerates the compared dimensions: price, valuation, profitability, growth, risk and analyst views. This makes it distinguishable from single-entity siblings like get-stock-details or get-stock-snapshot, though no sibling is named explicitly.

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 only implied: the 2-5 range signals a multi-stock comparison scenario, and the dimension list hints at when it beats a single-stock lookup. There is no explicit when-to-use guidance, no exclusion of alternatives (e.g. get-peers for sector comparison), and no note about prerequisites such as valid NSE symbols.

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