Skip to main content
Glama

Manawa Terminal

Get portfolio rules

get_portfolio_rules
Read-only

Read the order limits for a portfolio.

Call this before add_transaction on a buy, sell, short, or cover.
The rules say which assets are allowed and how large an order may be.
This tool cannot change the rules.

Args:
    portfolio_id: The portfolio UUID

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_id": "<portfolio_id>"
    },
    "name": "get_portfolio_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
strategy_idNoStrategy this call belongs to. UUID from list_strategies. The card this call writes keeps that id. Omit when the call is not part of a strategy.
portfolio_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / strategy_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Strategy this call belongs to. UUID from list_strategies. The card this call writes keeps that id. Omit when the call is not part of a strategy.",
      +  "title": "Strategy Id"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description reinforces this with 'This tool cannot change the rules,' which is a useful, non-contradictory confirmation. It also discloses what the return conceptually contains (allowed assets, max order size), though the output schema carries the detail.

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?

Front-loaded with the core purpose, then the usage trigger, then the safety caveat, then the args. Every line earns its place and there is no filler.

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

Completeness5/5

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

For a read-only lookup with an output schema and safety annotations already present, the description supplies everything an agent needs: purpose, pre-call requirement, constraint on mutability, and the required identifier.

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 50%: portfolio_id has no schema description, but the Args block supplies 'The portfolio UUID', filling that gap, while strategy_id is well documented in the schema itself. Between the two sources both parameters are covered, though the description's own contribution is minimal beyond type restatement.

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?

States a specific verb+resource ('Read the order limits for a portfolio') and then concretizes what those rules contain — allowed assets and maximum order size. This separates it cleanly from siblings like get_portfolio_statistics or add_transaction.

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?

Gives an explicit trigger: call before add_transaction for buy, sell, short, or cover, which names the alternative tool and the condition that selects this one. It does not state when the tool is unnecessary (e.g., cancel_order or non-trading flows), so it falls short of full when/when-not coverage.

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