Skip to main content
Glama

preview_template

Read-only

Preview a template with sample data before saving, as a sub-account would send it. Shows how the message will look with placeholder variables filled in.

ACCESS: needs a Proof account. Authenticate this client (Claude Code: /mcp → Authenticate), then call this tool again. start_login does NOT open this tool.

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": {
      "channel": "<channel>",
      "message_type": "<message_type>",
      "body": "<body>"
    },
    "name": "preview_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesTemplate body text
channelYesMessage channel
subjectNoEmail subject line
profile_idNoThe sub-account to act on; omitted → your key's sub-account, or the primary sub-account for an account-wide key
button_textNoButton text
message_typeYesMessage type (verification_refused is sent on Telegram and WhatsApp only)
button_url_templateNoButton URL template

Output Schema

NameRequiredDescriptionDefault
previewNo
is_validNo
warningsNoWhat a save would warn about; never makes `is_valid` false. Always sent; absent from an API that predates it.
validation_errorsNoWhat a save would refuse.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / message_type / description
      Previous value: -"Message type"New value: +"Message type (verification_refused is sent on Telegram and WhatsApp only)"
    • changedInput schema / properties / message_type / enum
      Previous value: -[
      -  "verification_request",
      -  "verification_success",
      -  "verification_expired",
      -  "login_request",
      -  "login_success",
      -  "2fa_request",
      -  "2fa_success"
      -]New value: +[
      +  "verification_request",
      +  "verification_success",
      +  "verification_expired",
      +  "verification_refused",
      +  "login_request",
      +  "login_success",
      +  "2fa_request",
      +  "2fa_success",
      +  "account_deletion_request",
      +  "account_deletion_success",
      +  "confirmation_request",
      +  "confirmation_approved",
      +  "confirmation_denied"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / profile_id / description
      Previous value: -"The sub-account (project) to act on; omitted → your key's project, or the primary project for an account-wide key"New value: +"The sub-account to act on; omitted → your key's sub-account, or the primary sub-account for an account-wide key"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "is_valid": {},
      +    "preview": {},
      +    "validation_errors": {
      +      "description": "What a save would refuse."
      +    },
      +    "warnings": {
      +      "description": "What a save would warn about; never makes `is_valid` false. Always sent; absent from an API that predates it."
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Changed1 schema field changed
    • addedInput schema / properties / profile_id
      Added value: +{
      +  "description": "The sub-account (project) to act on; omitted → your key's project, or the primary project for an account-wide key",
      +  "pattern": "^[0-9a-fA-F]{24}$",
      +  "type": "string"
      +}
  5. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description is consistent with that by framing the operation as a preview that precedes saving. It adds real behavioral context beyond the annotations: the Proof-account authentication requirement and the explicit caveat that re-calling after start_login is required. It does not disclose rate limits or whether previews are logged.

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?

Front-loaded with the core action in the first sentence and the rendering behavior second; the auth block is separated and actionable. Slightly verbose in the authentication aside, but nothing is wasted.

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?

Output schema exists, so return values need no explanation, and the seven parameters are fully described in the schema. The remaining gap is sibling differentiation against render_template, but authentication and preview semantics are covered adequately for a read-only tool.

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 every parameter including the enums and profile_id fallback resolution is already documented in the schema. The description only gestures at sample data and sub-account context without adding format or constraint detail, so baseline 3 applies.

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: preview a template with sample data, rendered as a sub-account would send it, with placeholder variables filled in. That is more than a restatement of the name, though it does not explicitly distinguish itself from the sibling render_template, which sounds closely related.

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?

"before saving" implies the timing (drafting stage), and the access note usefully warns that start_login will not unlock this tool. However, there is no explicit when-to-use-this-vs-render_template guidance, and no stated preconditions beyond having a Proof account.

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.