Skip to main content
Glama

Enviar un documento al caso

upload_document

Sends one of the person's documents to their open case: PDF, JPG or PNG, up to 10 MB (photos up to 5 MB), as base64 or a public https URL. Needs the case_id and the access code from the email Ervon sent the person (ask them for it). The document goes where the person's own upload goes and is read the same way; the answer says what Ervon read and what is still missing. A historia laboral Colpensiones emailed is locked with the cédula: send it in "cedula". Never send a photo of the cédula: it is biometric data with its own authorization, which the person gives only on their link.

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": {
      "case_id": "<case_id>",
      "access_code": "<access_code>",
      "document_type": "<document_type>"
    },
    "name": "upload_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoAlternatively, a public https URL to download the file from.
cedulaNoThe cédula that opens a locked Colpensiones PDF.
case_idYes
filenameNo
access_codeYesThe code from Ervon's email, e.g. "ABCD-2345".
document_typeYesWhat the document is.
content_base64NoThe file in base64 (a data: URL is also accepted).

Output Schema

NameRequiredDescriptionDefault
kindNo
textYes
usedNo
lockedNo
receivedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) the description discloses accepted formats, size ceilings, base64-vs-URL transport, that the document lands in the same pipeline as the person's own upload, and that the reply reports what was read and what is missing. What it does not address is the non-idempotent flag: it never says whether re-sending the same file creates a duplicate entry or replaces the prior one.

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?

The critical constraint (what the tool does, formats, size) is front-loaded, and the security warning about the cédula photo closes it. The opening sentence is overloaded with stacked parentheticals ('up to 10 MB (photos up to 5 MB), as base64 or a public https URL'), which slightly hurts scannability.

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?

For a 7-parameter mutation with an output schema already describing the response, the description covers formats, transport, authentication, and a sensitive-data prohibition, so an agent could call it correctly. The remaining gap is duplicate/resend behavior against a non-idempotent tool.

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 71%, and the description adds real meaning on top: it explains that 'cedula' is the password for a locked Colpensiones historia laboral, and it clarifies that content_base64 and url are alternative ways to supply the same file. It does not help with choosing among the twelve document_type enum values for ambiguous cases.

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?

The first sentence names a specific verb and resource ('Sends one of the person's documents to their open case') and immediately bounds it with formats and size limits. No sibling (case_status, list_services, start_case) could be confused with this operation.

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

Usage Guidelines5/5

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

It states the preconditions explicitly (case_id plus the access code from Ervon's email, and tells the agent to ask the person for it) and gives a hard when-not: never send a photo of the cédula because it is biometric data needing separate authorization. It also routes the locked Colpensiones case to the 'cedula' field rather than a file upload.

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