Skip to main content
Glama

FirmTape - SPX, ES, NQ, RTY gamma levels, 100+ symbols

Screen sessions

screen_sessions
Read-onlyIdempotent

Filter the finished SPX sessions in the FirmTape archive by their closing measurements and count them: regime at the close and at the open, zero-gamma flip crossings, direction and size of the move, net-gamma percentile, 0DTE ATM IV at the open, the calendar event, weekday and year. Returns how many sessions match, two shares over them (closed above the flip, mean absolute move) printed next to the same shares over the whole archive, and the matched days. A matched share close to the archive's share is a base rate, not a pattern. Use when: 'how often did FOMC days close in negative gamma', 'the days that closed below the flip with the percentile under 20', 'largest moves on CPI days since 2024'. Not for: one day's numbers (get_session), gamma by strike (get_gex_profile), or testing a rule with out-of-sample statistics (the Lab). Limits: counts over finished sessions' closing measurements only, no per-strike data; at most 50 sessions listed per call. Counts, not investment advice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "screen_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
ivNo0DTE ATM implied vol at the open: under 10%, 10-15%, 15-20%, 20% and above
dirNoDirection of the open-to-close move
dowNoDay of the week
gpctNoNet-gamma percentile at the close: under 20, 20 to 50, 50 to 80, 80 and above
moveNoSize of the open-to-close move: under 0.5%, 0.5% or more, 1% or more, 2% or more
openNoRegime at the open: pos = opened above the flip, neg = below
sortNoOrder of the sessions list: newest (default), oldest, move (largest absolute move first), gpct (highest percentile first)
yearNoCalendar year, e.g. 2025; a year outside the archive is dropped
crossNoFlip crossings in the session: 0 = none, 1 = exactly one, 2 = two or more
eventNoEvent the day carried: fomc (decision days), cpi, nfp (payrolls), pce, ppi, gdp, retail (retail sales), jolts, ism, claims, auctions (Treasury), fed (speeches, Beige Book), opex (expiration), vix (VIX settlement), umich, confidence, eia, halts (halt in a top name), housing (housing and durables), refunding, rebalances (index), none (no event of these kinds)
limitNoHow many matched sessions to list (default 20, max 50); the counts always cover every match
regimeNoRegime at the close: pos = closed above the zero-gamma flip, neg = below

Output Schema

NameRequiredDescriptionDefault
urlYesThe /screener page that shows the same result to a person
labelYesThe filters in words
sharesYesThe same three shares over the matched sessions and over the whole archive; a matched share close to the archive's is a base rate, not a pattern
sourceNo
filtersNoThe filters the screener accepted; a value outside the vocabulary is dropped, not an error
matchedYesSessions matching every filter
summaryYesOne sentence carrying this answer's numbers, its trading day and its source, written to be quoted verbatim to a reader rather than paraphrased.
archivedYesFinished sessions in the archive
screenedYesSessions whose closing measurements were available to screen
sessionsYesMatched sessions in the requested order (default newest first), at most `limit`
truncatedYesTrue when more sessions matched than `sessions` carries
data_as_ofYesThe time this answer's data is true as of, ISO 8601 with the ET offset: a finished session's close (13:00 on an early close), the minute a ladder was read at, or the source's own build stamp. Null when the source states none.
question_urlNoWhen the filters are one of the screener's common questions, that question's own page (e.g. /screener/negative-gamma-closes), the address to cite
server_versionYesVersion of the FirmTape MCP server that produced this answer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / properties / band
      Removed value: -{
      -  "description": "Whether the expected-hold band held all session",
      -  "enum": [
      -    "held",
      -    "broke"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / data_as_of
      Added value: +{
      +  "description": "The time this answer's data is true as of, ISO 8601 with the ET offset: a finished session's close (13:00 on an early close), the minute a ladder was read at, or the source's own build stamp. Null when the source states none.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / server_version
      Added value: +{
      +  "description": "Version of the FirmTape MCP server that produced this answer",
      +  "type": "string"
      +}
    • removedOutput schema / properties / sessions / items / properties / hold_band_held
      Removed value: -{
      -  "type": [
      -    "boolean",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / shares / properties / archive / properties / band_held_pct
      Removed value: -{
      -  "description": "Percent of them whose expected-hold band held all session",
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / shares / properties / matched / properties / band_held_pct
      Removed value: -{
      -  "description": "Percent of them whose expected-hold band held all session",
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "summary",
      -  "label",
      -  "url",
      -  "matched",
      -  "screened",
      -  "archived",
      -  "shares",
      -  "truncated",
      -  "sessions"
      -]New value: +[
      +  "summary",
      +  "label",
      +  "url",
      +  "matched",
      +  "screened",
      +  "archived",
      +  "shares",
      +  "truncated",
      +  "sessions",
      +  "data_as_of",
      +  "server_version"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so safety is covered; the description goes further by disclosing the return composition (match count, two shares compared against whole-archive shares, matched day list), the 50-session listing cap, that counts cover only closing measurements of finished sessions, and the interpretive caveat that a share near the archive share is a base rate. The only omission is pagination/truncation behavior when more than 50 match, which is minor.

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?

Front-loaded with purpose and return shape, then filters, then usage routing, then limits — a sensible order with no filler. It is long, but nearly every clause (base-rate caveat, cap, scope limits) carries information an agent would otherwise have to guess.

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 screening tool with an output schema and full annotation coverage, the description supplies the remaining decision-relevant context: what the result set represents, how the listing cap relates to the counts, what data is excluded, and how to read the comparison figures. An agent can call this correctly and interpret the output without further clarification.

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 10 enums, so the schema already carries the semantics of every parameter. The prose filter list (regime at open and close, crossings, direction and size, percentile, IV, event, weekday, year) restates those fields rather than adding syntax, ranges, or interaction rules; baseline 3 applies.

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?

States a specific verb pair ('Filter ... and count') over a specific resource ('finished SPX sessions in the FirmTape archive') plus the measurement family used as filters. It also names what it is not (get_session, get_gex_profile, the Lab), so an agent can distinguish it from siblings without opening any 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?

Explicit 'Use when:' block with three concrete phrasings that map onto the enums (event days, regime plus percentile, large moves by event), plus an explicit 'Not for:' block naming the alternative tool for each excluded case. Nothing about selection is left to inference.

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