Skip to main content
Glama

Yuppsy

template_builder_upload_file

Destructive

Upload a nonempty file to an editable template; an existing file may be replaced.

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": {
      "headId": "<headId>",
      "path": "<path>",
      "fileName": "<fileName>",
      "fileData": "<fileData>"
    },
    "name": "template_builder_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDestination folder path relative to the template.
headIdYesTemplate head ID.
fileDataYesBase64-encoded file contents.
fileNameYesName of the uploaded file.

Output Schema

NameRequiredDescriptionDefault
dataNoOperation-specific data, including any result returned on failure.
errorNo
statusNoManager outcome when returned by the operation.
successNo
statusCodeNo
errorDetailsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description usefully confirms the overwrite path ('an existing file may be replaced') plus a nonempty-content constraint. It stops short of size limits, whether the destination folder must already exist, partial-failure behavior, or any authentication/editable-state requirements.

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?

A single front-loaded sentence with no filler, using the semicolon to separate the create and replace cases. It is close to optimally short, though the extreme brevity leaves behavioral questions unanswered rather than structured.

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 and the input schema is fully documented, so the description needn't explain returns. However, for a destructive write tool it should say more about what gets overwritten, whether replacement is recoverable, and whether the destination path must pre-exist.

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 coverage is 100% with per-parameter descriptions, so the baseline is 3. The description only adds the 'nonempty' constraint on fileData and the editable-template framing for headId; it adds nothing about path semantics (relative folder, must it exist?) or fileName collision rules.

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?

States a specific verb and object ('Upload a nonempty file'), names the target resource ('an editable template'), and adds the replace variant. It is clear in isolation, but it never distinguishes itself from siblings like template_builder_save_item or get_item_content, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'editable template' implicitly signals a prerequisite and 'an existing file may be replaced' implies overwrite usage, but there is no explicit when-to-use, when-not-to-use, or named alternative. The agent is left to infer where upload fits relative to save_item.

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