# ServiceToolProvider

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-mcp/trait-servicetoolprovider/

**trait** · [`ferroui-mcp`](/docs/0.5.0/api/ferroui-mcp/) · v0.5.0

```rust
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.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Mcp/services.rs#L55)

## Members

- [`tools`](#function-tools)
- [`validate`](#function-validate)
- [`call`](#function-call)

<a id="function-tools"></a>

### tools

```rust
fn tools(self: &Self) -> Vec<Value>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Mcp/services.rs#L56)

<a id="function-validate"></a>

### validate

```rust
fn validate(self: &Self, name: &str, arguments: &Value) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Mcp/services.rs#L57)

<a id="function-call"></a>

### call

```rust
fn call(self: &Self, name: &str, arguments: &Value, context: &RequestContext) -> Result<Value, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Mcp/services.rs#L58)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
