Skip to main content
Glama

Read tender documents

get_tender_documents
Read-onlyIdempotent

Lists the documents of a Prozorro tender or returns their extracted text.

Without document_ids it returns the document list (title, type, format, date) at no cost. With document_ids it downloads up to 3 files and returns the requested text page of each. Supported formats: PDF, DOCX, DOC, XLSX, XLS, ODT, RTF, HTML, TXT, ZIP archives and e-signed .p7s files (the signed content and the signer are extracted). Scans without a text layer are flagged needs_ocr. Each document opened for the first time in 30 days counts towards the monthly Documents limit.

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": {
      "tender": "<tender>"
    },
    "name": "get_tender_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoText page (about 12,000 characters each)
tenderYesTender id UA-..., internal id or prozorro.gov.ua link
document_idsNoIds of up to 3 documents to extract; omit to list the documents only

Output Schema

NameRequiredDescriptionDefault
urlYes
documentsYes
extractedNo
tender_idYes
charged_documentsNoDocuments counted towards the monthly Documents limit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: discloses the free-vs-metered distinction, the 3-file cap, the 30-day first-open counting rule against a monthly quota, the supported format list, special handling of .p7s (signed content plus signer), and the needs_ocr flag for scans without a text layer. These are exactly the operational traits an agent needs before spending quota.

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-loads the dual behavior in the first sentence, then layers cost, formats and edge cases. Dense but every sentence carries information; the format enumeration is long but justified given extraction scope.

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?

With an output schema and full annotation coverage already present, the description adds the remaining decision-critical context: cost model, quota accounting, file cap, format coverage and OCR caveat. Nothing needed to invoke it correctly is missing.

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; the description earns extra by explaining that page selects which text page of each extracted document is returned and that omission of document_ids switches the tool into list mode. The 12,000-character page size is left to the schema, which is fine.

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 ('Lists the documents of a Prozorro tender or returns their extracted text') and immediately frames the two operating modes. An agent can distinguish this from get_tender (metadata) and document-search tools without opening the 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?

Explicitly states the selection rule: omit document_ids to get the free listing, supply them to download and extract text. It also notes the cost implication (free listing vs. counting against the monthly Documents limit), which drives tool-choice decisions. It does not name a sibling alternative, but the mode split itself is unambiguous.

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