Skip to main content
Glama

Export a roster as text

export_roster
Read-onlyIdempotent

Writes a roster as the site's text export, the official app's layout that tournament organizers and other list builders read, without saving it or needing an account. Takes the shape save_roster takes, such as import_roster's draft or get_my_roster's roster. text is the export; code is a Praetorium exchange code that carries the exact list into Praetorium, or null when the list is too large for one. omittedUnitCount counts entries the current army data no longer prices, which the text leaves out. omittedSelectionCount counts the saved detachments and options of printed units that the current army data no longer offers, which the text also leaves out. An empty name exports the title Praetorium generates from the army. Fails while the army data is unavailable.

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": {
      "roster": "<roster>"
    },
    "name": "export_roster"
  }
}

Input Schema

NameRequiredDescriptionDefault
rosterYesA complete roster in the shape save_roster takes.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / roster / properties / picks / items / properties / entryId / maxLength
      Previous value: -64New value: +256
  2. Changed1 schema field changed
    • addedInput schema / properties / roster / properties / picks / items / properties / rulesVersion
      Added value: +{
      +  "description": "The earlier rules version this unit was saved in before its list moved to another; keep it as read, never set it.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / roster / properties / waivedRules / items / enum
      Previous value: -[
      -  "points-limit",
      -  "detachments",
      -  "detachment-points",
      -  "warlord",
      -  "kotc-infantry",
      -  "kotc-warlord",
      -  "kotc-epic-heroes",
      -  "kotc-toughness",
      -  "kotc-datasheet-copies"
      -]New value: +[
      +  "points-limit",
      +  "detachments",
      +  "detachment-points",
      +  "warlord",
      +  "kotc-infantry",
      +  "kotc-warlord",
      +  "kotc-enhancements",
      +  "kotc-epic-heroes",
      +  "kotc-toughness",
      +  "kotc-datasheet-copies"
      +]
    • changedInput schema / properties / roster / properties / waivedRules / maxItems
      Previous value: -9New value: +10
  4. Changed1 schema field changed
    • changedInput schema / properties / roster / properties / picks / items / properties / vs / description
      Previous value: -"Reserved: not read yet. Leave it as read and never set it."New value: +"The unit by VS Data IDs, for a datasheet get_unit_options returns with vs: it stands for models, choices, spreads and toggles, so a pick with it leaves those out. Keep it as read, or set it from get_unit_options."
  5. Changed1 schema field changed
    • addedInput schema / properties / roster / properties / picks / items / properties / vs
      Added value: +{
      +  "description": "Reserved: not read yet. Leave it as read and never set it.",
      +  "properties": {
      +    "allegiance": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "enhancement": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "models": {
      +      "additionalProperties": {
      +        "maximum": 60,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "options": {
      +      "additionalProperties": {
      +        "additionalProperties": {
      +          "maximum": 60,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "propertyNames": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "warlord": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "models",
      +    "options"
      +  ],
      +  "type": "object"
      +}
  6. Changed3 schema fields changed
    • addedInput schema / properties / roster / properties / picks / items / properties / floor
      Added value: +{
      +  "const": true,
      +  "description": "Set on a unit saved before choices started on the printed default; keep it as read, never set it.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / roster / properties / prep / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "reminders": {
      -        "items": {
      -          "properties": {
      -            "ability": {
      -              "maxLength": 80,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "description": {
      -              "maxLength": 10000,
      -              "type": "string"
      -            },
      -            "key": {
      -              "maxLength": 240,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "timings": {
      -              "items": {
      -                "oneOf": [
      -                  {
      -                    "properties": {
      -                      "firstRoundOnly": {
      -                        "type": "boolean"
      -                      },
      -                      "moment": {
      -                        "enum": [
      -                          "phase-start",
      -                          "phase-end"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "phase": {
      -                        "enum": [
      -                          "command",
      -                          "movement",
      -                          "shooting",
      -                          "charge",
      -                          "fight",
      -                          "any"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "turn": {
      -                        "enum": [
      -                          "your-turn",
      -                          "opponent-turn",
      -                          "either"
      -                        ],
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "moment",
      -                      "phase",
      -                      "turn"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  {
      -                    "properties": {
      -                      "firstRoundOnly": {
      -                        "type": "boolean"
      -                      },
      -                      "moment": {
      -                        "enum": [
      -                          "turn-start",
      -                          "turn-end"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "phase": {
      -                        "type": "null"
      -                      },
      -                      "turn": {
      -                        "enum": [
      -                          "your-turn",
      -                          "opponent-turn",
      -                          "either"
      -                        ],
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "moment",
      -                      "phase",
      -                      "turn"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  {
      -                    "properties": {
      -                      "firstRoundOnly": {
      -                        "type": "boolean"
      -                      },
      -                      "moment": {
      -                        "enum": [
      -                          "round-start",
      -                          "round-end"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "phase": {
      -                        "type": "null"
      -                      },
      -                      "turn": {
      -                        "const": "either",
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "moment",
      -                      "phase",
      -                      "turn"
      -                    ],
      -                    "type": "object"
      -                  }
      -                ]
      -              },
      -              "maxItems": 10,
      -              "minItems": 1,
      -              "type": "array"
      -            },
      -            "unit": {
      -              "properties": {
      -                "index": {
      -                  "maximum": 99,
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "name": {
      -                  "maxLength": 80,
      -                  "minLength": 1,
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "index",
      -                "name"
      -              ],
      -              "type": "object"
      -            },
      -            "whileDestroyed": {
      -              "type": "boolean"
      -            }
      -          },
      -          "required": [
      -            "key",
      -            "ability",
      -            "description",
      -            "timings"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 200,
      -        "type": "array"
      -      },
      -      "remindersEnabled": {
      -        "default": true,
      -        "type": "boolean"
      -      },
      -      "secondaries": {
      -        "items": {
      -          "properties": {
      -            "key": {
      -              "maxLength": 64,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "name": {
      -              "maxLength": 80,
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "key",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 6,
      -        "type": "array"
      -      },
      -      "stratagems": {
      -        "items": {
      -          "properties": {
      -            "cp": {
      -              "maximum": 6,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "key": {
      -              "maxLength": 64,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "limit": {
      -              "enum": [
      -                "phase",
      -                "turn",
      -                "battle-round",
      -                "battle",
      -                "unlimited"
      -              ],
      -              "type": "string"
      -            },
      -            "name": {
      -              "maxLength": 80,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "phases": {
      -              "items": {
      -                "enum": [
      -                  "command",
      -                  "movement",
      -                  "shooting",
      -                  "charge",
      -                  "fight",
      -                  "end"
      -                ],
      -                "type": "string"
      -              },
      -              "maxItems": 6,
      -              "type": "array"
      -            },
      -            "turn": {
      -              "enum": [
      -                "your-turn",
      -                "opponent-turn",
      -                "either"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "key",
      -            "name",
      -            "cp",
      -            "limit"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 48,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "stratagems",
      -      "secondaries"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "reminders": {
      +        "items": {
      +          "properties": {
      +            "ability": {
      +              "maxLength": 80,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "description": {
      +              "maxLength": 10000,
      +              "type": "string"
      +            },
      +            "key": {
      +              "maxLength": 240,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "timings": {
      +              "items": {
      +                "oneOf": [
      +                  {
      +                    "properties": {
      +                      "firstRoundOnly": {
      +                        "type": "boolean"
      +                      },
      +                      "moment": {
      +                        "enum": [
      +                          "phase-start",
      +                          "phase-end"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "phase": {
      +                        "enum": [
      +                          "command",
      +                          "movement",
      +                          "shooting",
      +                          "charge",
      +                          "fight",
      +                          "any"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "turn": {
      +                        "enum": [
      +                          "your-turn",
      +                          "opponent-turn",
      +                          "either"
      +                        ],
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "moment",
      +                      "phase",
      +                      "turn"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "properties": {
      +                      "firstRoundOnly": {
      +                        "type": "boolean"
      +                      },
      +                      "moment": {
      +                        "enum": [
      +                          "turn-start",
      +                          "turn-end"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "phase": {
      +                        "type": "null"
      +                      },
      +                      "turn": {
      +                        "enum": [
      +                          "your-turn",
      +                          "opponent-turn",
      +                          "either"
      +                        ],
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "moment",
      +                      "phase",
      +                      "turn"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "properties": {
      +                      "firstRoundOnly": {
      +                        "type": "boolean"
      +                      },
      +                      "moment": {
      +                        "enum": [
      +                          "round-start",
      +                          "round-end"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "phase": {
      +                        "type": "null"
      +                      },
      +                      "turn": {
      +                        "const": "either",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "moment",
      +                      "phase",
      +                      "turn"
      +                    ],
      +                    "type": "object"
      +                  }
      +                ]
      +              },
      +              "maxItems": 10,
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "unit": {
      +              "properties": {
      +                "index": {
      +                  "maximum": 99,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "name": {
      +                  "maxLength": 80,
      +                  "minLength": 1,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "index",
      +                "name"
      +              ],
      +              "type": "object"
      +            },
      +            "whileDestroyed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "ability",
      +            "description",
      +            "timings"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 200,
      +        "type": "array"
      +      },
      +      "remindersEnabled": {
      +        "default": true,
      +        "type": "boolean"
      +      },
      +      "secondaries": {
      +        "items": {
      +          "properties": {
      +            "key": {
      +              "maxLength": 64,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "name": {
      +              "maxLength": 80,
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 6,
      +        "type": "array"
      +      },
      +      "stratagems": {
      +        "items": {
      +          "properties": {
      +            "cp": {
      +              "maximum": 6,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "key": {
      +              "maxLength": 128,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "limit": {
      +              "enum": [
      +                "phase",
      +                "turn",
      +                "battle-round",
      +                "battle",
      +                "unlimited"
      +              ],
      +              "type": "string"
      +            },
      +            "name": {
      +              "maxLength": 80,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "phases": {
      +              "items": {
      +                "enum": [
      +                  "command",
      +                  "movement",
      +                  "shooting",
      +                  "charge",
      +                  "fight",
      +                  "end"
      +                ],
      +                "type": "string"
      +              },
      +              "maxItems": 6,
      +              "type": "array"
      +            },
      +            "turn": {
      +              "enum": [
      +                "your-turn",
      +                "opponent-turn",
      +                "either"
      +              ],
      +              "type": "string"
      +            },
      +            "windows": {
      +              "items": {
      +                "properties": {
      +                  "phase": {
      +                    "enum": [
      +                      "command",
      +                      "movement",
      +                      "shooting",
      +                      "charge",
      +                      "fight",
      +                      "end"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "turn": {
      +                    "enum": [
      +                      "your-turn",
      +                      "opponent-turn",
      +                      "either"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "phase",
      +                  "turn"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 18,
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "name",
      +            "cp",
      +            "limit"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 48,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "stratagems",
      +      "secondaries"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / roster / properties / printedDefaults
      Added value: +{
      +  "const": true,
      +  "description": "Sent by code that starts a choice on its printed default; a save without it keeps each unit on its cheapest.",
      +  "type": "boolean"
      +}
  7. Changed2 schema fields changed
    • changedInput schema / properties / roster / description
      Previous value: -"A complete roster in the shape save_roster takes. Its name must not be empty."New value: +"A complete roster in the shape save_roster takes."
    • addedInput schema / properties / roster / properties / name / description
      Added value: +"The roster title, or empty to have one generated from the army and kept current. Send a name only when the player chooses one."
  8. Changed5 schema fields changed
    • addedInput schema / properties / roster / properties / picks / items / properties / choices / additionalProperties / anyOf
      Added value: +[
      +  {
      +    "maxLength": 64,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "const": "",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / roster / properties / picks / items / properties / choices / additionalProperties / maxLength
      Removed value: -64
    • removedInput schema / properties / roster / properties / picks / items / properties / choices / additionalProperties / minLength
      Removed value: -1
    • removedInput schema / properties / roster / properties / picks / items / properties / choices / additionalProperties / type
      Removed value: -"string"
    • changedInput schema / properties / roster / properties / picks / items / properties / choices / description
      Previous value: -"One option per choice group, choice key to option id from get_unit_options, for groups it sets with choices: wargear, an enhancement, a detachment upgrade. Omitted groups keep their default."New value: +"One option per choice group, choice key to option id from get_unit_options, for groups it sets with choices: wargear, an enhancement, a detachment upgrade. Omitted groups keep their default; '' leaves an optional group empty."
  9. Changed2 schema fields changed
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
  10. Changed1 schema field changed
    • changedInput schema / properties / roster / properties / disposition / description
      Previous value: -"Force disposition id from get_unit_options' roster.dispositions; null when the detachment allows only one."New value: +"Force disposition id from get_unit_options' roster.dispositions, or null to leave the choice to each battle."
  11. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark this as read-only, idempotent, non-destructive and closed-world, and the description adds substantial behavior beyond that: it explains the returned text, Praetorium exchange code, omission counts for units/selections no longer priced or offered, empty-name title generation, and failure while army data is unavailable. This is rich disclosure for a non-mutating export tool 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.

Conciseness4/5

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

The description is dense but front-loads the core purpose and then organizes output details and edge cases in a logical order. It is longer than typical, but most sentences carry useful information for a complex roster object with no output schema.

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?

Given a nested roster input, no output schema, and read-only annotations, the description supplies the key missing context: what text and code mean, how omitted counts arise, the empty-name behavior, and the failure condition. An agent has enough information to call and interpret this tool correctly.

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 schema already documents all three parameters thoroughly. The description adds only modest parameter meaning by pointing to sibling roster shapes and reiterating that an empty name generates a title, both of which are largely covered by the schema; baseline 3 is appropriate.

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?

The description uses a specific verb and resource: writes a roster as the site's text export. It clearly distinguishes the operation from saving by stating it works 'without saving it or needing an account,' and it names sibling shapes (save_roster, import_roster, get_my_roster), so an agent can identify the tool's role.

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?

The description gives clear context for when to use it: producing the official text export without saving or requiring an account. It does not provide explicit when-not guidance or directly compare alternatives, but the no-save/no-account condition is a strong usage cue.

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.