Skip to main content
Glama

Raw materials to craft a list of items

calculate_craft_cost
Read-onlyIdempotent

[Calculators] Raw materials to craft a list of items. Resolves every recipe down to raw materials, per unit (items made in batches, like gunpowder, are divided by their batch size), exactly as the craft calculator page does. raw_materials is the total, largest first; items echoes each input with its direct recipe; unknown lists inputs that matched no item.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "calculate_craft_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesComma-separated `shortname:quantity` pairs (display names work too; quantity defaults to 1).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this a safe, idempotent, closed-world read, so the safety profile needs no restating. The description does add genuinely useful non-schema behaviour — batch-size division for items like gunpowder and the shape/ordering of the three return buckets — but says nothing about error handling or what happens on partially-unmatched input lists beyond the existence of `unknown`.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the 'as the calculator page does' clause are front-loaded, and the paragraph of return-field definitions is compact and useful. Slightly dense with backticked field names, but no sentence is filler.

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?

One required parameter, no output schema, and the description documents all three returned keys plus the input parsing fallback ('unknown'). That covers most of what an agent needs to call and interpret the result; only error/pagination-adjacent behaviour is left implicit, which is minor for a pure read calculator.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3; the description earns the extra point by explaining the resolution semantics that the schema cannot convey — per-unit normalisation and division by batch size. The `shortname:quantity` format and default quantity are already in the schema and merely echoed here.

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?

States a concrete verb+resource ('Raw materials to craft a list of items') and clarifies the computation ('Resolves every recipe down to raw materials, per unit'), which is more precise than the title alone. It does not name the neighbouring calculators (e.g. calculate_recycle_yield, calculate_smelting) to draw the boundary, so it stops short of a 5.

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 reference to 'exactly as the craft calculator page does' implies the usage context, but there is no explicit statement of when to pick this over the other cost calculators. An agent must infer selection from the tool name and return-field description.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources