Skip to main content
Glama

List example corpus files

list_corpus_files
Read-onlyIdempotent

List pain001's ready-made ISO 20022 example files to discover scenario, version, and variant identifiers for validation or retrieval; filter by market, country, or message type.

Instructions

List the example files pain001 ships: market scenarios and coverage sets.

Use this to discover the ``scenario_id``, ``version``, and ``variant``
identifiers of the ready-made, validated ISO 20022 files ``pain001``
ships; ``get_corpus_file`` and ``get_corpus_provenance`` accept those
identifiers. Market files are realistic payments per country and rail
(``scenario_id`` like ``gb.chaps.property-purchase``); a ``variant``
names the bank overlay a file was built with. Coverage files exercise
every element and choice branch of one message type and carry no
scenario.

Delegates to :func:`pain001.corpus.list_files`.

Args:
    kind: ``market``, ``coverage`` or ``None`` for both.
    country: Optional two-letter country filter for market files.
    version: Optional message-type filter.

Returns:
    ``{"count", "files": [{"kind", "scenario_id", "version", "country",
    "family", "variant", "file"}, ...]}``, or ``{"error": ...}`` when
    the installed pain001 has no corpus.

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": "list_corpus_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo'market' for the realistic per-country scenarios, 'coverage' for the schema coverage sets, or omit for both.
countryNoTwo-letter country code to keep one market pack only, e.g. 'GB' or 'CH'. Ignored for coverage files.
versionNoKeep only files of this message type, e.g. 'pain.001.001.09'.

Output Schema

NameRequiredDescriptionDefault
countNo
errorNo
filesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.0.71
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "CorpusFileEntry": {
      +      "description": "One file of the example corpus, as the index lists it.\n\nMarket files name a scenario, a country and a rail family; coverage\nfiles carry the edition only, so those three are null for them.",
      +      "properties": {
      +        "country": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "title": "Country"
      +        },
      +        "family": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "title": "Family"
      +        },
      +        "file": {
      +          "title": "File",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "title": "Kind",
      +          "type": "string"
      +        },
      +        "scenario_id": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "title": "Scenario Id"
      +        },
      +        "variant": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "title": "Variant"
      +        },
      +        "version": {
      +          "title": "Version",
      +          "type": "string"
      +        }
      +      },
      +      "title": "CorpusFileEntry",
      +      "type": "object"
      +    }
      +  },
      +  "description": "The example corpus index.",
      +  "properties": {
      +    "count": {
      +      "title": "Count",
      +      "type": "integer"
      +    },
      +    "error": {
      +      "title": "Error",
      +      "type": "string"
      +    },
      +    "files": {
      +      "items": {
      +        "$ref": "#/$defs/CorpusFileEntry"
      +      },
      +      "title": "Files",
      +      "type": "array"
      +    }
      +  },
      +  "title": "CorpusListResult",
      +  "type": "object"
      +}
  2. Addedv0.0.67

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already establish the safe, read-only, idempotent, closed-world profile, and the description still adds non-obvious behavior: the underlying delegate (pain001.corpus.list_files) and an error result when the installed pain001 has no corpus. It also clarifies that country filtering applies only to market files while coverage files carry no scenario, which shapes how results should be interpreted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening purpose sentence and the market/coverage explanation are well front-loaded and earn their place. However, the Args section duplicates a fully documented schema and the Returns section duplicates an existing output schema, adding length without new information.

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 zero-required-parameter listing tool whose annotations and output schema are already rich, the description covers purpose, filter behavior, identifier semantics, and the no-corpus error case. The only shortfall is redundancy in restating the schema and return shape rather than adding further context.

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 the baseline is 3. The Args block largely restates the schema definitions; the only real additions are the identifier format example (gb.chaps.property-purchase) and the meaning of variant as a bank overlay, which is more about result interpretation than parameter usage.

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 ("List the example files pain001 ships") and immediately distinguishes the two contents, market scenarios versus coverage sets. It also names the sibling tools that consume the returned identifiers, so an agent can tell this apart from get_corpus_file and get_corpus_provenance 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 Guidelines4/5

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

"Use this to discover the scenario_id, version, and variant identifiers ... get_corpus_file and get_corpus_provenance accept those identifiers" gives explicit when-to-use guidance and positions this as the entry point of a workflow. It lacks an explicit when-not statement, but the list-versus-get split is clear from context.

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