Run crawl
run_crawlStart 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
| Name | Required | Description | Default |
|---|---|---|---|
| cpv | No | CPV 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. | |
| wait | No | Default 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_pages | No | Default 10. Pages beyond the first need stored portal credentials. | |
| source_key | No | A 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_url | No | The page to crawl. Optional when source_key is given. | |
| start_page | No | Which 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_filter | No | The 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_query | No | ||
| source_label | No | Human label stored on the job and on every tender it imports (source_crawl_label). Defaults to the URL's hostname. | |
| fetch_details | No | Foerderdatenbank-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_unfiltered | No | Explicitly 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_filter | No | PFLICHT 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. |