Skip to main content
Glama

Describe a document template

describe_document_template
Read-only

What an uploaded file (.pptx, .docx, .xlsx, .csv, .json, .txt, .md, .html) can be filled with by the agent tools inspect_template / fill_template: its {{placeholders}} and every addressable slot (slide:2/shape:5, table cells r3c2 with their colours, p:12, Sheet1!B4) with its current text. Use it to write the agent's instructions. Read-only.

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": {
      "file_id": "<file_id>"
    },
    "name": "describe_document_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesId of an uploaded file of this organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/destructiveHint/openWorldHint, so the trailing "Read-only." is largely redundant. What the description does add is substantive: the supported file formats, the fact that slots carry their current text and cell colours, and the downstream tools that consume the output — all beyond structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and information-dense with no filler, but it is one long run-on sentence with nested parentheticals that is harder to parse than it needs to be, and the closing "Read-only." merely repeats the annotations. Splitting the format list and the slot examples into separate clauses would improve scanability without adding length.

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 carries the burden of explaining what comes back, and it does: placeholders and addressable slot addresses with current text. Remaining gaps are minor — output size/shape for large decks, and whether inspection is required before filling — but nothing critical for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single file_id parameter, so baseline is 3. The description adds qualifying meaning the schema lacks: which uploaded file types (.pptx, .docx, .xlsx, .csv, .json, .txt, .md, .html) are valid inputs, which materially clarifies what file_id may point at.

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+resource (describe an uploaded document template) and enumerates exactly what the description contains: {{placeholders}} plus every addressable slot with example address syntax (slide:2/shape:5, r3c2, p:12, Sheet1!B4). It also names the consuming siblings (inspect_template / fill_template), so an agent can place it in the workflow without opening a schema.

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

Usage Guidelines4/5

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

Gives clear positive guidance — run it to learn what can be filled, and "Use it to write the agent's instructions" positions it as the prerequisite step before inspect_template / fill_template. It stops short of explicit exclusions or stating when another tool (e.g. plain describe) is preferred, so it is not a full 5.

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