Skip to main content
Glama

Ver el expediente OCDS de un contrato SERCOP

get_contrato_info
Read-only

Retrieve the full OCDS procurement record for one SERCOP process by its ocid, including buyer, tender, awards, and contracts as a text summary or JSON.

Instructions

Full OCDS record of one SERCOP procurement process (ocid from search_contratos): buyer, tender, awards, contracts.

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": {
      "ocid": "<ocid>"
    },
    "name": "get_contrato_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
ocidYesOpen Contracting ID, e.g. "ocds-5wno2w-001-LICO-GPLR-2020-2805"
formatNotext summary (default) or json structured result.text

Output Schema

NameRequiredDescriptionDefault
sourceNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changedv0.10.0
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / ocid / description
      Added value: +"Open Contracting ID, e.g. \"ocds-5wno2w-001-LICO-GPLR-2020-2805\""
  4. Changed4 schema fields changedv0.8.14
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / ocid / title
      Removed value: -"Ocid"
    • removedInput schema / title
      Removed value: -"get_contrato_infoArguments"
    • removedOutput schema / title
      Removed value: -"get_contrato_infoDictOutput"
  5. First observedv0.8.12

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety and external-data reach are covered structurally. The description adds only the scope of the payload (buyer, tender, awards, contracts); it says nothing about response size, latency, or whether a missing ocid errors versus returns empty, which is the kind of detail that would earn a higher score here.

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

Conciseness3/5

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

Basically one dense sentence, front-loads what the tool returns (the reason to call it) before the identifier provenance. No wasted wording, but the description is very short (~17 words) and gives no fallback instruction if the ocid is wrong or the record is absent. It's efficient, though borderline terse for a multi-section record.

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?

An output schema exists, so the description need not enumerate return fields, and it correctly spends its words on identity and payload scope instead. For a simple two-parameter read tool with full annotation coverage, the only real gap is the absence of any note about behavior when an ocid is not found.

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%: the ocid parameter carries a concrete example and the format enum documents 'text' vs 'json' with a default. The description adds provenance for ocid (it comes from search_contratos) but no syntax or validation detail beyond the schema, so the baseline of 3 applies.

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?

Names a specific resource (the full OCDS record of one SERCOP procurement process) and enumerates the sections returned: buyer, tender, awards, contracts. It also distinguishes itself from the sibling search_contratos by identifying that tool as the source of the ocid, so an agent can tell lookup-by-id apart from search without inspecting either schema.

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?

The parenthetical '(ocid from search_contratos)' encodes the workflow: run search_contratos first, then call this with a resulting ocid. That is clear context for when to use it, but there is no explicit when-not guidance (e.g., what to do for a partial view or when the ocid is unknown).

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

Deploy Server

Other Tools