Skip to main content
Glama

LEAN handoff

option_lean

Export fixed single-expiry option legs to a local LEAN bundle or import completed tagged results; no backtest or order is executed.

Instructions

Export fixed single-expiry option legs to a local LEAN bundle, or import completed tagged results. No backtest or order is executed by this tool. Before quoting any number from this result, state the degraded flag and its reason when the result carries one, and cite the artifact path it names.

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": {
      "action": "<action>"
    },
    "name": "option_lean"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
planNo
startNo
actionYes
bundleNo
resultNo
data_modeNo
multiplierNo
exercise_styleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare the write/local/non-destructive profile (readOnlyHint=false, openWorldHint=false, destructiveHint=false), and the description usefully adds that output goes to a local artifact path and that a degraded flag may accompany results. However, it does not disclose overwrite behavior on repeated exports, what import expects of the 'tagged results', or any failure modes. It also adds an output-consumption rule (state the degraded flag, cite the artifact path), which is valuable but is guidance rather than behavior disclosure.

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?

Three tightly written sentences with the core purpose front-loaded and no filler. The final sentence is an output-usage instruction rather than a description of the tool itself, which is slightly off-register but still earns its place by preventing misquoted numbers.

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?

No output schema exists, so the description commendably explains the degraded flag and artifact path an agent will encounter in results. But for a 9-parameter tool with zero schema coverage, the near-total silence on parameter meaning leaves a significant gap for correct invocation.

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?

Nine parameters with 0% schema description coverage, and the description explains none of them. The export/import split maps loosely to the action enum, but bundle, plan, start, end, result, data_mode, multiplier, and exercise_style are left entirely undefined, so an agent must guess formats and which parameters belong to which action.

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 specific verbs and resources: 'Export fixed single-expiry option legs to a local LEAN bundle, or import completed tagged results.' The second sentence explicitly rules out backtesting and order execution, which cleanly separates it from siblings like option_backtest and option_forward_test.

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?

Makes the two modes of use concrete (export legs out to a LEAN bundle, import tagged results back) and clarifies that this tool does not run the backtest or place orders. It does not explicitly name the sibling to use for the actual backtest, but the boundary is clearly implied.

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