Skip to main content
Glama

FlowAPI

upload_file

Upload a reference file (base64, up to 20 MB) for a later job.

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": {
      "filename": "<filename>",
      "media_type": "<media_type>",
      "data_base64": "<data_base64>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
media_typeYes
data_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, closed-world behavior, so the safety profile is covered. The description adds the size ceiling and encoding requirement, which are real operational constraints, but says nothing about what is returned (a file reference/id), how that reference is consumed later, or that repeated uploads create new objects (consistent with idempotentHint=false).

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?

A single front-loaded sentence with zero filler; the encoding and size constraint appear before the workflow hint. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-required-parameter mutation with no output schema and no parameter descriptions, the definition is thin: the return value (file reference) and its use in the subsequent job are never explained, and two of three parameters are undocumented. The size/encoding note is the only compensating detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the meaning of all three required parameters. It only partially documents data_base64 ('base64', 'up to 20 MB') and is ambiguous about whether 20 MB is the raw or encoded size, while filename and media_type (MIME format expectations, extension rules) get no explanation at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb (upload) plus resource (reference file) with two concrete qualifiers: base64 encoding and a 20 MB cap. It is unambiguous what the tool does, though it does not distinguish itself from siblings (none of the listed siblings appear related, so the omission is minor).

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 phrase 'for a later job' implies this is a preparatory step whose output feeds another tool, which is useful implied guidance. It stops short of stating prerequisites (auth, quota, supported media types) or when not to use it, leaving the agent to infer the workflow.

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