Buscar licitaciones
search_tendersSearch Spanish public procurement tenders (licitaciones) with full-text query and filters (place by comunidad or provincia, CPV, budget, dates, procedure and contract type, framework, EU threshold) and a choice of sort order (e.g. sort=budget_desc for the largest). Returns compact rows with licto.es links and, per tender, its source (source, the record's source_url and source_updated_at); the response's sources block, once per source, gives the publisher, licence and attribution text to cite, with provenance_notice. Amounts: budget_eur is the presupuesto base de licitación excluding IVA, as the source publishes it (a source that publishes only a VAT-inclusive figure gives that one); estimated_total_eur is the valor estimado del contrato (excluding IVA, with options and extensions) when the notice states it. min_budget/max_budget filter budget_eur. publication_date is absent when the source published none (Licto then holds only a stand-in, the award or formalization date, which is not when the tender was published); published_after leaves such tenders out, so with it total can count tenders that never reach the pages, and a page can be shorter than limit while next_cursor still leads to more. cpv: a 2-digit division, a 3-7 digit prefix or a full 8-digit code, each matching its descendants; several codes comma-separated (up to 10), any of them matches. query: plain words, every word must match (no OR, no phrases); run separate searches for alternatives. comunidad / provincia filter by the NUTS region recorded in the notice. Tenders recorded only as nationwide ('España', typical of national bodies) are listed under every comunidad; one whose notice records another region, or none, can be missed, so complement the filter with a query naming the place. An awarded tender's row adds winner, winner_company_id, award_amount_eur (the award of the whole tender, absent when the source states none; get_tender gives it per lot), received_bids and award_date; a tender with no award has none of them. To list the tenders a company won (one row per tender; one row per awarded lot is get_company_awards): find its id with search_companies, then call search_tenders(company_id=...); awarded_after / awarded_before bound the award date (only with company_id). In that mode the rows come from the award data, not the text index: query and sort=relevance are refused, every other filter applies (status, comunidad / provincia, cpv, budgets, deadline_*, published_after, organization_id, procedure_type, contract_type, is_framework, over_threshold, sort), winner is that company, award_amount_eur is what it was awarded (a multi-lot tender may have other winners: see get_tender) and total stops counting at 10000. Pages of up to 50: while the result has a next_cursor, pass it as cursor (same other arguments) for the next page; total is the estimated number of matches.
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": "search_tenders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpv | No | CPV filter: a 2-digit division ('45'), a 3-7 digit prefix ('4523' = that group and everything under it) or a full 8-digit code (that code and its descendants; the trailing zeros of '45000000' are its level, so it is division 45). Several codes comma-separated, any of them matches, up to 10: '302,48'. | |
| sort | No | Order of the results. `relevance` = text ranking of `query`; `deadline_asc` lists only tenders whose deadline is today or later. | publication_date_desc |
| limit | No | Page size | |
| query | No | Full-text query, Spanish works best. Not available with `company_id`. | |
| cursor | No | Paging: the `next_cursor` of the previous page. Keep every other argument the same. | |
| status | No | accepting = open for bids; evaluating = bids under evaluation; awarded = awarded/executing/completed. Each result row (and get_tender) carries `status_group` with these same values; `status` keeps the raw internal status. | |
| comunidad | No | Comunidad autónoma by name, e.g. 'Andalucía', 'Madrid' or 'Comunitat Valenciana'. For a province use `provincia` instead. | |
| provincia | No | Provincia by name, e.g. 'Sevilla', 'Bizkaia' or 'Las Palmas'; accents and case are ignored. Narrower than `comunidad`: give one of the two, not both. | |
| company_id | No | Restrict to tenders this company won (id from search_companies): the way to list a company's contracts. Cannot be combined with `query` or sort=relevance. | |
| max_budget | No | Maximum budget in EUR | |
| min_budget | No | Minimum budget in EUR | |
| is_framework | No | true = only framework agreements (acuerdos marco); false = exclude them | |
| awarded_after | No | Award date on/after (ISO), for the date the tender was awarded. Requires `company_id`. | |
| contract_type | No | Contract types, any of: services, supplies, works, concession, other, admin_special, private, public_service_mgmt, concession_services, concession_works, ppp, patrimonial | |
| awarded_before | No | Award date on/before (ISO), for the date the tender was awarded. Requires `company_id`. | |
| deadline_after | No | Submission deadline on/after (ISO) | |
| over_threshold | No | true = only tenders above the EU (SARA) threshold; false = leave them out | |
| procedure_type | No | Procedure types, any of: open, restricted, negotiated, competitive_dialogue, open_simplified, innovation_partnership, framework_based, dps_based, design_contest, innovation_derived, competitive_with_negotiation, negotiated_with_pub, negotiated_without_pub, internal_rules, other | |
| deadline_before | No | Submission deadline on/before (ISO) | |
| organization_id | No | Restrict to tenders published by this organization (id from search_organizations) | |
| published_after | No | Publication date on/after (ISO) — use for 'what's new since X'. Tenders whose source published no date (Licto holds a stand-in, see `publication_date`) are left out. |