Skip to main content

windmill_api/models/
call_mcp_tool_request.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.792.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CallMcpToolRequest {
16    #[serde(rename = "tool")]
17    pub tool: String,
18    #[serde(rename = "arguments", skip_serializing_if = "Option::is_none")]
19    pub arguments: Option<serde_json::Value>,
20    /// set when the caller ran the tool without asking the user to confirm it; the call is refused unless the server's live listing marks the tool read-only 
21    #[serde(rename = "read_only", skip_serializing_if = "Option::is_none")]
22    pub read_only: Option<bool>,
23}
24
25impl CallMcpToolRequest {
26    pub fn new(tool: String) -> CallMcpToolRequest {
27        CallMcpToolRequest {
28            tool,
29            arguments: None,
30            read_only: None,
31        }
32    }
33}
34