Skip to main content
Glama

Screen Assets by Metric

assets_by_metric_tool
Read-only

A powerful metrics-based project filtering and sorting tool that works with cryptocurrency assets based on their metrics and allows for ordered, paginated results.

The tool allows for filtering assets by a metric and sorting them according to that same metric in ascending or descending metric, or just to sort the assets by a metric without filtering.

This tool allows you to discover projects that meet specific criteria by analyzing their metrics over time periods. You can filter projects by absolute values (greater_than/less_than thresholds) or by percentage changes, or just sort projects by some metric.

When to use vs other metric tools

This tool scans the whole asset universe and returns one aggregated value per matching asset — use it for "which assets satisfy X" and "top N by X". Every response has values: one row per asset in ranking order with the ranked metric's value, plus any value_metrics asked for (e.g. the price change of each of the top 100 by market cap, in one call). It never returns a timeseries: for the values of a metric over time for already-known slugs use fetch_metric_data_tool. To check that a metric exists (or fix a mistyped metric/slug) use metrics_and_assets_discovery_tool.

Use Cases

  • Get top 10 assets by marketcap, sorted in descending order

  • Get top 50 assets with highest dev_activity_1d

  • Find assets with price more than $10

  • Discover tokens whose price increased by more than 50% in the last 30 days

  • Screen for projects with market cap less than $100M

  • Identify assets that have dev_activity_1d decline by more than 20% in the past month

Examples

  • Get projects that have a price_usd in the last 24 hours and it's greater_than $500. Get the first 20 ordered by price_usd in descending order {metric: "price_usd", operator: :greater_than, threshold: 500.0, from: "utc_now-24h", to: "utc_now", sort: "desc, page: 1, page_size: 20}

  • Find projects whose price_usd today is 25% higher than 7 days ago, sorted by the highest percent increase in descending order. Get the first 100. {metric: "price_usd", operator: :percent_up, threshold: 25.0, from: "utc_now-7d", to: "utc_now", sort: "desc", page: 1, page_size: 100}

  • Projects with current market cap less_than $50M. Get 100 such projects, ordered by marketcap in descending order. {metric: "marketcap_usd", operator: :less_than, threshold: 50000000.0, from: "utc_now-1d", to: "utc_now", sort: "desc", page: 1, page_size: 100}

Here is how the filtering works:

  • For absolute value operators - greater_than and less_than - fetch the metric for each asset in the interval from-to, aggregting it using the specified aggregation method (defaulting to the metric's default).

  • For percent change operators - percent_up and percent_down - fetch the metric for each asset in the interval from-to, as well as in the same length interval immediately before from`. The two resulting values are compared to calculate the percentage change.

Some metrics like price_usd and marketcap_usd are aggregated with LAST aggregation by default, meaning that the last known value in the queried interval is used. For percent change, this means that the tool compares the last known price immediately before from and the last known price before to. Other metrics like transaction_volume_usd and social_volume_total (and most other volume metrics) are aggregated by default with SUM aggregation, meaning that the total combined sum in the queried interval is used. For these metrics length of the time window is vital. A common mistake is to try to check if the social_total_total for the last 5 minutes is greater_than some threshold. Five minutes is not enough for social volume to accumulate enough. In such scenarios use a longer time window like 1 day or more.

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": {
      "sort": "<sort>",
      "from": "<from>",
      "to": "<to>",
      "page": "<page>",
      "metric": "<metric>",
      "page_size": "<page_size>"
    },
    "name": "assets_by_metric_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd date/time for the analysis period. Defines the end of the time window for metric aggregation. Accepts ISO 8601 datetime strings (e.g., "2024-12-31T23:59:59Z") or relative time expressions (e.g., "utc_now" for current time, "utc_now-1d" for yesterday). Defaults to current time if not specified. Must be after the 'from' date. Used with percentage operators to calculate change over the specified period.
fromYesStart date/time for the analysis period. Defines the beginning of the time window for metric aggregation. Accepts ISO 8601 datetime strings (e.g., "2024-01-01T00:00:00Z") or relative time expressions (e.g., "utc_now-30d" for 30 days ago, "utc_now-1h" for 1 hour ago) Defaults to 30 days ago if not specified. Used with percentage operators to calculate change over time.
pageYesPage number for paginated results. Used to retrieve specific pages when the result set is large. Starts from 1 (first page). Combine with page_size to control how many results are returned per page. Useful when only the top 10, 20, 100, etc. assets are needed.
sortYesSort order for the filtered results based on the aggregated metric values. - "asc" - Ascending order (lowest values first, e.g., cheapest prices first) - "desc" - Descending order (highest values first, e.g., most expensive prices first) Particularly useful when combined with pagination to get the top/bottom performers. Example: sort="desc" with price_usd shows highest-priced projects first.
metricYesThe metric to use for screening projects. This determines what aspect of each project will be analyzed. Common metrics include: 'price_usd', 'marketcap_usd', 'volume_usd', 'dev_activity', 'social_volume', 'active_addresses'. Use the data catalog to discover all available metrics for comprehensive screening options. Discover the supported metrics with the metrics_and_assets_discovery_tool.
filtersNoExtra filters on other metrics, combined with AND. The ranking still uses `metric`. Each filter uses the same `from`/`to` window as the ranking. At most 3. Example — the largest assets by market cap whose price fell more than 5%: `{metric: "marketcap_usd", sort: "desc", filters: [{metric: "price_usd", operator: "percent_down", threshold: 5}], ...}` Filters pick from the whole asset universe before ranking. To screen only the current top N (e.g. "which of the top 200 moved less than 1%"), rank without filters and read `value_metrics` instead.
operatorNoComparison operator that determines how projects are filtered based on the metric and threshold. Absolute value operators (compare current values): - `greater_than` - Include projects where the aggregated metric value is greater than the threshold - `less_than` - Include projects where the aggregated metric value is less than the threshold Percentage change operators (compare change from 'from' to 'to' period): - `percent_up` - Include projects where the metric increased by more than the threshold percentage - `percent_down` - Include projects where the metric decreased by more than the threshold percentage If this parameter is not provided, the threshold parameter also must not be provided. If they are not provided, the tool will simply sort the assets and will do no filtering. Example: operator=percent_up, threshold=25.0 finds projects that gained more than 25%.
page_sizeYesNumber of projects to return per page (max 100). Controls the size of each paginated response.
thresholdNoThe numeric threshold value used for filtering projects. The meaning depends on the operator: For absolute operators (:greater_than, :less_than): - The actual metric value to compare against (e.g., 10.5 for price_usd greater_than $10.50) - Units match the metric (USD for price/market cap, count for addresses, etc.) For percentage operators (:percent_up, :percent_down): - The percentage change threshold (e.g., 25.0 for 25% change) - Always expressed as a positive number regardless of direction If this parameter is not provided, the operator parameter also must not be provided. If they are not provided, the tool will simply sort the assets and will do no filtering. Examples: threshold=50000000.0 with :less_than finds projects with market cap under $50M
aggregationNoMethod for aggregating metric data over the specified time period. Determines how multiple data points within the time window are combined into a single value for comparison. Common aggregation methods: - "avg" - Average value over the period (default for most metrics) - "sum" - Total sum of values (useful for volume, transaction counts) - "max" - Maximum value in the period (highest price, peak activity) - "min" - Minimum value in the period (lowest price, minimum activity) - "last" - Most recent value in the period - "first" - Earliest value in the period If not specified, uses the metric's default aggregation, whichi is carefully selected based on the metric type. Some aggregations do not make sense for certain metrics (e.g., summing prices). If not specifically required, using the metric's default aggregation method is recommended.
value_metricsNoMetrics to return a value for, for every asset on the page (at most 5). The ranked `metric` is always returned too. Values come back in `values`, one row per asset in ranking order, so no separate fetch_metric_data_tool calls are needed. Only metrics with `supports_many_slugs: true` can be used here. Example — top 100 by market cap with their 24h price change: `{metric: "marketcap_usd", sort: "desc", from: "utc_now-1d", to: "utc_now", value_metrics: ["price_usd"], value_aggregation: "percent_change", page: 1, page_size: 100}`
value_aggregationNoHow each of `value_metrics` is aggregated over `from`-`to`. Defaults to each metric's default aggregation. `percent_change` is the change from the first to the last value in the window, in percent, computed by the tool — use it instead of computing changes yourself. The key in `values` is then `<metric>_percent_change`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / filters
      Added value: +{
      +  "description": "Extra filters on other metrics, combined with AND. The ranking still uses `metric`.\nEach filter uses the same `from`/`to` window as the ranking. At most 3.\n\nExample — the largest assets by market cap whose price fell more than 5%:\n`{metric: \"marketcap_usd\", sort: \"desc\", filters: [{metric: \"price_usd\", operator: \"percent_down\", threshold: 5}], ...}`\n\nFilters pick from the whole asset universe before ranking. To screen only the current\ntop N (e.g. \"which of the top 200 moved less than 1%\"), rank without filters and read\n`value_metrics` instead.\n",
      +  "items": {
      +    "properties": {
      +      "aggregation": {
      +        "description": "Defaults to the metric's default aggregation.",
      +        "enum": [
      +          "min",
      +          "max",
      +          "sum",
      +          "first",
      +          "last",
      +          "avg"
      +        ],
      +        "type": "string"
      +      },
      +      "metric": {
      +        "description": "Metric to filter on.",
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "Same operators as the top-level `operator`.",
      +        "enum": [
      +          "greater_than",
      +          "less_than",
      +          "percent_up",
      +          "percent_down"
      +        ],
      +        "type": "string"
      +      },
      +      "threshold": {
      +        "description": "Same meaning as the top-level `threshold`.",
      +        "oneOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "operator",
      +      "threshold",
      +      "metric"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / value_aggregation
      Added value: +{
      +  "description": "How each of `value_metrics` is aggregated over `from`-`to`. Defaults to each metric's\ndefault aggregation. `percent_change` is the change from the first to the last value\nin the window, in percent, computed by the tool — use it instead of computing changes\nyourself. The key in `values` is then `<metric>_percent_change`.\n",
      +  "enum": [
      +    "min",
      +    "max",
      +    "sum",
      +    "first",
      +    "last",
      +    "avg",
      +    "percent_change"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / value_metrics
      Added value: +{
      +  "description": "Metrics to return a value for, for every asset on the page (at most 5).\nThe ranked `metric` is always returned too. Values come back in `values`, one row per\nasset in ranking order, so no separate fetch_metric_data_tool calls are needed.\nOnly metrics with `supports_many_slugs: true` can be used here.\n\nExample — top 100 by market cap with their 24h price change:\n`{metric: \"marketcap_usd\", sort: \"desc\", from: \"utc_now-1d\", to: \"utc_now\", value_metrics: [\"price_usd\"], value_aggregation: \"percent_change\", page: 1, page_size: 100}`\n",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, so the description correctly spends its space elsewhere: full-universe scanning versus top-N screening, the `values` response shape (no output schema exists, so this matters), and the aggregation/percent-change mechanics. The warning that short windows starve SUM-aggregated metrics is genuine operational guidance. Minor gap: nothing on scale, latency, or result-set size limits beyond the schema's page_size cap.

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

Conciseness3/5

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

Section headers and worked examples make it scannable, but the opening two paragraphs restate the same filtering/sorting idea three times with awkward phrasing ('sorting them according to that same metric in ascending or descending metric'), and the Use Cases list largely duplicates the Examples. It is informative but padded; a tighter opening would improve it.

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?

For a 12-parameter, enum-heavy screening tool with no output schema and no nesting, the description covers what is returned, how aggregation and percent change are computed, the metric-default behavior, and the pitfall of too-short windows. Combined with the exhaustive schema, an agent has everything needed to call it correctly on the first attempt.

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 baseline is 3; the description earns above that by explaining that absolute operators use a single aggregated value while percent_* operators compare two equal-length windows, and by warning that LAST vs SUM defaults make window length critical for volume metrics. The `filters`-versus-`value_metrics` distinction for 'top N subset' screening is also non-obvious and useful.

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 and resource ('metrics-based project filtering and sorting' over 'cryptocurrency assets'), names the returned artifact ('values: one row per asset in ranking order'), and explicitly distinguishes itself from fetch_metric_data_tool (timeseries) and metrics_and_assets_discovery_tool (metric existence). An agent can pick it correctly without opening the 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?

A dedicated 'When to use vs other metric tools' block names the two sibling alternatives and the exact conditions that select each ('which assets satisfy X', 'top N by X', 'timeseries for known slugs', 'check a metric exists'). Use cases and three worked call examples remove nearly all ambiguity.

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