Skip to main content
Glama
secop-mcp

secop-mcp

by inghggw

Summarize procurement by a field

summarize_procurement
Read-only

Group 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

NameRequiredDescriptionDefault
cityNoCity of the contracting entity, e.g. "Ibagué". Partial match.
limitNoGroups to return (default 10, max 50).
stateNoProcess state, e.g. "Publicado", "Adjudicado". Partial match.
entityNoName of the contracting entity. Partial match.
unspscNoUNSPSC category code. Accepts "82141500", "V1.82141500" or a shorter family like "8214" (prefix match).
awardedNotrue = only awarded processes, false = only not-yet-awarded.
keywordNoFull-text search across the whole record (title, description, entity).
group_byYesColumn to group by.
modalityNoProcurement modality, e.g. "Licitación", "Contratación directa". Partial match.
last_daysNoShorthand for published_since = today minus N days.
open_onlyNoOnly processes whose opening state is "Abierto".
departmentNoDepartment of the contracting entity, e.g. "Tolima". Partial match.
entity_nitNoExact NIT of the contracting entity, digits only.
contract_typeNoContract type, e.g. "Prestación de servicios", "Obra". Partial match.
max_value_copNoMaximum estimated budget in COP.
min_value_copNoMinimum estimated budget in COP.
include_draftsNoInclude processes in "Borrador" state. Off by default: drafts were never offered to the market.
published_sinceNoOnly processes published on or after this date (YYYY-MM-DD).
published_untilNoOnly processes published on or before this date (YYYY-MM-DD).

Output Schema

NameRequiredDescriptionDefault
groupsYes
group_byYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavioral value by disclosing what the aggregate returns (per-group counts and budget totals) and that filters narrow the grouping population ('matching processes'). It stops short of noting the group cap or how limit interacts with ranking, though the schema covers limit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the first defines the operation and its return value, the second the use case. No filler and the core operation is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a full-coverage schema, an output schema, and read-only annotations already supplied, the description only needs to frame aggregation semantics and the business purpose, which it does. A note on how groups are ordered or capped relative to limit would make it fully complete for a 19-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every filter and the group_by enum are already documented. The parenthetical English examples ('entity, department, modality, category, supplier...') loosely map concepts to the Spanish enum values, which is mildly useful but adds little beyond the schema's own descriptions.

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 aggregation verb and resource ('Group matching processes by a field') plus the exact output shape ('how many processes and how much budget each group holds'). The aggregation framing distinguishes it from the list-oriented siblings search_processes and get_process without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use it to size a market before bidding' gives one concrete scenario, which implies usage but does not state when to prefer it over search_processes or when it is unsuitable. No exclusions or prerequisites are offered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.