Skip to main content
Glama

Screen a theme

screen_by_theme
Read-onlyIdempotent

Rank a theme's scored members by conviction (e.g. 'photonics', 'defense', 'ai'). Fuzzy-matches the theme name; reports members not yet in the scored universe; leaves out what the user's exclusion screen avoids (counted). Paged with cursor. Free. Example: "best-scored defense stocks" → theme defense.

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": {
      "theme": "<theme>"
    },
    "name": "screen_by_theme"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows per page (default 12).
themeYesTheme name or synonym, e.g. photonics, defense, ai, semis
cursorNonext_cursor from the previous page.
top_bands_onlyNoOnly the highest conviction bands.
include_excludedNoAlso show what the user's exclusion screen hides.

Output Schema

NameRequiredDescriptionDefault
okYesfalse on an error; then `error` says what happened and what to do.
cardNoThe in-chat InvestIQ card, in English and French.
dataNoThe tool's own result fields.
toolYes
as_ofYesISO time the data was computed (a stored analysis: when it was computed).
errorNo
linksNoInvestIQ pages for this result.
degradedNotrue when part of the data was missing.
viz_specNoThe recommended chart's series (data only).
disclaimerYes
data_qualityNoWhat was requested, what was used, and why anything was left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real behavior beyond them: fuzzy name matching, explicit reporting of members not yet in the scored universe, interaction with the user's exclusion screen (and that exclusions are counted), cursor paging, and that calls are free. What it does not clarify is the shape of 'conviction' or the band structure behind top_bands_only.

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?

Information is densely packed and front-loaded: purpose first, then matching behavior, coverage gaps, exclusions, paging, cost, and an example. Every clause carries signal, though 'leaves out what the user's exclusion screen avoids (counted)' is slightly compressed and takes a second read.

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?

With rich annotations, full schema coverage and an output schema, the description only needs to cover the non-obvious behavior, and it does: fuzzy matching, uncovered members, exclusion handling, and pagination. The remaining gap is minor - the meaning of 'conviction' and the band model is left unstated, presumably covered by the explain_score sibling.

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%, so every parameter is already documented and the baseline is 3. The description adds a little meaning on top ('fuzzy-matches the theme name', 'paged with cursor') but says nothing extra about top_bands_only or how include_excluded differs from the default, leaving those to the 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 description names a specific verb and resource: 'Rank a theme's scored members by conviction', with concrete theme examples ('photonics', 'defense', 'ai'). This is clearly distinct from a generic stock screener, though it never names the sibling (screen_stocks) it most closely parallels, so the differentiation is implied 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?

The natural-language mapping example ('best-scored defense stocks' -> theme defense) is a genuine usage cue that helps an agent decide to route here. However, there is no explicit when-to-use/when-not guidance and no reference to an alternative tool for filter-based or non-theme screening, so the agent must infer the boundary itself.

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