Skip to main content
Glama

get_upload_url

Internal: called by the show_upload_widget widget. Do not call directly, use show_upload_widget instead.

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>",
      "contentType": "<contentType>",
      "size": "<size>"
    },
    "name": "get_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYes
filenameYes
contentTypeYes

Output Schema

NameRequiredDescriptionDefault
filePathYes
uploadUrlYesPUT the raw file bytes here, then call confirm_upload

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations mark this as non-read-only and non-destructive with no open-world access, implying a mutating side effect (likely registering a pending upload) that the description never mentions. It does add genuinely useful context beyond annotations by revealing the tool is internal and driven by a widget, but says nothing about URL expiry, permissions, or the resulting side effect.

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 short sentences, front-loaded with the internal-only constraint and immediately followed by the redirect. Nothing is redundant.

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

Completeness3/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 redirect covers the main decision an agent must make. However, for a mutating tool with three undocumented parameters, the description leaves out the mechanics and consequences that would make it fully self-explanatory.

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% and the description says nothing about filename, contentType, or size. The 50 MB maximum and media-type enum live only in the schema, and the description adds no meaning on top of them.

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

Purpose3/5

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

The description never states what the tool actually does (presumably mint a signed upload URL); it only declares the tool internal and delegates to show_upload_widget. The routing role is clear, but the verb+resource is left to the name.

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?

It gives an explicit prohibition ('Do not call directly') and names the exact alternative ('use show_upload_widget instead'), so an agent knows both when not to use it and where to go.

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