Skip to main content
Glama
Fintech MCP Server

Fintech MCP Server

evaluate_order_risk

Computes deterministic Decimal order sizing, post-trade concentration, and pre-trade risk checks for an order intent, emitting an immutable SHA-256 proposal hash without executing trades.

Instructions

Compute deterministic Decimal sizing, post-trade concentration, and pre-trade risk checks for an order intent. Emits an immutable SHA-256 proposal_hash; never executes.

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": {
      "account_id": "<account_id>",
      "symbol": "<symbol>",
      "side": "<side>",
      "quantity": "<quantity>",
      "rationale": "<rationale>"
    },
    "name": "evaluate_order_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYes
symbolYes
quantityYesShare quantity (exact decimal)
rationaleYes
account_idYes
order_typeNoLIMIT
limit_priceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations give readOnlyHint=false and destructiveHint=false, so the safety bar is lower, and the description adds real context: deterministic Decimal math and no execution. It still omits what state is persisted (the proposal_hash implies a stored proposal), what permissions are needed, and whether a breached check raises an error or returns a flag.

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?

Two tight sentences, front-loaded with the verb and computed outputs, followed by the artifact and the non-execution guarantee. Every clause carries 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?

With 7 parameters, no output schema, and a non-read-only annotation, the description should describe what the response contains beyond the hash (sizing result, concentration figures, pass/fail checks) and what happens on a violation. It states non-execution clearly but leaves the return shape underspecified.

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

Parameters2/5

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

Schema description coverage is only 14% across 7 parameters, so the description must carry the load, yet it never explains quantity's string form for exact decimals, order_type's LIMIT default, limit_price, or rationale's role. The only compensating hint is 'deterministic Decimal sizing' and the schema note that amounts are computed server-side.

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 names specific operations (Decimal sizing, post-trade concentration, pre-trade risk checks) on a specific resource (an order intent), plus the artifact produced (an immutable SHA-256 proposal_hash). No sibling tool (balances, quotes, positions, audit log) could be confused with this risk-evaluation step.

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?

Usage is implied rather than stated: 'for an order intent' and 'never executes' suggest this is a pre-trade gate, but there is no explicit when-to-use, no prerequisite (e.g., must a quote or balance check precede it), and no named alternative for actually placing the order.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.