Skip to main content
Glama

Stock Analysis by ValuEdge

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. Signed-in accounts can opt in to analyst_ratings, forward_consensus, or quality per stock. 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
includeNo
tickersYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), and the description adds real context beyond them: the opt-in extras require a signed-in account, and the output must not crown a universal winner or emit buy/sell/hold instructions. It says nothing about latency, rate limits, or what happens when a ticker is invalid or not 'confirmed', which is the remaining gap.

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, each load-bearing: trigger and scope first, capability/auth caveat second, output restriction third. No filler and the most decision-relevant information is front-loaded.

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 a read-only annotation set and an output schema present, the description need not describe return values, and it does not waste space doing so. It covers trigger, inputs, auth requirement, and output constraints; only edge-case behavior for invalid or unconfirmed tickers is unaddressed.

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 has to carry both parameters, and it largely does: it maps 'tickers' to a 2-6 stock list, and maps 'include' to the three named opt-in blocks applied per stock, with the signed-in prerequisite. It leaves 'confirmed' undefined and does not explain what disqualifies a ticker, so the compensation is good but not complete.

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 states a specific verb (compare) and resource (two to six confirmed stocks) and enumerates exactly what dimensions are compared: price, canonical fair value, margin of safety, confidence, valuation risk, and fair-value coverage. That scope (multi-stock comparison) is distinguishable from single-stock siblings like get_stock_valuation 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 Guidelines4/5

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

It gives an explicit trigger: 'Use this when the user asks to compare two to six confirmed stocks.' It also states the opt-in condition (signed-in accounts) for the extra per-stock blocks. It does not name an alternative for single-stock or screening cases, so an agent must infer the boundary with siblings like screen_stocks or get_stock_valuation.

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