Skip to main content
Glama

Allocation

allocation
Read-onlyIdempotent

Read ONE dimension of the portfolio's allocation — where the money is, and how far that is from the user's saved targets — instead of the whole context. dimension: assetClass, sector, region, currency, cap, type, account (default assetClass; there is no separate broker dimension — an account label IS its broker). depth (1-30, default 10) keeps the largest segments and groups the rest into other; a segment already named 'Other' is the app's own fold of its smallest segments. withTargets (default true) adds targetPct and driftPct in percentage points wherever the user has saved a target, and raises a target nothing matched so a 0% holding against a target is never invisible; targets exist for assetClass and sector only. weightBasis says what weightPct is a percent OF: 'portfolio' for every breakdown dimension, and 'accounts' for dimension=account, where the weights are a percent of the accounts' combined value (totalValue) because an asset held in no account is outside that split. Every value is in the display currency. pending names holdings whose market data has not landed — they are in no segment, so the split is not final while it is there. Describes the portfolio; never investment advice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "allocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNo
dimensionNo
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
withTargetsNo
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, closed-world), and the description adds substantial behavior beyond them: depth folds the tail into `other`, withTargets synthesizes zero-holding target rows so drift is never invisible, weightBasis changes what the percentage is relative to for account vs. other dimensions, and `pending` signals the split is not final. It also disclaims 'never investment advice' and pins all values to display currency.

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?

Core scope is front-loaded in the first clause, and every subsequent sentence carries real information rather than restating the schema. It is a single dense run-on paragraph with semicolon-chained clauses, which makes it harder to scan than a bulleted or segmented structure would be.

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?

With no output schema, the description does the work of explaining return semantics: weightPct basis, targetPct/driftPct in percentage points, totalValue for the account split, and the `pending` marker. The notable gap is the un-explained revision/idempotency parameters, which matter for a live-dashboard-backed tool.

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 only 17%, so the description carries the burden and does so well for dimension, depth (1-30, default 10) and withTargets (default true, what it adds). Three parameters — dashboardId, idempotencyKey, expectedRevision — get no treatment in the description (dashboardId only via its own schema text), and expectedRevision's concurrency meaning is unexplained anywhere.

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?

Opens with a specific verb and resource — 'Read ONE dimension of the portfolio's allocation' — and immediately scopes it against the sibling behavior it replaces ('instead of the whole context'). The enumerated dimension values and defaults let an agent know exactly what it will get without opening the schema.

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?

It explicitly frames this as the narrow alternative to reading the whole context, and states defaults (dimension=assetClass, depth=10, withTargets=true) so the agent knows what happens when it omits arguments. It stops short of naming a concrete sibling tool for the full-context case or stating when one dimension rather than another is the right choice.

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.