Skip to main content
Glama

Execute Villager Trade

minecraft_trade

Execute a villager trade by trade index on an open villager, with support for repeating up to 64 times.

Instructions

Executes a trade on the currently open villager (call minecraft_open_villager first) by trade index.

Returns: { message } Errors: no villager open, invalid trade index, trade disabled, or missing required items.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timesNoHow many times to repeat the trade.
trade_indexYes
Behavior4/5

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

The annotations already indicate this is a non-read-only, non-idempotent operation with no destructive world effects. The description adds valuable behavioral context by stating the stateful prerequisite (currently open villager) and enumerating specific error scenarios. It also states the return format as a simple message. That said, it does not explicitly mention that the trade consumes or produces items, which would further clarify the change in state.

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 compact, with the action and precondition in the first sentence, followed by a clear Returns/Errors structure. No filler or redundancy; every clause adds operational information.

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?

Given the lack of an output schema, the description still covers the return value as { message } and lists common failure modes. The tool's simplicity and the annotations reduce the need for extensive explanation. It could be more complete by describing the inventory effect of a trade, but overall it provides sufficient context for basic usage.

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 schema documents the 'times' parameter with a description and range, but 'trade_index' has no schema-level description. The description's 'by trade index' provides minimal additional meaning, and the error list mentions 'invalid trade index', reinforcing validation. However, it does not clarify whether the index is zero-based or one-based, and it adds little beyond what the parameter name implies.

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 the specific verb 'Executes' with the resource 'trade' and includes the precondition of an open villager, clearly distinguishing it from sibling tools like minecraft_open_villager or minecraft_use_held_item. It also mentions the trade index parameter directly. This leaves no ambiguity about the tool's function.

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 explicitly states 'call minecraft_open_villager first', which is a direct prerequisite. It also lists error conditions such as 'no villager open' and 'missing required items', informing the agent when the tool will fail. However, it does not discuss alternatives or exclusion cases beyond the prerequisite, so it lacks some of the comparative guidance seen in higher-scoring examples.

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/AhmadTariq1337/minecraft-mcp-server'

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