Skip to main content
Glama

Upload a data file

upload_file

Used by the panel ask_for_file shows. Don't call it yourself.

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": {
      "app": "<app>",
      "path": "<path>",
      "size": "<size>",
      "offset": "<offset>",
      "data": "<data>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
dataYes
pathYes
sizeYes
offsetYes
uploadNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare it is a non-readonly, non-idempotent, non-destructive, closed-world write, so the safety profile is covered. The description adds the useful fact that it is driven by a UI panel, but says nothing about chunking semantics (offset/size/data) or ordering, which is the behavior an agent would most need to understand.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no filler and the prohibition is front-loaded, but the brevity is under-specification rather than disciplined conciseness — nothing about the operation itself is conveyed.

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 six-parameter, five-required write tool with no output schema and no parameter descriptions, the definition leaves nearly everything unexplained. The 'don't call it' warning partly offsets this, but an agent still cannot tell what the tool does or what the parameters mean.

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

Parameters1/5

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

Schema description coverage is 0% across six parameters (app, path, size, offset, data, upload), and the description explains none of them. In particular the offset/size/data chunking contract is entirely undocumented, so the description provides zero compensation for the schema gap.

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

Purpose2/5

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

The description does not state what the tool does (upload file content in chunks); it only says who invokes it and that the agent should not. The only real signal is carried by the name/title 'Upload a data file', which the description merely restates indirectly.

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 tells the agent NOT to call it and names the caller (the panel shown by ask_for_file), which is a decisive when-not instruction. It stops short of saying what the agent should do instead, but for a tool that should never be invoked directly the routing value is high.

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