Skip to main content
Glama

apply_penalty

Subtract coins, experience points, or items from a player by applying a penalty with a custom reason that appears in history.

Instructions

Apply a penalty to the player (coins, experience points, or items) with a custom reason. The reason will be displayed in history pages. Use this to subtract resources directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesPenalty type: coin=coins, exp=experience points, item=shop items
contentYesReason for penalty (displayed in history)
numberYesAmount to penalize (max: 999999 for coin, 99999 for exp, 999 for items)
skillsNoSkill/attribute IDs (only for exp type)
item_idNoItem ID (only for item type, one of item_id or item_name required)
item_nameNoItem name for fuzzy match (only for item type, one of item_id or item_name required)
silentNoDisable UI prompts (default: false)
Behavior3/5

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

No annotations exist, so description must carry behavioral disclosure. It notes the reason appears in history and implies subtraction, but lacks details on reversibility, permissions, or side effects.

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?

Two concise sentences that front-load the core action and reason display. No wasted words.

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 the absence of output schema and annotation richness, the description adequately explains the tool's function, parameters are fully documented in schema, and the tool's write nature doesn't require elaborate return value description.

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 provides 100% coverage of parameter descriptions. Description adds no additional meaning beyond the schema, only restating the tool's purpose.

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?

Description uses specific verb 'apply' and resource 'penalty', lists what can be penalized (coins, exp, items), and distinguishes from sibling tools that add or edit items/achievements.

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?

Explicitly states 'Use this to subtract resources directly', providing clear usage context. However, no explicit when-not to use or alternative tools mentioned.

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/derekprovance/lifeup-mcp'

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