Skip to main content
Glama

Run prefilter

run_prefilter

Apply a prefilter profile to tender records and write a FIT VALUE OF 0 TO 100 with a short reason. Answers only: does the subject matter fit? Not whether the tenant meets the eligibility criteria — that is a separate step. Runs in blocks internally, so a thousand records are one call. A title that says nothing about the subject ("Dienstleistungen", "Bestellung 4301017129") gets the state not_ratable and NOT a zero: a zero there is a false statement that removes the record from every working list. The value never overwrites fit_score.

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": "run_prefilter"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoCap on records in one run. Default 1000.
sinceNo
untilNo
statusNo
dry_runNoReport what would be scored, call no model and write nothing.
rescoreNoRoll the ACTIVE profile version over records that already carry a value — what you want after sharpening a profile. Records already on that version are skipped, so repeated identical calls keep advancing and end at remaining: 0 instead of re-scoring the same slice forever; ordering is oldest prefilter_at first. To force a re-score of records already on the current version, name them in tender_ids instead.
budget_msNoWall-clock budget for the run, default 40000. The runtime kills a worker after 60 s; the run stops itself before that, keeps what it has already written and reports the rest as `remaining`. Call again to continue.
block_sizeNoRecords per model call. Default 120. Measured 2026-09-15: about 0.22 s per record including the write, so 120 is roughly 27 s.
profile_idNoDefault: the tenant's active default profile.
tender_idsNo
source_portalNo
unscored_onlyNoDefault true when no tender_ids are given: score what has no value yet.
deadline_afterNoOnly records whose submission deadline is after this date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the tool writes a value, that it never overwrites `fit_score`, that uninformative titles must produce `not_ratable` rather than a zero because a zero removes the record from working lists, and that internal blocking makes a thousand records a single call. It also explains the wall-clock self-termination behavior — the run stops before the runtime's 60 s kill, keeps what it wrote, and reports the rest as `remaining`.

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-loads the core action and the fit-vs-eligibility boundary, then layers the consequences of mis-scoring. Mostly dense, though the parenthetical German title examples and the emphatic capitalization ("NOT a zero", "ACTIVE") add some bulk that a shorter phrasing could carry.

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 13-parameter mutating batch tool with no output schema, the description covers the essentials: what is written, what is never overwritten, the special `not_ratable` state, partial-progress semantics via `remaining`, and continuation by calling again. An agent can invoke it correctly and interpret the outcome without further documentation.

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 coverage is 62%, so most parameters already carry their own explanations (rescore, budget_ms, block_size, dry_run, unscored_only). The description adds context for limit/block_size via "runs in blocks internally, so a thousand records are one call," but says nothing about `since`, `until`, `status`, `source_portal`, or `deadline_after`, leaving a meaningful share of the 13 parameters to the schema alone.

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: apply a prefilter profile to tender records, writing a fit value 0-100 plus a reason. The scoping question it answers ("does the subject matter fit?") and the one it explicitly does not (eligibility criteria) separate it cleanly from the fit-check and analysis siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear when-to-use frame — subject-matter fit only, eligibility is a separate step — and explains the operational modes callers must choose between: unscored_only for fresh records, rescore after sharpening a profile, dry_run to preview, and re-running to drain `remaining`. It does not name the sibling tool that handles eligibility, so the routing is contextual rather than explicit.

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