Skip to main content
Glama
secop-mcp

secop-mcp

by inghggw

Top awarded suppliers

top_awarded_suppliers
Read-only

Rank suppliers by awarded contract amount with filters to check if a market is open or captured before spending days on a bid.

Instructions

Who actually wins this kind of contract: ranks suppliers by awarded amount for the given filters. Use it to check whether a market is open or captured before spending days on a bid.

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": "top_awarded_suppliers"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity of the contracting entity, e.g. "Ibagué". Partial match.
limitNoSuppliers to return (default 10).
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).
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
suppliersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and an output schema covers the return shape, so the description only needs to add analytical context. It explains the ranking basis (awarded amount) and the interpretive purpose, but says nothing about how amounts are aggregated, tie-breaking, or how the 'awarded' boolean filter interacts with an awarded-amount ranking.

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 sentences, zero waste, with the core operation front-loaded and the motivating use case second. Nothing needs trimming.

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

Completeness3/5

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

For an 18-parameter aggregation tool, the description conveys what it does and why, and the output schema handles return values. However, it leaves genuinely important semantics unexplained — what 'awarded amount' aggregates to, and whether results reflect a single contract or a supplier's cumulative wins — which affects how an agent interprets and presents the ranking.

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 description coverage is 100% across all 18 parameters, so the schema carries full responsibility for parameter meaning. The description adds only the generic phrase 'for the given filters' and no syntax, defaults, or interaction guidance beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource — 'ranks suppliers by awarded amount for the given filters' — which is clearly distinct from process-oriented siblings like get_process or search_processes. It stops short of explicitly naming the alternative tools, so the differentiation is inferred from the resource rather than stated.

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

Usage Guidelines4/5

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

It gives a concrete decision context: use it to check whether a market is open or captured before investing days in a bid. That is a clear when-to-use signal, but there are no exclusions or named alternatives for cases where a different tool would be better.

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