Find and inspect message templates
Start with the template library when you need to reuse existing copy or understand what values a template expects.
Find published English SMS templates used for shipping. Show their names, IDs, versions, and required variables. Then let me choose one and show its editable template copy and full variable contract. Do not reveal stored default variable values.
The agent calls list_message_templates with the requested status, channel, purpose, or locale. List results omit template bodies and default values. After you choose a result, get_message_template returns its editable content and variable metadata while continuing to omit default values and email header values.
Sample response
Published shipping template
One matching SMS template was selected from the reusable library.
- Template
- Order shipped tmpl_example_shipped
- Status
- Published
- Version
- 3
- Locale
- en-GH
Variable contract
| Variable | Type | Required | Purpose |
|---|---|---|---|
| customer_name | string | Yes | Customer display name |
| order_number | string | Yes | Merchant-facing order number |
| tracking_url | url | Yes | Shipment tracking page |
Template copy: “Hi {{customer_name}}, order {{order_number}} has shipped. Track it at {{tracking_url}}.”
Illustrative values. The exact presentation depends on the MCP client.
Finding a template does not preview, publish, or send it. Use the dedicated lifecycle workflow for the next action.