Summarize procurement by a field
summarize_procurementGroup public procurement processes by entity, department, modality, category or supplier to compare process counts and budget per group, helping you size a market before bidding.
Instructions
Group matching processes by a field (entity, department, modality, category, supplier...) and return how many processes and how much budget each group holds. Use it to size a market before bidding.
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": {
"group_by": "<group_by>"
},
"name": "summarize_procurement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City of the contracting entity, e.g. "Ibagué". Partial match. | |
| limit | No | Groups to return (default 10, max 50). | |
| state | No | Process state, e.g. "Publicado", "Adjudicado". Partial match. | |
| entity | No | Name of the contracting entity. Partial match. | |
| unspsc | No | UNSPSC category code. Accepts "82141500", "V1.82141500" or a shorter family like "8214" (prefix match). | |
| awarded | No | true = only awarded processes, false = only not-yet-awarded. | |
| keyword | No | Full-text search across the whole record (title, description, entity). | |
| group_by | Yes | Column to group by. | |
| modality | No | Procurement modality, e.g. "Licitación", "Contratación directa". Partial match. | |
| last_days | No | Shorthand for published_since = today minus N days. | |
| open_only | No | Only processes whose opening state is "Abierto". | |
| department | No | Department of the contracting entity, e.g. "Tolima". Partial match. | |
| entity_nit | No | Exact NIT of the contracting entity, digits only. | |
| contract_type | No | Contract type, e.g. "Prestación de servicios", "Obra". Partial match. | |
| max_value_cop | No | Maximum estimated budget in COP. | |
| min_value_cop | No | Minimum estimated budget in COP. | |
| include_drafts | No | Include processes in "Borrador" state. Off by default: drafts were never offered to the market. | |
| published_since | No | Only processes published on or after this date (YYYY-MM-DD). | |
| published_until | No | Only processes published on or before this date (YYYY-MM-DD). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | Yes | ||
| group_by | Yes |