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_hostlists the tenant's hosts with nohost; 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 acomponent, that component's options; with abean, a database's tables, views and procedures, and with atableorprocedureits 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.
Summary
Functions
Runs one of the step's tools (Alternera.Plugin.Provisional.Tools.run_tool/3).
The step's tools (Alternera.Plugin.Provisional.Tools.tools/0).
Functions
@spec run(Alternera.PluginHosts.Step.t(), String.t(), map(), %{tenant_id: term()}) :: {:ok, map()} | {:error, String.t()}
Runs one of the step's tools (Alternera.Plugin.Provisional.Tools.run_tool/3).
@spec tools(Alternera.PluginHosts.Step.t()) :: [map()]
The step's tools (Alternera.Plugin.Provisional.Tools.tools/0).