ibkr-agent-gateway 0.5.2

Unofficial local-first CLI and MCP gateway for Interactive Brokers workflows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Order preview MCP tool.

use super::super::schemas::{ToolSchema, order_preview_input_schema, safe_output_schema};
use crate::internal::auth::ORDERS_PREVIEW;

/// Preview tool.
pub const ORDER_PREVIEW_TOOL: &str = "ibkr_order_preview";

/// Schema for the order preview tool.
#[must_use]
pub fn order_preview_schema() -> ToolSchema {
    ToolSchema {
        name: ORDER_PREVIEW_TOOL.to_string(),
        scope: ORDERS_PREVIEW.to_string(),
        input_schema: order_preview_input_schema(),
        output_schema: safe_output_schema(),
    }
}