Skip to main content
Glama

get_document_template

Read-only

One template with its body, its named assets and the placeholders it contains. Required: template_id or key. Optional: with_body (default true — pass false when you only need to know what it expects; a template body with images inlined is megabytes).

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": "get_document_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoTemplate key (alternative to template_id)
with_bodyNoInclude the template body (default true); false returns only what it expects
template_idNoID of the template to read

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / key / description
      Added value: +"Template key (alternative to template_id)"
    • addedInput schema / properties / template_id / description
      Added value: +"ID of the template to read"
    • addedInput schema / properties / with_body / description
      Added value: +"Include the template body (default true); false returns only what it expects"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context the annotations cannot: the payload can be 'megabytes' when images are inlined, and the constraint that one of template_id or key is required even though the schema lists no required fields.

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 required/optional split is front-loaded and the rationale for with_body=false is compressed into a single parenthetical that earns its space.

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 return-shape burden and does name the three returned components (body, assets, placeholders), though it does not describe their structure. The required-parameter clarification and payload warning cover the main invocation risks for a 3-parameter read tool.

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%, so baseline is 3, but the description adds meaning: it explains the practical cost of with_body defaulting to true and frames template_id and key as alternatives to satisfy the same requirement. That is guidance beyond the field-level text.

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 resource and scope: 'One template with its body, its named assets and the placeholders it contains.' The singular 'one template' implicitly contrasts with list_document_templates, but no sibling is named explicitly. An agent still knows exactly what it retrieves.

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 context on when to use it: pass with_body=false 'when you only need to know what it expects', which is an explicit conditional. It does not name alternatives such as render_document_template or list_document_templates, so routing vs siblings remains implied rather than stated.

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.