Skip to main content
Glama

add_spell

Add spells to character sheets in Dungeons & Dragons campaigns. Specify spell details like level, school, and casting time to manage magical abilities.

Instructions

Add a spell to a character's spells known list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
character_name_or_idYesCharacter name, ID, or player name
spell_nameYesSpell name
spell_levelYesSpell level (0 for cantrip)
schoolNoSchool of magic (e.g. 'evocation', 'abjuration')unknown
casting_timeNoCasting time (e.g. '1 action')1 action
spell_rangeNoRange in feet
durationNoDuration (e.g. 'instantaneous')instantaneous
componentsNoJSON list of components, e.g. '["V","S","M"]'
spell_descriptionNoSpell description
preparedNoWhether the spell is prepared
player_idNoPlayer ID for permission check (omit for single-player DM mode)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool's purpose but reveals nothing about permissions required, whether this is a destructive/write operation, what happens on success/failure, or any rate limits. For a tool that modifies character data, this is a significant gap in transparency.

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 description is a single, efficient sentence that states the tool's core purpose without any wasted words. It's appropriately sized for a tool with a straightforward function and well-documented schema.

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

Completeness3/5

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

For a mutation tool with no annotations and no output schema, the description is minimally adequate. It states what the tool does but lacks crucial context about behavioral implications, success conditions, or error handling. The 100% schema coverage helps, but the description alone doesn't provide complete guidance for safe invocation.

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?

The description adds no parameter information beyond what's already in the schema, which has 100% description coverage. The baseline score of 3 reflects that the schema adequately documents all 11 parameters, so the description doesn't need to compensate but also adds no extra value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('add a spell') and target ('to a character's spells known list'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'remove_spell' or 'use_spell_slot', which would be needed for a perfect score.

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives. The description doesn't mention prerequisites, appropriate contexts, or when other tools might be more suitable, leaving the agent to infer usage from the tool name alone.

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

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