Skip to main content
Glama

PortfolioFit

Calculate portfolio constraints

calculate_portfolio_constraints
Idempotent

Calculate explicit portfolio constraints deterministically from normalized holdings. Use this for arithmetic checks, not for interpreting natural-language mandates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
holdingsYes
constraintsYes
base_currencyNoUSD
idempotency_keyYes
source_warningsNo
composition_scopeNounknown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4/5.0
Behavior4/5

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

The description adds 'deterministically' and 'normalized holdings' beyond annotations, indicating deterministic output and input normalization. Annotations already cover idempotency and non-destructiveness, so this is useful incremental behavioral context.

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 two sentences long, front-loaded with the core purpose, and contains no redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While the output schema exists and the purpose/usage are clear, the description omits operational details such as input expectations, edge cases, or any non-obvious behavior. For a tool with a complex schema, more context would be beneficial.

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

Parameters1/5

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

Schema description coverage is 0%, and the description provides no parameter-level details. The agent can only rely on parameter names and enums, which are insufficient for a tool with six parameters and nested objects.

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 the action (Calculate) and the resource (portfolio constraints) with specific qualifiers ('explicit', 'deterministically', 'normalized holdings'). It also distinguishes this tool from natural-language interpretation, which aligns with the sibling tool evaluate_portfolio_alignment.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'Use this for arithmetic checks, not for interpreting natural-language mandates,' providing clear when-to-use and when-not-to-use guidance. Though it doesn't name the sibling directly, the context implies an alternative.

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.

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a clearly distinct task: one performs deterministic arithmetic checks on holdings, the other evaluates semantic alignment against a mandate. Their purposes do not overlap, and the descriptions explicitly warn against confusing them.

Naming Consistency5/5

Both tool names follow a consistent verb_noun pattern (calculate_portfolio_constraints, evaluate_portfolio_alignment), using clear action verbs and domain-specific objects. The naming is uniform and predictable.

Tool Count3/5

With only two tools, the server feels minimal for the PortfolioFit domain. While each tool serves a specific purpose, the set is at the lower boundary of what is considered reasonable, making it borderline acceptable.

Completeness4/5

The core workflow of calculating constraints and evaluating alignment is covered, but the server relies on external preprocessing of holdings and mandates. Minor gaps exist, such as the lack of a tool to interpret natural-language mandates or extract data from files, but these can be worked around.

Resources