Skip to main content
Glama
iso20022-bank-profile-mcp

iso20022-bank-profile-mcp

Validate a profile definition

validate_profile_definition
Read-onlyIdempotent

Validate candidate profile or rule-pack JSON to catch schema, syntax, and semantic errors before registering custom profiles or importing external rule packs.

Instructions

Validate a bank-supplied profile / rule-pack definition (raw JSON).

Purpose:
    Verify that a candidate clearing profile or rule-pack JSON text meets
    all schema, syntactic, and semantic requirements.

When to use:
    Use before registering new custom bank profiles or importing external
    rule packs into the engine.

When NOT to use:
    Checks profile and rule-pack JSON schemas only, not ISO 20022
    payment messages; use `lint_payload` to evaluate payment payloads.

Behavioral transparency:
    - Deterministic: Evaluates strictly according to the Pydantic profile
      schema.
    - External dependencies: None (standard JSON parsing).
    - Side effects: Pure read-only validation; does not register the profile.
    - Error states: Returns `is_valid: False` with descriptive error details
      if validation fails.

Args:
    definition_content: The candidate profile definition, as JSON text.

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": {
      "definition_content": "<definition_content>"
    },
    "name": "validate_profile_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
definition_contentYesA profile / rule-pack definition as JSON text.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.2

TDQS

A4.5/5.0
Behavior4/5

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

Goes beyond the supplied annotations by disclosing determinism, absence of external dependencies, error-state shape (`is_valid: False` with descriptive details), and crucially that validation does not register the profile. The 'pure read-only' phrase partly restates readOnlyHint/destructiveHint, so it is not purely additive, but the non-registration and error-state notes are genuinely new behavioral context.

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?

Front-loads the one-line purpose, then sections usage, exclusions, and behavior in a scannable order; every sentence carries distinct information. The verbose section labels are a minor stylistic cost but there is no filler or repetition of substance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter validator with an output schema present, the definition covers everything an agent needs: what is validated, when, what it does not cover, side effects, and failure signaling. Return-value shape can be left to the output schema, and the description correctly avoids re-documenting it.

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% and there is only one parameter, so the schema already documents `definition_content` fully. The Args entry ('candidate profile definition, as JSON text') essentially restates the schema description, adding only the 'candidate' framing and no format or encoding detail beyond it.

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 ('Validate a bank-supplied profile / rule-pack definition'), plus the concrete artifact being checked (raw JSON text). It also explicitly distinguishes itself from the nearest sibling by naming `lint_payload` as the tool for payment payloads, so an agent can differentiate without opening either schema.

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

Usage Guidelines5/5

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

Contains explicit 'When to use' (before registering custom bank profiles or importing external rule packs) and 'When NOT to use' (ISO 20022 payment messages, use `lint_payload` instead) sections. Both the positive trigger and the exclusion route the agent to the correct alternative with no inference required.

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