pub struct ToolMetadata {
pub name: String,
pub typescript_name: String,
pub category: Option<String>,
pub keywords: Vec<String>,
pub description: Option<String>,
pub parameters: Vec<ParameterMetadata>,
}Expand description
Structured metadata for a single generated tool.
§Examples
use mcp_execution_core::metadata::ToolMetadata;
let tool = ToolMetadata {
name: "create_issue".to_string(),
typescript_name: "createIssue".to_string(),
category: Some("issues".to_string()),
keywords: vec!["create".to_string(), "issue".to_string()],
description: Some("Creates a new issue".to_string()),
parameters: vec![],
};
assert_eq!(tool.name, "create_issue");Fields§
§name: StringOriginal MCP tool name (the call identifier), unmodified.
typescript_name: StringTypeScript-friendly name (camelCase), matching the generated file’s
basename (e.g. createIssue for createIssue.ts).
category: Option<String>Optional category for tool grouping.
keywords: Vec<String>Keywords for discovery, split from the source comma-separated string.
description: Option<String>Human-readable tool description, as reported by the MCP server.
parameters: Vec<ParameterMetadata>Metadata for each of the tool’s input parameters.
Trait Implementations§
Source§impl Clone for ToolMetadata
impl Clone for ToolMetadata
Source§fn clone(&self) -> ToolMetadata
fn clone(&self) -> ToolMetadata
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 ToolMetadata
impl Debug for ToolMetadata
Source§impl<'de> Deserialize<'de> for ToolMetadata
impl<'de> Deserialize<'de> for ToolMetadata
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
impl Eq for ToolMetadata
Source§impl PartialEq for ToolMetadata
impl PartialEq for ToolMetadata
Source§fn eq(&self, other: &ToolMetadata) -> bool
fn eq(&self, other: &ToolMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolMetadata
impl Serialize for ToolMetadata
impl StructuralPartialEq for ToolMetadata
Auto Trait Implementations§
impl Freeze for ToolMetadata
impl RefUnwindSafe for ToolMetadata
impl Send for ToolMetadata
impl Sync for ToolMetadata
impl Unpin for ToolMetadata
impl UnsafeUnpin for ToolMetadata
impl UnwindSafe for ToolMetadata
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