compare_stocks
Side-by-side comparison of up to 10 stocks (comma-separated codes): prospectus, allotment, first-day close and change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes |
Side-by-side comparison of up to 10 stocks (comma-separated codes): prospectus, allotment, first-day close and change.
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of behavioral disclosure. It implies a read-only comparison and usefully specifies the cardinality and delimiter, but it does not state read-only intent explicitly or describe failure handling, invalid-code behavior, or any access constraints. This is a moderate gap for a simple query-like tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single structured sentence puts the action, bound, and output fields front-loaded with no filler. The line break before the field list is slightly awkward but does not hurt parseability.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter tool with no annotations and no output schema, the description covers the input contract and what is compared, which is enough to form a reasonable call. It does not document the exact return shape, but the listed fields serve as an output sketch; only the ambiguity of 'change' is a real gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema only exposes a generic 'codes' string with no description, so the description's clarification that codes are comma-separated and capped at 10 is essential and adds real value. It still leaves the stock-code format unspecified (e.g., tickers vs exchange suffixes), which an agent may need to infer from sibling search tools.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific capability — side-by-side comparison of stock metrics — and identifies the resource (up to 10 stocks) and the specific fields (prospectus, allotment, first-day close and change). This clearly separates it from single-stock siblings such as get_stock_overview or get_cmp_overview.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'side-by-side comparison' and the explicit 10-stock cap give an agent clear context for when to choose this tool over single-stock lookups. However, it does not explicitly name alternatives or state when not to use it, leaving some overlap ambiguity with comparison-like siblings such as get_ab_comparison.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.