Skip to main content
Glama

Adjudicaciones de empresa

get_company_awards
Read-onlyIdempotent

List 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

NameRequiredDescriptionDefault
cpvNoCPV 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'.
sortNoaward_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
limitNoPage size
cursorNoPaging: the `next_cursor` of the previous page. Keep every other argument the same.
group_byNo'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.
comunidadNoComunidad autónoma of the tender by name, e.g. 'Andalucía' or 'Madrid'.
company_idYesCompany id (uuid) from search_companies results
awarded_afterNoAward 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_beforeNoAward date on/before (ISO)
exclude_menoresNotrue = leave out contratos menores. They are listed by default, flagged `is_menor`, because the company's win count includes them.
organization_idNoOnly the awards of this buyer (id from search_organizations or a result row)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description goes well beyond them: contratos menores included by default, undated rows dropped only when a date bound is given, absent award amounts for framework agreements or VAT-only figures, and `total` capping at 10000 with advice to narrow by date. These are genuinely useful operational caveats for a read tool whose safety profile is already covered.

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-loaded with the grain and the field list, then routing, then caveats, then filters and paging — a sensible order with no filler sentences. It is dense and long, with several parenthetical asides packed into single sentences, which slightly hurts scanability, but every clause carries information.

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 an 11-parameter tool with no output schema, the description carries the full burden of explaining the return shape and does so field by field, including the aggregate shape under group_by. Combined with the disclosed edge cases (missing dates, missing amounts, capped totals), an agent has everything needed to call it and interpret results.

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 100%, so the baseline is 3, but the description adds meaning the schema does not: the exact row shape produced by group_by='buyer' (`wins`, `awarded_eur`, `first_award_date`, `last_award_date`), and the interaction between `exclude_menores`/date bounds and the `is_menor`/`undated_rows` counters. The pagination rule ("while the result has a `next_cursor`, pass it as `cursor` with the same other arguments") reinforces the schema's cursor note usefully.

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 ("List the awards of one company") and immediately pins the grain with an example: "ONE ROW PER AWARDED LOT (a tender won in three lots is three rows)". It also names the sibling that returns a different grain ("For one row per TENDER with its status use search_tenders(company_id=...)"), so an agent can distinguish it without opening any schema.

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?

Gives explicit prerequisites ("Find the company id with search_companies"), explicit alternatives (search_tenders for per-tender rows, group_by='buyer' for per-buyer rows), and the condition that selects each. It even explains how this tool relates to get_company.wins, leaving nothing to inference.

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