Skip to main content
Glama

Upload Word template

template_upload

Upload and convert a Word .docx file to a template. File must be base64 encoded. Legacy .doc files are not supported; save them as .docx first.

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>",
      "fileData": "<fileData>"
    },
    "name": "template_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileDataYes
filenameYes

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 already declare this as a non-readOnly, non-idempotent, non-destructive, closed-world write, so the safety profile is covered. The description adds genuine context beyond that: the input must be base64 and legacy .doc is rejected, implying a conversion step on the server. It stops short of saying what happens on filename collision, whether an existing template is replaced, or what the caller gets back.

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?

Three compact sentences, front-loaded with the action, followed by the encoding requirement and the format restriction. No filler and no repetition of the title.

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?

For a two-parameter upload with no output schema and explicit annotations, the description covers the essentials of how to send the bytes. It is still incomplete on size limits, failure modes for malformed base64, and the filename's meaning, which matter for a conversion tool where bad input is a common failure.

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 0%, so the description must carry the parameter meaning. It documents fileData well (base64-encoded .docx) but says nothing about filename — whether it needs the .docx extension, whether it becomes the template name, or whether it must be unique.

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 compound action (upload and convert) on a specific resource (a Word .docx file, becoming a template). An agent can tell this is the file-based way to get a template in. It does not, however, contrast itself with the sibling template_create, so the boundary between the two creation paths must be inferred.

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 description gives hard prerequisites ('File must be base64 encoded', '.docx only, convert .doc first'), which is real usage guidance. What it lacks is the routing statement: nothing says when to pick template_upload over template_create or template_update, which is the main ambiguity given the sibling list.

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.