Skip to main content
Glama

TradeFlags MCP

OTC Pricing — Price

otc_pricing__price
Read-onlyIdempotent

Price an over-the-counter HK retail equity derivative from its structure parameters (strike, barrier, base level, leverage, volatility) using the Monte Carlo engine, returning net present value and Greeks. Computed on demand.

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": {
      "hk_ticker": "<hk_ticker>",
      "structure_type": "<structure_type>"
    },
    "name": "otc_pricing__price"
  }
}

Input Schema

NameRequiredDescriptionDefault
ko_pctNoKnock-out barrier as % of spot.
n_baseNoBase shares per day.
variantNoVariant (e.g. acc_fixed, ko_fixed).
vol_bidNoVol shift in percentage points.
leverageNoLeverage multiple (default 1.0).
hk_tickerYesHong Kong stock code (e.g. 0005). Default: all / latest.
accrual_pctNoAccrual (strike) as % of spot.
structure_typeYesStructure (e.g. accumulator, decumulator, knock-out forward).
overhedge_methodNoBarrier overhedging method.method_1_linear_ramp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive) and the description adds real context beyond them: the Monte Carlo engine, that pricing is computed on demand, and that both NPV and Greeks come back. It does not warn about stochastic variation (despite idempotentHint) or runtime cost, which keeps it below a 5.

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 short sentences, front-loaded with the verb and resource, then the engine and return values. No filler, no restatement of the title.

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 nine-parameter pricing call with no output schema, the description covers what it does, how it computes, and what comes back (NPV and Greeks). The gaps are which Greeks are returned and how volatility shifts and overhedge methods affect the result, which is minor at this level of complexity.

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 all nine parameters, including defaults and units such as 'Knock-out barrier as % of spot', are documented in the schema. The description re-lists the main drivers (strike, barrier, base level, leverage, volatility), which helps map domain vocabulary to parameter names, but adds no format or semantic detail beyond that. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: price an OTC HK retail equity derivative from structure parameters, using a Monte Carlo engine, returning NPV and Greeks. The scope ('HK retail equity derivative') and the output are concrete. It does not explicitly distinguish itself from the sibling 'accumulator__price', so the differentiation is only partial.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no exclusions. The only phrase touching on this, 'Computed on demand', describes invocation style rather than when to choose this tool over 'accumulator__price' or the structure-specific pricing siblings. It gives no prerequisites for the required hk_ticker/structure_type inputs.

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