Skip to main content
Glama

Get template

get_template
Read-onlyIdempotent

Get a template by id or alias.

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_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoTemplate id (tpl_…)
aliasNoPublished alias (alternative to id)

Output Schema

NameRequiredDescriptionDefault
templateYesThe template

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / template / properties / category / description
      Previous value: -"transactional or product"New value: +"Deprecated and ignored: Groundmail decides the category from the published content"
  2. Changed1 schema field changed
    • addedOutput schema / properties / template / properties / sender_id
      Added value: +{
      +  "description": "Sender the template goes out as when a send sets neither from nor sender; null uses the default sender",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / template / properties / folder
      Added value: +{
      +  "description": "Folder the template is filed in, or null",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / template / properties / category / description
      Previous value: -"transactional, product or newsletter"New value: +"transactional or product"
  5. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds nothing beyond that — no mention of what happens when an unknown id/alias is supplied, whether an unpublished alias resolves, or any auth requirement.

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 wasted words. It is arguably too terse for the tool's decision points, but it is structurally clean and easy to scan.

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, so return values need not be described, and the operation is a simple read. However, the description leaves the id-vs-alias selection rule and failure behavior unaddressed, which matters given both parameters are optional.

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% and both parameters are documented in the schema, including the tpl_ prefix and 'alternative to id'. The description's 'by id or alias' merely restates the schema and does not clarify that at least one of the two (both optional) must be provided.

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 resource ('Get a template') plus the two lookup keys (id or alias). It is unambiguous and does not overlap with the resource-specific siblings like get_batch or get_brand, though it never explicitly distinguishes itself from them.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus create_template or publish_template, nor any note on prerequisites such as needing a published alias for the alias path. Usage must be inferred entirely from the name.

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.