Skip to main content
Glama

Gale Finance

Rank assets by a risk or return metric

rank_assets_by_metric
Read-onlyIdempotent

Rank the assets Gale Finance covers by one published metric (return, cagr, volatility, sharpe, sortino, max_drawdown, var_5, es_5, skew, excess_kurtosis), optionally filtered by asset type. Each row carries its value, window dates, and Gale page. Example: "Which crypto had the best Sharpe last year?".

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": {
      "metric": "<metric>"
    },
    "name": "rank_assets_by_metric"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return, 1-25 (default 10)
orderNodesc (default, highest first) or asc
metricYesMetric name, e.g. "sharpe", "Sortino ratio", "max drawdown"
windowNo1y (default) or long (5Y or since inception; not like-for-like)
asset_typeNoFilter by asset type: crypto, stock, etf, commodity, stablecoin, or index

Output Schema

NameRequiredDescriptionDefault
rowsYes
notesYes
orderYes
metricYes
statusYes
windowYes
asset_typeYes
source_urlYesCanonical Gale page holding these figures
method_noteYes
data_throughYesData-through date (YYYY-MM-DD) of the cited figures
glossary_urlYes
metric_labelYes
total_rankedYes
methodology_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds that each row carries its value, window dates, and Gale page, but that return-content detail is largely duplicated by the output schema. No mention of tie-breaking or cross-type ranking behavior.

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?

Three compact sentences, front-loaded with the core operation before the row-content and example details. The metric parenthetical is dense but earns its place; the example supports usage without padding.

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?

For a 5-parameter, read-only ranking tool with a full output schema and rich annotations, the description covers purpose, metric vocabulary, and output shape sufficiently. It leaves minor gaps around ranking ties and whether results span all asset types by default, but nothing essential to calling it correctly is missing.

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 coverage is 100%, so the baseline would be 3, but the description enumerates the canonical metric names (return, cagr, volatility, sharpe, sortino, max_drawdown, var_5, es_5, skew, excess_kurtosis) that the schema's free-string metric field only partially hints at. That enumeration materially reduces invalid-input risk beyond what the schema provides.

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?

States a specific verb (rank) and resource (assets Gale Finance covers) plus the metric dimension and optional asset-type filter, so the operation is unmistakable. It does not explicitly differentiate itself from siblings like compare_assets or get_risk_return_metrics, which keeps it just below a 5.

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 worked example ('Which crypto had the best Sharpe last year?') gives a concrete scenario that clarifies when to reach for this tool over a raw metrics lookup. It gives no explicit exclusions or naming of the sibling alternatives, so it stops short of full routing guidance.

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.