Skip to main content
Glama

scanner_run

Execute market scans with custom filters for price, volume, market cap, instrument type, and location to return matching instruments.

Instructions

Run a market scanner with custom parameters. Returns matching instruments.

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": {
      "scanCode": "<scanCode>",
      "instrument": "<instrument>",
      "locationCode": "<locationCode>"
    },
    "name": "scanner_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
scanCodeYesScan type code (e.g., TOP_PERC_GAIN, HOT_BY_VOLUME)
abovePriceNoMinimum price filter
belowPriceNoMaximum price filter
instrumentYesInstrument type (e.g., STK, FUT, OPT)
aboveVolumeNoMinimum volume filter
locationCodeYesMarket location (e.g., STK.US, STK.US.MAJOR)
numberOfRowsNoMax rows to return (default: 25)
marketCapAboveNoMinimum market cap
marketCapBelowNoMaximum market cap
scannerSettingPairsNoAdditional scanner setting pairs
averageOptionVolumeAboveNoMin avg option volume

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire burden. It says the tool "returns matching instruments" but never states that it is a read-only query, whether results are paginated or capped, what happens with an invalid scanCode, or whether entitlements are required for a given location.

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?

Two short sentences, front-loaded with the action and ending with the return value, with no filler. Brevity is close to the limit of usefulness given zero annotations, but nothing is wasted or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with no annotations and no output schema, the definition should explain scan-code expectations, result shape beyond "matching instruments", or failure modes. It leaves the agent to infer safety profile and error behavior entirely.

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?

Schema description coverage is 100%, with each of the 11 parameters documented including examples and a stated default of 25 rows, so the schema does the heavy lifting. The description adds no filtering semantics or interaction rules (e.g. abovePrice vs belowPrice pairing) beyond what the schema already 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?

The description gives a specific verb and resource ("Run a market scanner") and names the distinguishing trait ("with custom parameters"), which implicitly separates it from scanner_run_preset. It stops short of naming that sibling explicitly, so differentiation is inferable rather than stated.

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?

"With custom parameters" hints that this tool is for manually specified scan criteria, implying the preset variant is for canned scans, but no when-to-use condition or alternative is stated. Prerequisites such as market-data subscriptions or valid scan codes are not mentioned.

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

Deploy Server

Other Tools