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
//! Approval MCP tool schemas.

use crate::internal::auth::APPROVALS_CREATE;
use crate::internal::mcp::schemas::{ToolSchema, object_schema, safe_output_schema};

/// MCP approval creation tool.
pub const APPROVALS_CREATE_TOOL: &str = "ibkr_approvals_create";

/// Schema for creating a gateway approval record from an existing preview.
#[must_use]
pub fn approvals_create_schema() -> ToolSchema {
    ToolSchema {
        name: APPROVALS_CREATE_TOOL.to_string(),
        scope: APPROVALS_CREATE.to_string(),
        input_schema: object_schema(&["account_id", "preview_id", "ttl_seconds"]),
        output_schema: safe_output_schema(),
    }
}