# `Alternera.PluginHosts.StepTools`
[🔗](https://github.com/10e-ab/alternera-camel/blob/v0.9.0/alternera_plugin_hosts/lib/alternera/plugin_hosts/step_tools.ex#L1)

The MCP tools of a plugin-host step that takes written documents
(`Alternera.Plugin.Provisional.Tools`), for an agent writing one: the
same check the editor and a save run (`Step.check/3`), and what a host
offers such a document, which the editor completes from.

  * `<id>_check_<op noun>` checks a document against a host without
    defining it, and answers its problems with their lines, what the
    entry reads and the document's routes.
  * `<id>_describe_host` lists the tenant's hosts with no `host`; with
    one, `on_host`, what a step may call on the host itself, and what a
    document written for it may use (steps, languages, components, the
    disk beans it may name, `direct_calls`, the host routes it may call,
    and the bean types it may define); with a `component`,
    that component's options; with a `bean`, a database's tables, views
    and procedures, and with a `table` or `procedure` its columns or
    parameters.

The describe is `:config`: it reads the host's configuration and a
database's structure, never what traffic carried. The check is
`:editing`: it defines nothing, but it puts the tenant's secrets into a
document the caller writes and has the host start it, which a key that
may only read should not do.

# `run`

```elixir
@spec run(Alternera.PluginHosts.Step.t(), String.t(), map(), %{tenant_id: term()}) ::
  {:ok, map()} | {:error, String.t()}
```

Runs one of the step's tools (`c:Alternera.Plugin.Provisional.Tools.run_tool/3`).

# `tools`

```elixir
@spec tools(Alternera.PluginHosts.Step.t()) :: [map()]
```

The step's tools (`c:Alternera.Plugin.Provisional.Tools.tools/0`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
