Skip to main content
Glama

Upload local file

upload_file

stdio MCP only: read a local path, upload it to NexDoc, and return a ready file_id. Use this instead of asset_files for large photos. Then pass file_ids to create_design or update_design. Remote/OAuth MCP cannot read the client's disk — use request_file_upload and PUT instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the file on this machine

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriNo
statusYes
file_idYes
filenameNo
next_stepNo
created_atNo
size_bytesNo
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

The description discloses that this tool reads from the client's disk, which is a key behavioral trait not fully captured by annotations. It also notes the limitation that Remote/OAuth MCP cannot read the client's disk. However, it doesn't detail side effects or error conditions, but the annotations already indicate non-read-only and non-destructive.

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?

The description is concise and front-loaded with the core action, then provides usage guidance and alternatives. Every sentence adds value, and the structure is logical: action, use case, workflow, and limitation.

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

Completeness5/5

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

Given the tool's simplicity (one parameter, clear output schema), the description covers all necessary context: what it does, when to use it, what to do with the result, and the limitation of remote MCP. The output schema exists, so return values are already documented.

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?

The schema already provides 100% coverage for the single parameter 'path' with a clear description. The tool description adds context about the path being on the local machine, which reinforces the schema. Since schema coverage is high, the baseline is 3, and the added context about local path usage justifies a 4.

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 function: read a local path, upload it to NexDoc, and return a file_id. It distinguishes itself from sibling tools like asset_files and request_file_upload, making its purpose unambiguous.

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?

The description explicitly states when to use this tool (stdio MCP, large photos) and when not to (Remote/OAuth MCP), and names the alternative (request_file_upload and PUT). It also provides a clear workflow: pass file_ids to create_design or update_design.

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