Skip to main content
Glama

Screen the market

screen
Read-onlyIdempotent

Turn a spoken shortlist description into explicit numeric cut-offs, and show the cut-offs.

★ THE THRESHOLDS COME BACK WITH THE SHORTLIST. "低本益比" becomes `per < 15`, and that 15 is
printed in `applied[]` so you can disagree with it. A filter that hands over thirty names
without saying where it drew the line cannot be checked by anyone — and whether the line was
15 or 20 completely changes which thirty.

★ PHRASES IT CANNOT MAP COME BACK IN `unparsed[]`. It will not quietly invent a boundary for
a wording it did not recognise, because a list the caller believes they defined and actually
did not is worse than a shorter list.

★ NOT `query_dataset` AND NOT `compare`. `query_dataset` returns rows for symbols you already
chose; `compare` puts a handful of named symbols beside each other. This one is for when you
have no symbols yet, only a description of what you are looking for.

⚠️ A shortlist is not a recommendation. Rows whose value is absent are excluded rather than
assumed to pass — being unmeasured is not the same as qualifying.
Args: conditions (plain words), optional as_of, optional pre-fetched rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNo
as_ofNo
conditionsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
as_ofNo
appliedNo
resultsNo
unparsedNo
rows_examinedNo
not_investment_adviceNo
thresholds_are_choicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / description
      Added value: +"`screen` 的回傳。**逐欄對照實際 payload 寫的,不是照工具名猜的。**\n\n⚠️ `thresholds_are_choices` 不是雜訊欄,是這個工具的誠實邊界:\n篩選門檻是**我方選的**,不是市場給的。它要進 schema,否則 client 拿到\nstructuredContent 之後會把門檻當成客觀事實。\n\n⚠️ `extra=\"allow\"` 在這裡是必要的,不是保險:payload 尾端有\n`payload.update(input_guard_report(guarded))`,那些鍵是動態的。\n宣告成 forbid 會讓每一次帶 guard 報告的回應驗證失敗 —— 而 FastMCP\n驗不過時整個 structuredContent 會被丟掉,client 收到的是空的。"
    • addedOutput schema / properties
      Added value: +{
      +  "applied": {
      +    "anyOf": [
      +      {
      +        "items": {},
      +        "type": "array"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Applied"
      +  },
      +  "as_of": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "As Of"
      +  },
      +  "not_investment_advice": {
      +    "anyOf": [
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Not Investment Advice"
      +  },
      +  "note": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Note"
      +  },
      +  "results": {
      +    "anyOf": [
      +      {
      +        "items": {},
      +        "type": "array"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Results"
      +  },
      +  "rows_examined": {
      +    "anyOf": [
      +      {
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Rows Examined"
      +  },
      +  "thresholds_are_choices": {
      +    "anyOf": [
      +      {},
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Thresholds Are Choices"
      +  },
      +  "unparsed": {
      +    "anyOf": [
      +      {
      +        "items": {},
      +        "type": "array"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Unparsed"
      +  }
      +}
    • changedOutput schema / title
      Previous value: -"screenDictOutput"New value: +"ScreenResult"
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already mark the tool readOnly and idempotent, and the description adds valuable behavioral detail: thresholds are echoed in applied[], unrecognized phrases surface in unparsed[] rather than being silently invented, and missing values are excluded rather than treated as passing. This goes well beyond the annotations and sets accurate expectations.

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

Conciseness5/5

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

The description is front-loaded with the core purpose and uses bold markers to structure each distinct piece of guidance. Though longer than a minimal description, every block earns its place by adding behavioral disclosure, missing-data semantics, or sibling disambiguation.

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?

Given the annotations, output schema, and sibling list, the description covers the invocation path, return behavior via applied[] and unparsed[], missing-value handling, and alternative routing. No critical information needed to select or call the tool correctly is absent.

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 description coverage is 0%, so the description carries the parameter-meaning burden. It defines conditions as 'plain words' / spoken shortlist description, as_of as optional, and rows as optional pre-fetched rows. It does not detail as_of format, but it provides enough semantic grounding for correct invocation.

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 first sentence names a specific transformation: turn a spoken shortlist description into explicit numeric cut-offs and show them. It also explicitly distinguishes itself from query_dataset and compare by describing what those do and when this tool is appropriate, so an agent can tell them apart.

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?

The description explicitly states this tool is for when you have no symbols yet, only a description of what you are looking for. It names query_dataset as the alternative when symbols are already chosen and compare for named symbols, giving clear when-to-use and when-not-to-use guidance.

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