Adjudicaciones de empresa
get_company_awardsList the awards of one company: ONE ROW PER AWARDED LOT (a tender won in three lots is three rows) with award_date, lot and lot_title, buyer (id, name, url), region, cpv, award_amount_eur (the company's own share, net of VAT), budget_eur, baja_pct (discount of the award to the budget it was bid against, only when it is a plain 0-95 % discount), received_bids, segment and the tender's url. Find the company id with search_companies. The rows are the lines get_company.wins counts: contratos menores are included (is_menor) unless exclude_menores, and awards the source gave no date (award_date_missing) are included unless a date bound is given (undated_rows counts them). award_amount_eur is absent for a framework agreement (framework_ceiling_eur: the ceiling is shared with the other winners), a placeholder or a figure published only with VAT (award_amount_with_vat_eur): see amount_note. group_by='buyer' gives one row per buyer instead, with wins (tenders), awarded_eur, first_award_date and last_award_date: who the company sells to and since/until when. Filters: awarded_after / awarded_before (the line's award date), cpv, comunidad, organization_id. Newest award first, or sort=amount_desc. Pages of up to 50: while the result has a next_cursor, pass it as cursor (same other arguments); total is the number of rows and stops counting at 10000, so narrow with dates past it. For one row per TENDER with its status use search_tenders(company_id=...).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>"
},
"name": "get_company_awards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpv | No | CPV filter of the tender: a 2-digit division, a 3-7 digit prefix or a full 8-digit code; several comma-separated, any of them matches, up to 10: '302,48'. | |
| sort | No | award_date_desc (default) / award_date_asc: by award date (by the buyer's last award with group_by); amount_desc: by the euros awarded. Rows with no date, or no amount, come last. | award_date_desc |
| limit | No | Page size | |
| cursor | No | Paging: the `next_cursor` of the previous page. Keep every other argument the same. | |
| group_by | No | 'buyer' = one row per buyer (a duplicate set under its representative) with the tenders it awarded the company, the euros and its first and last award date, instead of one row per lot. | |
| comunidad | No | Comunidad autónoma of the tender by name, e.g. 'Andalucía' or 'Madrid'. | |
| company_id | Yes | Company id (uuid) from search_companies results | |
| awarded_after | No | Award date on/after (ISO). A line the source gave no award date is left out when either bound is given (`undated_rows` says how many). | |
| awarded_before | No | Award date on/before (ISO) | |
| exclude_menores | No | true = leave out contratos menores. They are listed by default, flagged `is_menor`, because the company's win count includes them. | |
| organization_id | No | Only the awards of this buyer (id from search_organizations or a result row) |