Skip to main content
Glama

Quarterslot

Convert to Word (.docx)

convert_to_docx

Convert Markdown or HTML to a Word document with real heading styles, lists, tables, code blocks and links. ($0.002) Returns the file as an embedded resource (base64).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "convert_to_docx"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoHTML fragment or full document (send this or markdown)
titleNoDocument title; also used for the file name
markdownNoGitHub-flavored Markdown (send this or html)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose two things an agent cannot infer: the $0.002 cost and that the result is returned as an embedded resource in base64. It does not cover input size limits, failure modes, or whether conversion is idempotent, but the core behavioral facts are present.

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, no filler. The capability sentence comes first, followed by the cost and return shape, which is the right order for an agent deciding whether to call it.

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?

With no output schema, the description usefully explains that the output is a base64 embedded resource, and the cost note fills another gap annotations would otherwise cover. It stops short of noting limits on input size or how errors surface, which matters for a paid conversion call.

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 already explains html, markdown, and title, including the either/or relationship. The description adds no new parameter meaning beyond what the schema states, so baseline 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?

States a specific verb (convert), both accepted source formats (Markdown or HTML), and the target (Word document), plus what fidelity is preserved (heading styles, lists, tables, code blocks, links). This clearly separates it from convert_to_pdf and convert_to_pptx by output format.

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 surrounding tool set implies this is the .docx branch of a conversion family, but the description never says when to pick it over convert_to_pdf or convert_to_pptx, nor does it state exclusions such as unsupported input. Usage is only implied by the output format.

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