Skip to main content
Glama

Upload a script file

upload_script_file

Get a script file (.txt or .pdf) into Onepin for a workflow to read.

Call it with no method first: nothing is uploaded and it returns the two ways to do this for the USER to choose between. Then call again with the one they picked.

Input Schema

NameRequiredDescriptionDefault
methodNoWhich way the file gets in. Omit it to be given both options to put to the user.
contentNoThe .txt script's exact text. method=inline only, when an upload was refused.
filenameNoThe file's own name with its extension, e.g. `script.pdf`. Not needed for browser.
workflow_idNoThe workflow the file is for, from list_workflows. Required for method=browser.

Output Schema

NameRequiredDescriptionDefault
methodNo
optionsNo
filenameNo
next_stepNo
upload_idNo
size_bytesNo
upload_urlNo
console_urlNo
workflow_idNo
content_typeNo
requires_choiceNo
expires_in_secondsNo
upload_url_fallbackNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare the non-destructive, non-read-only, non-idempotent profile, and the description adds genuinely non-obvious behavior: a no-method call performs no upload and instead returns the two options for the user to pick. It still doesn't say what the second call returns or whether a follow-up step is required after the chosen method.

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

Conciseness4/5

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

Two short sentences, front-loaded with purpose and followed by the round-trip protocol; nothing is padded. The phrasing 'Get ... into' is slightly conversational where a plainer verb would be tighter, but it is not wasteful.

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?

An output schema exists so return values need no explanation, and the two-step interaction is spelled out. The remaining gap is the relationship to finish_script_upload and whether the flow truly ends after the chosen method, given the description mentions 'two ways' while the enum exposes three values.

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% and the schema already documents the method-omission semantics ('Omit it to be given both options') and the .pdf example for filename. The description's '.txt or .pdf' constraint adds only marginal meaning beyond that, so the baseline of 3 is appropriate.

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?

The description names the resource ('script file (.txt or .pdf)') and its destination ('into Onepin for a workflow to read'), which is more specific than the title alone. It does not, however, differentiate itself from near-name siblings such as finish_script_upload or list_script_files, leaving the agent to infer the boundary between them.

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?

It gives an explicit call protocol: invoke with no method first to get the options, then invoke again with the chosen method, and it names the human actor ('for the USER to choose'). It stops short of stating when this tool is appropriate versus the related finish_script_upload sibling.

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