Skip to main content
Glama

Run crawl

run_crawl

Start an ad-hoc crawl and import what it finds as tenders. Prefer source_key for a catalogue source: it selects that source's own connector, which a URL alone cannot reliably do — three of the seven automated sources have a base_url that their own URL detection does not match, and crawling them by URL silently falls through to the generic page crawler and imports page headings. Pass source_url for an ad-hoc page. Returns immediately with a crawl_job_id to poll via get_crawl_job unless wait=true.

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_crawl"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpvNoCPV codes for sources that filter on them (cosinex/DTVP). Often better than free text: a machine-tool procurement rarely says so in its title. Eight digits, check digit optional.
waitNoDefault false. true blocks until the crawl finishes — only safe for small max_pages; a 10-page Freelancermap crawl with login and detail fetches exceeds the request timeout.
max_pagesNoDefault 10. Pages beyond the first need stored portal credentials.
source_keyNoA source from the catalogue (list_crawl_sources), e.g. ted, usp-at, oeffentlicher-einkauf-de, simap-ch, freelancermap, service-bund-de. Grant sources: foerderinfo-bund (federal research funding, no bot wall, no detail fetch needed — the cheapest), eu-funding-tenders, foerderdatenbank-bund. Selects that source's connector and, if source_url is omitted, its base_url.
source_urlNoThe page to crawl. Optional when source_key is given.
start_pageNoWhich page to start at, 1-based. Default 1. For a source too large to fetch in one run — Baden-Wuerttemberg has 600+ notices and a four-page run hits the worker timeout. Fetch it in sections: start_page 1, then 3, then 5.
grant_filterNoThe CPV equivalent for GRANT sources (foerderdatenbank-bund, eu-funding-tenders). WITHOUT IT A RUN FETCHES THE WHOLE STOCK: 2543 programmes from the Foerderdatenbank, 595 open EU calls. Four keys, all optional. `facets` filters the Foerderdatenbank SERVER-SIDE: {Foerderbereich, Foerderberechtigte, Foerdergebiet, Foerderart, Foerdergeber, Unternehmensgroesse, GRW} -> arrays of fixed keys (e.g. Foerderbereich: ["digitalisierung"], Foerderberechtigte: ["unternehmen"], Foerdergebiet: ["_bundesweit"] narrows 2543 to 62). CAUTION: several values of the SAME facet are combined with AND, not OR — "digitalisierung"+"forschung_innovation_themenoffen" yields 22, not 384. `eu` filters the EU portal server-side: metadata field -> values, OR within a field (e.g. {"frameworkProgramme":["43108390"]} = Horizon Europe, 346 of 595). `keywords` and `exclude` sieve the RESULT LIST before any detail page is fetched — that is what keeps a Foerderdatenbank run cheap, since every detail page costs a separate scrape. Unknown facet values are dropped with a warning rather than silently ignored by the portal (which would return the unfiltered stock). `out_of_scope` is the fourth key and behaves differently from `exclude`: a match is still IMPORTED but gets status `out_of_scope` instead of `open`. Use it for topics that do not fit the tenant today but should still be visible — keyword matching on EU titles is unavoidably coarse (measured 2026-09-07: 18 of 65 imported calls were outside the tenant's field because `resilience` and `infrastructure` are generic EU vocabulary). Discarding them would put a judgement about subject fit into the crawler, which belongs to a human. A run only ever writes `open` or `out_of_scope` and never overwrites a status a person set.
search_queryNo
source_labelNoHuman label stored on the job and on every tender it imports (source_crawl_label). Defaults to the URL's hostname.
fetch_detailsNoFoerderdatenbank-bund only (foerderinfo-bund needs no detail fetch — its list already carries title, deadline, funder and description). Default false: the result list alone is imported (one scrape per page, finishes in seconds) and carries title, identifier, target group, funding area and region. true additionally fetches each programme's detail page for funder and summary text — one extra scrape each, capped at 8 per run because measured successful runs on this installation last 21-54s and two attempts at 45 detail fetches were killed by the runtime at 732s and 1021s with zero imports. Call repeatedly to enrich further; already-imported programmes are updated, not duplicated.
allow_unfilteredNoExplicitly permit a GRANT run with no filter. Without it such a run is refused instead of writing the whole stock into the tenant — on 2026-09-07 a filter passed as a JSON string was silently dropped and 99 unfiltered calls landed in a customer's list while the run reported success. Only pass true when a full sweep is genuinely intended.
freelancer_filterNoPFLICHT fuer freelancer-com. Ohne ihn wird der Lauf abgewiesen: 5828 aktive Projekte, ueberwiegend Kleinauftraege in USD (gemessene Stichprobe: Fotografie-Vorortpruefung, CAD-Statik, Hochzeitseinladungen). Schluessel: `jobIds` (Kategorie-Kennungen, DER Profilfilter — ueber /api/projects/0.1/jobs/?job_names[]=... aufloesbar, etwa Embedded Software=191, Microcontroller=111, PCB Layout=265, FPGA=762), `query` (Volltext, NUR als Zusatz: gemessen liefert "embedded linux" 125 Treffer und "embedded" allein nur 96 — die Suche verknuepft mit ODER, je genauer man formuliert desto mehr Unpassendes kommt), `minAvgPrice`, `excludeLocal` (Vorortprojekte weglassen, Vorgabe true) und `maxAgeDays`. `excludeLocal` und `maxAgeDays` allein zaehlen NICHT als Filter, weil sie erst beim Auswerten der Antwort greifen und den Bestand nicht eingrenzen.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare openWorldHint/readOnlyHint=false and non-idempotent, and the description adds crucial behavior beyond them: immediate return with a crawl_job_id, timeout thresholds for blocking runs, and the guarantee that a run only writes `open` or `out_of_scope` and never overwrites a human-set status. It does not state credential prerequisites for multi-page runs (that is left to the schema) or what a partial-failure return looks like.

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?

Four sentences, front-loaded with the source_key-vs-URL rule that matters most for correctness. Dense but almost every clause carries information; the closing sentence on return/polling is well placed. Slightly over-long for a body that must also lean on a very verbose schema.

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 12-parameter, open-world, no-output-schema mutation tool, the description covers the non-obvious failure modes (wrong connector, unfiltered grant sweep, worker timeout on large sources) and the async contract. Auth/credential requirements and the shape of a refused or partially failed run are left to the schema, which keeps it short of full completeness.

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 92% and the schema descriptions are themselves detailed, so the baseline is 3; the body still adds real meaning the schema does not — that source_key selects a connector whose base_url URL detection cannot match for three of seven sources, and that a bare URL silently degrades. It leaves the grant/freelancer filter semantics to the schema text rather than restating them.

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?

Opens with a specific verb+resource+outcome: "Start an ad-hoc crawl and import what it finds as tenders." The word "ad-hoc" plus the reference to poll via get_crawl_job and the sibling run_crawl_schedule in the catalog makes the scope unambiguous — an agent knows this is a one-off crawl, not a scheduled one.

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 rules: prefer source_key for catalogue sources, use source_url for ad-hoc pages, use wait=true only for small max_pages, use allow_unfiltered only for a genuine full sweep. It even explains why the alternative (URL-only crawling) fails, naming the failure mode ('silently falls through to the generic page crawler and imports page headings').

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