Skip to main content
Glama

Melvor Idle 2 Guide

XP and materials calculator

calculate_xp
Read-onlyIdempotent

Plan actions, time, XP and missing materials for a target level, remaining XP, or a batch of items. Use an Action ID from search_wiki or supply your measured action values. Stock defaults to zero. Results use base rates unless you supply measured values.

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": {
      "action": "<action>",
      "goal": "<goal>"
    },
    "name": "calculate_xp"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYes
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds genuine behavioral context beyond them: base rates are used unless measured values are supplied, and stock defaults to zero. That materially affects how the agent should interpret the output. It does not describe the shape or rounding of the returned plan, which is a remaining gap with no output schema.

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?

Four short sentences, front-loaded with purpose and followed by the input and defaulting rules in priority order; nothing is padded. The only near-redundancy is 'Stock defaults to zero', which restates the schema default, though it usefully flags the behavior without a schema lookup.

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 tool with two nested oneOf branches and three goal modes, the description covers every mode at a level sufficient to choose the right branch, plus the defaulting and accuracy caveats. Without an output schema, the return values are only hinted at ('time, XP and missing materials'), so the agent cannot fully anticipate the response structure.

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?

With schema description coverage reported at 0%, the description has to carry parameter meaning, and it largely does: it explains the two action input routes (preset ID vs manual per-action values), names the three goal interpretations, and states the stock default. It adds no detail on how materials, productsPerAction, or currentLevel interact with the preset action, leaving some manual-mode parameters to be inferred from names.

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 opens with a specific verb and a concrete set of outputs ('Plan actions, time, XP and missing materials') and enumerates the three goal shapes (target level, remaining XP, batch of items), which map directly to the schema's goal modes. It is clearly a planning/calculation tool rather than a wiki lookup, so it is distinguishable from siblings, though it never explicitly contrasts itself with calculate_gp or calculate_drop.

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?

'Use an Action ID from search_wiki or supply your measured action values' gives an explicit routing rule: the agent learns it must first call search_wiki (or provide manual values) rather than guessing an ID. There is no explicit when-not-to-use guidance or mention of the other calculator siblings, so it stops short of a 5.

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.