ServiceToolProvider
trait · ferroui-mcp · v0.5.0
trait ServiceToolProvider: Send + Sync + 'static
A service whose state is safe to access from transport workers. No UI objects may be held. Tool definitions are immutable for the server lifetime. Mutating tools additionally require the server's existing write permission; identity/room ACLs remain the provider's responsibility.
Members
tools
fn tools(self: &Self) -> Vec<Value>
validate
fn validate(self: &Self, name: &str, arguments: &Value) -> Result<(), String>
call
fn call(self: &Self, name: &str, arguments: &Value, context: &RequestContext) -> Result<Value, String>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.