pub struct CallToolRequestParams {
pub arguments: Option<Map<String, Value>>,
pub input_responses: Option<InputResponses>,
pub meta: RequestMetaObject,
pub name: String,
pub request_state: Option<String>,
}Expand description
Latest MCP Protocol 2026_07_28 Parameters for a tools/call request.
JSON schema
{
"description": "Parameters for a tools/call request.",
"type": "object",
"required": [
"_meta",
"name"
],
"properties": {
"_meta": {
"$ref": "#/$defs/RequestMetaObject"
},
"arguments": {
"description": "Arguments to use for the tool call.",
"type": "object",
"additionalProperties": {}
},
"inputResponses": {
"$ref": "#/$defs/InputResponses"
},
"name": {
"description": "The name of the tool.",
"type": "string"
},
"requestState": {
"type": "string"
}
}
}Fields§
§arguments: Option<Map<String, Value>>Arguments to use for the tool call.
input_responses: Option<InputResponses>§meta: RequestMetaObject§name: StringThe name of the tool.
request_state: Option<String>Implementations§
Source§impl CallToolRequestParams
impl CallToolRequestParams
pub fn new<T>(tool_name: T, meta: RequestMetaObject) -> Selfwhere
T: ToString,
pub fn with_arguments(self, arguments: Map<String, Value>) -> Self
Source§impl CallToolRequestParams
impl CallToolRequestParams
Sourcepub fn with_input_responses(self, input_responses: InputResponses) -> Self
pub fn with_input_responses(self, input_responses: InputResponses) -> Self
Sets the resolved inputResponses for retrying this request after an
input_required result.
Sourcepub fn with_request_state<T: Into<String>>(self, request_state: T) -> Self
pub fn with_request_state<T: Into<String>>(self, request_state: T) -> Self
Sets the opaque requestState returned by the server, so it can
correlate the retry with the original request.
Trait Implementations§
Source§impl Clone for CallToolRequestParams
impl Clone for CallToolRequestParams
Source§fn clone(&self) -> CallToolRequestParams
fn clone(&self) -> CallToolRequestParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallToolRequestParams
impl Debug for CallToolRequestParams
Source§impl<'de> Deserialize<'de> for CallToolRequestParams
impl<'de> Deserialize<'de> for CallToolRequestParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CallToolRequestParams
impl RefUnwindSafe for CallToolRequestParams
impl Send for CallToolRequestParams
impl Sync for CallToolRequestParams
impl Unpin for CallToolRequestParams
impl UnsafeUnpin for CallToolRequestParams
impl UnwindSafe for CallToolRequestParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more