Skip to main content
Glama

Agent Financial Advisor

Advisor memo (written by Claude)

advisor_memo

Send a planned trade, options position or portfolio and get a written decision memo: proceed, proceed with changes, or do not proceed, with the risks, the exact changes to make, the rules that apply and a dated note for your audit file. Runs pre_trade_check, position_size, tax_lot_plan, options_risk_check and portfolio_review on whichever sections you send, then Claude writes the memo; it never overrides a failed check. Paid only (credits or x402), except that each API key's first memo is free; the daily free calls and the anonymous trial don't cover it. Price: $0.1, paid only.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "trade": {
        "order": {
          "side": "buy",
          "symbol": "AAPL",
          "quantity": 50,
          "limit_price": 200,
          "stop_loss_price": 190
        },
        "market": {
          "ask": 200.02,
          "bid": 199.98,
          "last_price": 200,
          "avg_daily_volume": 50000000
        },
        "account": {
          "type": "margin",
          "equity": 100000,
          "positions": []
        }
      },
      "context": "Momentum entry on AAPL after earnings; plan to hold 2 to 6 weeks."
    },
    "name": "advisor_memo"
  }
}

Input Schema

NameRequiredDescriptionDefault
tradeNoA pre_trade_check request: {account, order, market?, policy?}.
sizingNoA position_size request.
api_keyNoOptional. Your AFA API key (afa_...), from get_api_key. Pass it on every call so free calls and credits apply; without it calls use the anonymous trial.
contextNoOptional: your plan and thesis in plain words (up to 2000 characters).
optionsNoAn options_risk_check request.
tax_lotsNoA tax_lot_plan request, for a planned sale.
portfolioNoA portfolio_review request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Optional. Your AFA API key (afa_...), from get_api_key. Pass it on every call so free calls and credits apply; without it calls use the anonymous trial.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it discloses the internal pipeline, that Claude authors the memo, that it never overrides a failed check, and the complete payment profile (paid only via credits/x402, first memo per API key free, daily free calls and anonymous trial excluded, $0.1). It does not state latency, whether a failed underlying check still returns a memo, or what happens if no recognized section is supplied.

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?

The outcome and the memo contents are front-loaded in the first sentence, and the second handles mechanics and billing. Minor waste: 'Paid only (credits or x402)' is restated as 'Price: $0.1, paid only' at the end, which is redundant. Overall it is dense and appropriately short for the amount of information conveyed.

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 7-parameter, nested-object composite tool with no output schema and no annotations, the description covers what the returned memo contains (decision, risks, exact changes, applicable rules, dated audit note), how the pipeline behaves, and the billing model. What remains thin is edge-case behavior — e.g., what is returned when an underlying check fails or when no sections are provided — which matters given there is no output schema to fall back on.

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 the schema already documents trade, sizing, options, tax_lots, portfolio, context and api_key with reference to the corresponding sibling request shapes. The description adds only the framing that sections are optional and independently processed; it adds no syntax, constraints, or interaction rules beyond that. Baseline 3 is appropriate.

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 states a concrete verb and resource — send a planned trade/options position/portfolio and get a written decision memo — and enumerates the three possible outcomes. It clearly separates this composite tool from the individual sibling checks (pre_trade_check, position_size, tax_lot_plan, options_risk_check, portfolio_review) by framing them as internal steps of this one.

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?

Usage context is clear: use this when you want a written, auditable decision rather than raw check output, and send only the sections you care about. It also tells the agent it can run pre_trade_check etc. standalone, though the phrase 'on whichever sections you send' implies rather than explicitly states the alternative path. No explicit exclusions like 'do not use for a quick numeric sizing' appear.

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.