Skip to main content
Glama

Generate a sample message

askiso_generate

Build a valid ISO 20022 message from templates or any published schema, so you can show what a message looks like instead of writing it from memory. Output validates and lints clean.

Instructions

Build a valid ISO 20022 message. pacs.008, pacs.009, pain.001 and camt.053 come from templates with rail-specific defaults and need nothing installed. Any other message identifier is built from its schema, which covers all 2,845 published messages and needs the user's catalogue. Use this to show someone what a message looks like rather than writing one from memory -- generated messages validate against their schema and lint clean.

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": {
      "message_type": "<message_type>"
    },
    "name": "askiso_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoThe settlement amount, for example "25000.00".
presetNoRail preset for the template types: "sepa", "target2", "chaps", "fednow", or "standard".
currencyNoAn ISO 4217 code, for example "EUR".
optionalNoSchema-built messages only: include optional elements as well as mandatory ones.
with_bahNoWrap the message in a business application header.
message_typeYesA message type or identifier: "pacs.008" for a template, or any identifier such as "seev.031.001.09" to build from the schema.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.8

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses a real precondition (non-template identifiers "need the user's catalogue"), which types require no setup, and an outcome guarantee ("generated messages validate against their schema and lint clean"). It stops short of saying whether anything is persisted or what the response body looks like, which matters for a generator with no output schema.

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?

The core action and the template/schema split are front-loaded in the opening sentence, and the remainder is a justification with a concrete payoff (validates and lints clean). No filler, no restated title.

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?

For a six-parameter, dual-mode generation tool with no output schema and no annotations, the description covers preconditions, mode selection, and output quality guarantees. The only gap is the shape of the return value — whether the agent gets raw XML, a summary, or a file reference.

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%, so every parameter is already documented, and the description's scoping hints (preset for template types, optional for schema-built, with_bah wrapping) largely restate the schema text. The one added nuance is the message_type duality between a template name and a full identifier, which the schema also states. Baseline 3 applies.

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 and resource ("Build a valid ISO 20022 message") and immediately splits the behavior into two concrete modes: template types (pacs.008, pacs.009, pain.001, camt.053) versus schema-built identifiers. An agent can tell exactly what the tool produces and which path its input will take.

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 a clear usage rationale ("show someone what a message looks like rather than writing one from memory") and an implicit when-to-use rule via the template-versus-schema split. It does not name sibling tools such as askiso_validate or askiso_convert or state when not to use this one, so it stops short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.