Skip to main content
Glama

ValuEdge MCP — Stock Valuation, Screener & Portfolio Research

Compare stocks

compare_stocks
Read-onlyIdempotent

Use this when the user asks to compare two to six confirmed stocks on current price, canonical fair value, margin of safety, confidence, valuation risk, and fair-value coverage. This tool compares valuation only; use get_stock_fundamentals separately for growth, profitability, or balance-sheet claims. Do not declare a universal winner or give buy, sell, or hold instructions.

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": {
      "tickers": "<tickers>"
    },
    "name": "compare_stocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickersYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / error / properties / retry_after_ms
      Added value: +{
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior, so the description's added context is the valuation-only scope and the prohibition on winner declarations or buy/sell/hold framing, which shapes how results should be reported. That is genuine value beyond the annotations, though it does not address behavior with unconfirmed or unresolvable tickers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, all front-loaded: trigger and scope first, the sibling hand-off second, the output constraint last. No sentence is redundant and none restates the title.

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?

An output schema exists, so return values need not be explained, and the description covers trigger, scope, sibling routing, and reporting constraints for a single-parameter read-only tool. Remaining edge cases, such as behavior for confirmed-but-untracked symbols, are minor against this coverage.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry meaning, and its phrase 'confirmed stocks' adds a real requirement not encoded in the schema: tickers must already be resolved/verified before comparison. It restates the two-to-six bound (already enforced by minItems/maxItems) but does not explain the accepted ticker format or exchange suffix handling allowed by the pattern.

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 names a specific verb (compare) and resource (stocks), enumerates the exact metrics produced (current price, canonical fair value, margin of safety, confidence, valuation risk, fair-value coverage), and bounds the input to two-to-six confirmed stocks. It also explicitly delineates itself from get_stock_fundamentals, so an agent can route 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 trigger ('when the user asks to compare two to six confirmed stocks'), an explicit exclusion with the correct alternative ('use get_stock_fundamentals separately for growth, profitability, or balance-sheet claims'), and an output constraint ('do not declare a universal winner or give buy, sell, or hold instructions'). When-to-use, when-not-to-use, and the alternative are all present.

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.