Skip to main content
Glama
deanxizian

balatro-codex-mcp

by deanxizian

Discard hand cards

balatro_discard_cards
Destructive

Verify remaining discards, then discard selected cards from hand during SELECTING_HAND.

Instructions

在 SELECTING_HAND 弃牌;先检查剩余弃牌次数。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardsYes互不重复的当前手牌 0-based 索引。
expected_state_tokenYes最新 state_token;必填。
Behavior3/5

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

Annotations already mark this as destructive (destructiveHint=true), so the mutation is transparent. The description adds a useful behavioral note about checking the remaining discard count before acting, but does not disclose other consequences like card removal or state token requirement beyond the schema.

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 concise sentence, front-loaded with the action and state, with no redundant information. It effectively communicates the essential guidance in one line.

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 simple discard tool with two well-described parameters, the description covers the necessary state (SELECTING_HAND) and a key precondition (checking discards). It could mention error handling or post-effects, but given the annotations and schema, it is adequately complete.

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%, and both parameters (cards, expected_state_token) are well-documented in the schema. The description does not add extra parameter meaning, so the baseline score of 3 applies.

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 identifies the action as discarding ('弃牌') in the specific game state 'SELECTING_HAND', which distinguishes it from sibling tools like balatro_play_cards. The title also reinforces the purpose. However, it could be more explicit about what 'discard' results in.

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

Usage Guidelines3/5

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

The description provides some usage context by specifying '在 SELECTING_HAND 弃牌' and instructing to '先检查剩余弃牌次数' (first check remaining discard count). This implies a precondition but does not explicitly compare with alternatives or state when not to use, such as preferring play_cards.

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/deanxizian/balatro-codex-mcp'

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