Skip to main content
Glama

QRCodeKIT

Create File Upload Session

create_file_upload_session

Widget-only helper: mint a one-time upload session so the file upload form can send the selected file to QRCodeKIT without exposing credentials. Not intended for direct use; prefer 'Upload a File → Get a Link & QR'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesOriginal filename of the selected file.
typologyYesUse 'file' for an arbitrary file or 'pdf' for a PDF.
mime_typeNoMIME type reported by the browser for the selected file.
size_bytesYesSize of the selected file in bytes. Must be at most 50 MB.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodNoHTTP method the widget must use for the upload.POST
max_bytesYesMaximum accepted upload size in bytes.
expires_atYesISO-8601 timestamp when the session expires.
field_nameNoMultipart field name for the uploaded file.file
session_idYesOpaque backend upload-session identifier.
upload_urlYesSingle-use URL the widget posts the file to (multipart form data).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover mutation (readOnlyHint=false) and non-idempotency, and the description adds valuable context about the session being one-time and avoiding credential exposure. It goes beyond the structured annotations without contradicting them, though it doesn't detail session lifecycle or auth requirements.

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?

Two sentences with no filler: the first identifies the tool's purpose and constraint, the second gives routing guidance. Information is front-loaded and every clause earns its place.

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?

With fully documented parameters and an output schema present, the description covers the remaining essential context: what the session is for, that it is one-time, that it hides credentials, and that it is not meant for direct user invocation. Nothing critical is missing for an agent to decide whether to call this tool.

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%, so the schema fully documents all parameters including filename, size_bytes, typology, and mime_type. The description adds no parameter-specific detail beyond the schema, so the baseline of 3 applies.

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 states a specific action ('mint a one-time upload session') and a clear resource/session type, while explaining its role in enabling the file upload form to send files without exposing credentials. It also distinguishes itself from user-facing tools by being labeled a 'Widget-only helper' and a non-direct-use utility.

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 says this is 'not intended for direct use' and directs the agent to prefer 'Upload a File → Get a Link & QR' instead. This provides clear when-not-to-use guidance and names the preferred alternative.

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