Skip to main content
Glama

Upload Case File

upload_case_file
Destructive

Attach a document to a case (invoice copy, contract, correspondence, proof of delivery). Max 25 MB. Allowed extensions: .pdf, .xls, .xlsx, .csv, .txt, .jpg, .jpeg, .png, .gif. Provide the file content base64-encoded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caseIdYesDebitura case ID (GUID)
fileNameYesFile name including extension, e.g. "invoice-1042.pdf"
contentTypeNoMIME type, e.g. "application/pdf" (inferred from extension if omitted)
descriptionNoShort description of the document
documentTypeNoOptional document category. Omit when unknown: the file is stored as Not specified (null). Choose OriginalInvoice (invoice / credit note), AccountStatement, Contract, TermsAndConditions, ProofOfDelivery, DemandLetter, Correspondence, PaymentProof, CourtDocument, IdentityDocument, or Miscellaneous (Other). Legacy names remain accepted: DebtorDocuments, CreditorDocuments, PartnerDocuments.
contentBase64YesFile content, base64-encoded

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / documentType / description
      Previous value: -"Document category (default: OriginalInvoice). Values: OriginalInvoice · DebtorDocuments · CreditorDocuments · PartnerDocuments · DemandLetter · Miscellaneous"New value: +"Optional document category. Omit when unknown: the file is stored as Not specified (null). Choose OriginalInvoice (invoice / credit note), AccountStatement, Contract, TermsAndConditions, ProofOfDelivery, DemandLetter, Correspondence, PaymentProof, CourtDocument, IdentityDocument, or Miscellaneous (Other). Legacy names remain accepted: DebtorDocuments, CreditorDocuments, PartnerDocuments."
    • changedInput schema / properties / documentType / enum
      Previous value: -[
      -  "OriginalInvoice",
      -  "DebtorDocuments",
      -  "CreditorDocuments",
      -  "PartnerDocuments",
      -  "DemandLetter",
      -  "Miscellaneous"
      -]New value: +[
      +  "OriginalInvoice",
      +  "AccountStatement",
      +  "Contract",
      +  "TermsAndConditions",
      +  "ProofOfDelivery",
      +  "Correspondence",
      +  "PaymentProof",
      +  "CourtDocument",
      +  "IdentityDocument",
      +  "DebtorDocuments",
      +  "CreditorDocuments",
      +  "PartnerDocuments",
      +  "DemandLetter",
      +  "Miscellaneous"
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent write with destructiveHint=true, so the safety profile is covered. The description contributes real behavioral context beyond that: the size ceiling, the exact extension allowlist, and that content must be base64-encoded. It still omits what happens on repeat uploads or whether the call requires case-level authorization.

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?

Three short sentences, front-loaded with purpose and followed by the binding constraints (size, extensions, encoding). Every clause carries actionable information and there is no filler.

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 write tool with annotations present and no output schema, the description covers the invocation constraints an agent needs to avoid failure. It falls short only on what the call returns (e.g., a file ID) and duplicate/replacement semantics, which matters given idempotentHint=false.

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%, so all six parameters, including the documentType enum with its legacy aliases, are already documented in the schema. The description adds nothing about caseId format, contentType inference, or the enum choices, 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?

States a specific verb (attach/upload) and resource (document to a case), and gives concrete examples of the document kinds it handles. It is clearly distinguishable from the sibling list_case_files, which only enumerates files.

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?

The description supplies hard operational constraints (25 MB cap, allowed extensions, base64 payload), which implicitly tells an agent when this call will succeed. However, it never says when to use upload_case_file versus other case-mutation siblings, nor any prerequisite such as required case state or permissions.

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.