Skip to main content
Glama

Amaltash Investment & Retirement Calculators

Position Size Calculator

position_size
Read-onlyIdempotent

Position size calculator with an interactive chart. Works out the dollar size of one position at a percent cap the person chooses, how many positions of that size fit, and the amount at risk. It does not pick investments or judge whether a size is suitable.

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": {
      "portfolio_value": "<portfolio_value>",
      "max_position_pct": "<max_position_pct>"
    },
    "name": "position_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
portfolio_valueYesTotal portfolio value in US dollars.
max_position_pctYesThe cap per position or theme, in percent of the portfolio, the person chose.
stop_distance_pctNoOptional stop distance below entry, in percent. Leave null if there is none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already establish that this is a safe, read-only, idempotent calculation. The description adds useful behavioral context by naming the calculated outputs and the boundary that it does not recommend investments, but it does not explain how optional stop distance affects risk or any calculation assumptions.

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 and front-loaded, first identifying the tool and then explaining the outputs and boundaries. Every sentence contributes useful context without redundant wording.

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 read-only calculator with no output schema and fully documented parameters, the description is nearly complete because it explains the main calculated results. The remaining gap is minor: it does not clarify how the optional stop distance feeds into the risk calculation.

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%, so all three parameters are fully documented in the schema. The description aligns with the percent-cap concept but adds no new syntax, constraints, or parameter-specific meaning beyond the schema.

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 uses a specific verb and resource: it calculates dollar position size, number of positions that fit, and amount at risk. It clearly distinguishes the calculator from investment-picking tools, though it does not explicitly differentiate from other calculator siblings.

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 states what the tool does not do, namely pick investments or judge suitability, which helps exclude misuse. However, it does not explicitly say when to use this calculator versus related planning or risk tools, leaving usage context implied.

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