Skip to main content
Glama

Screen companies from a plain question

screen_natural_language
Read-onlyIdempotent

Turn a plain-language question into screen filters and run the screen over every covered company. The filters are parsed from the question by an AI model, or by fixed rules when no model is set up; data.generated_by and data.label say which. The model only picks filters. The results are computed from filings by the same code as the screen tool, and every value carries its proof. data.parsed lists the filters used, data.equivalent_request is the same screen as a structured request, and data.unparsed lists the parts of the question that were not understood, so check both before relying on the list. It knows sectors, industries, and metrics with bounds such as gross margin above 40%, P/E below 15 or revenue over 1 billion. Use it when the user describes the companies they want in words; use the screen tool when you already know the metric ids.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 20,
      "question": "technology companies with gross margin above 40% and revenue over 1 billion"
    },
    "name": "screen_natural_language"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of periods or items to return (default 50, at most 200).
questionYesWhat to screen for. Plain English, 3 to 300 characters, no links. Example: technology companies with gross margin above 40% and revenue over 1 billion.

Output Schema

NameRequiredDescriptionDefault
dataNo{ question, parsed { filter, metrics, sort, period_type, sector, industry, country, limit }, equivalent_request, unparsed: [string], generated_by ("model" or "rules"), label, model, method_version, cached, result { the screen: metrics, items: [{ company, period, values { <metric>: value object } }], total, next_cursor } }
metaNoRequest metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base.
errorNoPresent only on isError results: the API error code and message plus remedy hints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare it is a non-destructive, idempotent read, so the description carries real weight here: it discloses that an AI model may parse the question or fixed rules may apply when no model is configured, that `data.generated_by`/`data.label` reveal which path ran, and that the model only selects filters rather than computing results. It also warns that `data.unparsed` may contain parts of the question that were not understood and that both it and `data.equivalent_request` should be checked before trusting the list — a genuinely useful reliability caveat. The gap is that it never mentions rate limits, latency, or what 'covered company' means in terms of universe restrictiveness.

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 the core action and the routing rule, and most sentences carry distinct information about parsing fallback and verification. Some of the return-field enumeration (`data.parsed`, `data.equivalent_request`, `data.unparsed`) overlaps with the output schema, costing a little tightness. Overall dense but not padded.

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?

For a two-parameter tool with a full output schema, the description covers parsing behavior, fallback, verification caveats, and sibling routing, so an agent can invoke it correctly. The remaining shortfall is explaining the return-value fields that the output schema already defines, rather than adding behavior the structured fields cannot express.

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 the baseline is 3, but the description adds real meaning about what the `question` parameter can express: sectors, industries, and bounded metrics such as gross margin above 40%, P/E below 15, or revenue over 1 billion. That tells an agent how to phrase queries in a way the schema's example alone does not. The `limit` parameter is left entirely to the schema.

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 and resource — 'turn a plain-language question into screen filters and run the screen' — and immediately distinguishes itself from the structural sibling by naming the `screen` tool and the condition that selects it. An agent can tell this apart from `screen` without opening either 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 routing rule: 'Use it when the user describes the companies they want in words; use the screen tool when you already know the metric ids.' That is a clean when-to-use / when-to-use-the-other split with a named alternative and the discriminating condition.

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