Skip to main content
Glama

list_characters

Retrieve all player characters in your current D&D campaign to access their basic information for game management.

Instructions

List all characters in the current campaign.

Returns a list of all player characters with their basic information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The 'list_characters' tool lists all character names in the current campaign.
    def list_characters(self) -> list[str]:
        """List all character names in the current campaign."""
        if not self._current_campaign:
            return []
        return list(self._current_campaign.characters.keys())
  • The 'list_characters_detailed' tool returns all character objects in the current campaign.
    def list_characters_detailed(self) -> list[Character]:
        """Return all characters without redundant lookups - O(n) instead of O(2n)."""
        if not self._current_campaign:
            return []
        return list(self._current_campaign.characters.values())
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Polloinfilzato/dm20-protocol'

If you have feedback or need assistance with the MCP directory API, please join our Discord server