Skip to main content
Glama
altfndata

altfinance-mcp

by altfndata

market_stats

Read-only

Compute realized-price statistics—median, quartiles, average, min/max, sales count, date span, and top vendors—for an auction table or filtered segment.

Instructions

Summarize the realized-price market for a table or a filtered segment.

Returns count of sales, median, 25th/75th percentiles, average, min/max of usd_price_decimal, the sale-date span, and the top vendors by volume — all computed server-side over the full matching set (not a sample).

Args: table: Table alias (call list_tables first). "gems" = LOOSE, unmounted stones (use for a gemstone-market read); "jewelry" = FINISHED, mounted pieces. A loose-stone question can span both. filters: Optional list of filter dicts, same shape as query_table (field/op/value). Narrow to a segment, e.g. [{"field": "designer", "op": "eq", "value": "Patek Philippe"}]. sold_only: When true (default), restricts to sold lots with a positive USD price so the stats reflect realized transactions.

Input Schema

NameRequiredDescriptionDefault
tableYes
filtersNo
sold_onlyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.7

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds meaningful context beyond that: stats are computed server-side over the full matching set rather than a sample, and sold_only=true restricts to sold lots with a positive USD price so results reflect realized transactions. No auth, rate-limit, or cost disclosure, but the sampling and sold-only semantics are genuinely useful behavioral details.

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?

The purpose and return set are front-loaded, followed by per-argument notes, so the structure is easy to scan. The Args-style block is slightly verbose and the return enumeration is somewhat redundant given an output schema, but nothing is outright filler.

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 3-parameter read-only aggregation with an output schema, the description covers the argument semantics and the key caveat about full-set versus sampled computation. The remaining gap is relational: it never positions itself against market_index or price_trend, so an agent must guess between them.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does so: table is explained with alias semantics ("gems" = loose/unmounted, "jewelry" = finished/mounted, may span both), filters is defined as field/op/value dicts matching query_table with a concrete Patek Philippe example, and sold_only is given its default and effect. All three parameters gain meaning beyond the bare schema.

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?

The first sentence states a specific verb and resource — summarize the realized-price market for a table or filtered segment — and the return list makes the output concrete (count, median, percentiles, min/max, vendor ranking). It does not explicitly distinguish itself from sibling aggregators such as market_index or price_trend, which an agent would still need to disambiguate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

It gives a prerequisite ("call list_tables first") and explains when to pick "gems" versus "jewelry" and that a loose-stone question can span both, which is real usage context. However, it never says when to use market_stats instead of market_index, price_trend, or price_check, leaving the biggest selection question unanswered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.