Skip to main content
Glama

Relative strength (A/B)

get_relative_strength
Read-onlyIdempotent

Calculate relative strength ratio between two tickers (A/B). Returns current ratio, SMA(50)/SMA(200) of ratio, RSI of ratio, trend direction. Used for inter-market analysis: e.g. GDX/GLD, HYG/LQD, XLK/SPY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticker_aYesNumerator ticker, e.g. 'GDX'
ticker_bYesDenominator ticker, e.g. 'GLD'
period_daysNoDays of history (default 365, max 1825)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairNo
trendNo
signalsNo
data_pointsNo
ratio_sma50No
ratio_rsi_14No
ratio_sma200No
current_ratioNo
recent_valuesNo
period_change_pctNo

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the tool as read-only, idempotent, and non-destructive, so the description only needs to add context. It lists the computed outputs (SMA, RSI, trend direction), making the tool's behavior transparent without contradicting the annotations.

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?

The description is three sentences with no wasted words. It front-loads the purpose, then lists outputs, then gives usage examples – each sentence earns its place.

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?

This is a simple read-only tool with a full output schema and safe annotations. The description covers purpose, output metrics, and usage examples, leaving no obvious gaps. Return values are already documented by the output schema, so no extra explanation is needed.

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?

All parameters are fully described in the schema (100% coverage), so the description adds limited value. It provides example ticker pairs (e.g., GDX/GLD) that clarify numerator/denominator roles, but doesn't add meaning beyond schema descriptions for period_days.

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 starts with 'Calculate relative strength ratio between two tickers (A/B)' – a specific verb and resource. It also lists the exact outputs (current ratio, SMA(50)/SMA(200), RSI, trend direction), which clearly distinguishes it from sibling tools like get_intermarket or get_technical_indicators.

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?

The description states 'Used for inter-market analysis' and provides concrete examples (GDX/GLD, HYG/LQD, XLK/SPY), giving an agent clear context for when to apply it. It doesn't explicitly contrast with alternatives like get_intermarket, but the examples effectively communicate the typical use case.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool maps to a distinct data category or function (prices, indicators, levels, sentiment, macro, crypto, intermarket, breadth, news, etc.). The few related tools are clearly separated by current vs. historical data, specific ratios vs. multi-lens overviews, or news lookup vs. news search.

Naming Consistency4/5

The majority of tools follow a consistent get_<noun> pattern with snake_case (e.g., get_price_history, get_technical_indicators). Two news tools use a public_ prefix instead, creating a minor but visible inconsistency.

Tool Count5/5

15 tools is within the ideal range for a market-data server and each tool covers a meaningful slice of the domain without redundancy. The count feels well-scoped for the server's purpose.

Completeness4/5

The tool surface is impressively broad, covering prices, indicators, sentiment, macro, crypto, intermarket analysis, news, and methodology. However, common data types like fundamentals (P/E, balance sheets) and options chains are absent, leaving a few potential user questions unanswered.

Resources