Skip to main content
Glama

calculate_trading_profit

Calculate profit/loss for any trading chain in Path of Exile 2 to test strategies or validate arbitrage before executing, with step-by-step rates.

Instructions

Calculate the profit/loss from a specific trading chain. Useful for testing your own trading strategies or validating arbitrage opportunities before executing them. Shows step-by-step conversion rates. IMPORTANT: Use the EXACT league name the user specifies - do not substitute or guess.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
leagueYesEXACT league name as specified by user (e.g., 'Standard', 'Settlers', 'Keepers', 'Hardcore'). Do not substitute or change this value.
start_amountNoAmount of first currency to start with (default: 1)
currency_chainYesArray of currency names in trading order (e.g., ['Divine Orb', 'Chaos Orb', 'Exalted Orb', 'Divine Orb'])
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It adds value by stating it 'Shows step-by-step conversion rates' and emphasizes the need for the exact league name, a key constraint. However, it does not explicitly state that the operation is read-only, what the return format looks like beyond conversion rates, or any potential failure modes, making it minimally adequate.

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 succinct and front-loaded with the core purpose ('Calculate the profit/loss'), followed by two brief context sentences and a critical warning. Every sentence carries weight, and the important note about the exact league name is clearly flagged. No fluff or redundancy.

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 calculation tool with no output schema, the description reasonably covers the return behavior by stating it shows step-by-step conversion rates and calculates profit/loss. It also gives sufficient context for applicability. It stops short of detailing edge cases (e.g., invalid league, real-time vs historical rates), but the core information is complete enough for an agent to select and invoke the tool properly.

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 coverage is 100% and the schema already provides thorough descriptions for all parameters, including the league warning and a currency_chain example. The description's reference to 'specific trading chain' aligns with currency_chain but adds no extra parameter-level details. Thus, the schema does the heavy lifting, meriting the baseline score of 3.

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 clearly states a specific action ('Calculate the profit/loss') and a specific resource ('a specific trading chain'). It distinguishes itself from siblings like find_arbitrage (which likely discovers opportunities) and get_currency_rates (which provides rates) by focusing on evaluating a given chain. The verb+resource structure is unambiguous.

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 provides clear use cases: 'testing your own trading strategies or validating arbitrage opportunities before executing them.' This implies it is for validation rather than discovery, offering context for when to use it. However, it does not explicitly name alternatives (e.g., find_arbitrage) or state when not to use it, leaving a small gap.

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/zgrummons/pob2-mcp'

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