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
documentTypeNoDocument category (default: OriginalInvoice). Values: OriginalInvoice · DebtorDocuments · CreditorDocuments · PartnerDocuments · DemandLetter · Miscellaneous
contentBase64YesFile content, base64-encoded

TDQS

A4.1/5.0
Behavior3/5

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

Annotations indicate destructiveHint=true, which the description does not contradict. The description adds file size and extension restrictions but does not explain other behavioral traits (e.g., whether duplicate filenames are handled, if the file replaces an existing one).

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 concise sentences, front-loaded with purpose, followed by constraints. No fluff, every sentence adds necessary information.

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?

The description covers purpose and constraints adequately but does not mention the return value or success/failure behavior. Given no output schema, the agent might benefit from knowing what is returned (e.g., the file ID or confirmation).

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?

With 100% schema coverage, baseline is 3. The description adds value beyond the schema by specifying the 25 MB size limit and listing allowed extensions, which are not in the schema fields. It reinforces the base64 encoding requirement.

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 description clearly states the tool's purpose: 'Attach a document to a case' with specific examples like invoice copy, contract, etc. It uses a specific verb-resource pair and is distinct from sibling tools (e.g., list_case_files).

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 description includes explicit constraints (max 25 MB, allowed extensions, base64 encoding) that guide usage. It does not explicitly mention when not to use or name alternatives, but the context makes it clear this is the sole upload tool.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a distinct resource or action—creation, preview, listing, detail, and case-specific sub-resources (activity, contracts, messages, payments, tasks, files). The potentially overlapping task tools (list_tasks vs get_case_tasks) are explicitly cross-referenced and scoped differently.

Naming Consistency5/5

Consistent verb_noun pattern throughout: create_, get_, list_, send_, upload_, preview_. Case-specific reads use get_case_* suffix pattern, and ping is the only utility exception.

Tool Count4/5

16 tools is slightly above the ideal 3-15 range, but each tool earns its place in a comprehensive case-management API; no redundant tools.

Completeness4/5

Core lifecycle is covered (preview, create, list, get, sub-resources, messaging, file upload). Minor gaps include no case update/withdraw and no direct resolution for task types like SelectQuoteWinner, but these are mostly platform-controlled or handled via solutionUrl.

Resources