MCP tool reference
This page is generated from the miForge MCP server's live tool registry every time the manual is built, so it always matches the server in the same release. For how to connect an agent and how approvals work, read the MCP server guide and Approvals.
Every tool the miForge MCP server registers, its category, its title, its hint
(read = readOnlyHint, destructive = destructiveHint, write = neither),
whether it publishes an output schema, the backend route it calls and, when an agent calls it,
the approval it waits for. Derived from the live registry by backend/src/mcp_server/contract.py.
Agents: call forge_howto first; it carries the workflow and the result shapes.
106 tools in 11 categories; 14 wait for the operator.
Output schemas: 106 of 106 tools, each projected from the published answer contract docs/schemas/miforge-answers-v1.json; no tool is generic.
core (18)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_health | Health | read | yes | GET /api/health | miForge's health: PostgreSQL, Redis and each optional integration (miServer, miDataworks, the activation source), each by name with a reason when down. | |
forge_howto | How-to guide | read | yes | none (served by the MCP server) | Guidance for agents: the workflow, the three result shapes (resource, pending approval, unavailable), the seven approval actions, archiving, GPUs, settings and WSP sessions. | |
forge_host_resources | Host resources | read | yes | GET /api/v1/host/resources | The host's CPU, memory and each GPU's utilisation and memory, keyed by GPU UUID, and disk: the checkpoint and WSP volumes' free and total bytes (volumes), each WSP worker's /work filesystem as its last ready check reported it (wsp_workers: free_bytes, total_bytes, reported_at) and the /work size limit (wsp_work_limit_bytes). | |
forge_list_gpus | List GPUs | read | yes | GET /api/v1/gpus | The visible GPUs by UUID (never by index), with name and free memory. | |
forge_list_model_sources | List model sources | read | yes | GET /api/v1/models/sources | Every acquisition mode (load, create, attach) and whether each can run here, with the reason when not, plus the model roots a load is confined to. | |
forge_list_local_models | List local models | read | yes | GET /api/v1/models/local | Model directories under the model roots: path, architecture, weights, tokenizer. | |
forge_list_local_tokenizers | List local tokenizers | read | yes | GET /api/v1/tokenizers/local | Directories under the model roots with tokenizer files at their root (a tokenizer, model or checkpoint directory). | |
forge_check_hub_revision | Check Hub revision | read | yes | GET /api/v1/hub/revision | Resolve a Hugging Face repository's revision to its commit, and say whether that commit has a tokenizer, a config and weights at its root. | |
forge_list_providers | List providers | read | yes | GET /api/v1/providers | The inference providers (in-process, or any OpenAI-compatible endpoint) and each one's availability. | |
forge_check_provider | Check provider | write | yes | POST /api/v1/providers/{name}/check | Send one prompt to a provider and return its answer. | |
forge_list_run_types | List run types | read | yes | GET /api/v1/run-types | The three run types (change, create, adapter) from the live registry. | |
forge_list_stop_conditions | List stop conditions | read | yes | GET /api/v1/stop-conditions | The five stop conditions, their required parameters and their precedence. | |
forge_list_refresh_modes | List refresh modes | read | yes | GET /api/v1/refresh-modes | The refresh modes for a self-generation run's prompt set. | |
forge_list_selectors | List selectors | read | yes | GET /api/v1/selectors | The selector and grader plugins (rule, judge model, reference match, human review, composite) from the live registry. | |
forge_evaluate_completions | Evaluate completions | write | yes | POST /api/v1/selectors/evaluate | Run a selector configuration over completions and return each verdict. | |
forge_list_approvals | List approvals | read | yes | GET /api/v1/approvals | Approval requests: action, who asked, the summary the operator decides on, status, expiry, and the outcome once decided. | |
forge_list_approval_actions | List approval actions | read | yes | GET /api/v1/approvals/actions | The six approval actions and what each means. | |
forge_get_approval_status | Get approval status | read | yes | GET /api/v1/approvals/{approval_id} | One approval: pending, executing, executed (result holds the route's answer), failed (error holds its refusal), rejected (with reason) or expired. |
runs (21)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_list_runs | List runs | read | yes | GET /api/v1/runs | Every run, newest first, a page at a time, with the filter vocabularies. | |
forge_get_run | Get run | read | yes | GET /api/v1/runs/{run_id} | One run's record: status, last step, liveness (heartbeat age against the janitor's threshold), stop reason, failure, attachment. | |
forge_list_steps | List steps | read | yes | GET /api/v1/runs/{run_id}/steps | A run's step records, newest first: loss, grad norm, learning rate, wall time. | |
forge_get_run_definition | Get run definition | read | yes | GET /api/v1/runs/{run_id}/definition | What the run was asked to do (submitted) and what that resolved to. | |
forge_get_run_stop_conditions | Get run stop conditions | read | yes | GET /api/v1/runs/{run_id}/stop-conditions | Every enabled stop condition with its target, latest value and headroom. | |
forge_list_boundaries | List boundaries | read | yes | GET /api/v1/runs/{run_id}/boundaries | The run's boundary records (test, retention, save, stop), newest first. | |
forge_list_batches | List batches | read | yes | GET /api/v1/runs/{run_id}/batches | The batch records the run consumed: where each came from, by content hash. | |
forge_get_batch | Get batch | read | yes | GET /api/v1/runs/{run_id}/batches/{batch_sha256} | One batch record. | |
forge_list_scores | List scores | read | yes | GET /api/v1/runs/{run_id}/scores | The run's test and retention scores, each with its sample size and provider. | |
forge_get_scores_at_step | Get scores at step | read | yes | GET /api/v1/runs/{run_id}/scores/{step} | The scores recorded at one step, with their per-item detail. | |
forge_get_run_review | Get run review | read | yes | GET /api/v1/runs/{run_id}/review | The run's human-review block: queue counts in miDataworks, or not configured. | |
forge_validate_run | Validate run | write | yes | POST /api/v1/runs/validate | Validate a run definition with the same validator the create path uses. | |
forge_estimate_budget | Estimate budget | write | yes | POST /api/v1/budget/estimate | Will this run fit? The memory estimate beside each visible GPU's free memory. | |
forge_preflight_signal_source | Preflight signal source | read | yes | POST /api/v1/signal-sources/preflight | Check a signal source can be read (parts present, columns resolved) without a run. | |
forge_submit_run | Submit run | write | yes | POST /api/v1/runs | gpu_start / hotupdate_attach | Record an acquisition-only run: load, create or attach a model with a flat optimizer configuration (mode, path|repo|config, learning_rate, warmup_steps, batch_size, ...). |
forge_define_run | Define run | destructive | yes | POST /api/v1/runs/define | gpu_start / hotupdate_attach | Define and start a training run from a full run definition (model source, run type, configuration, signal source, pack or parts, stop conditions, cadences, seed, GPU). |
forge_evaluate_now | Evaluate now | write | yes | POST /api/v1/runs/{run_id}/evaluate | gpu_start | Evaluate a run now, out of cadence, against its pinned provider (test and/or retention). |
forge_cancel_run | Cancel run | destructive | yes | POST /api/v1/runs/{run_id}/cancel | Request a cooperative stop: the run stops at its next step boundary. | |
forge_archive_run | Archive run | write | yes | POST /api/v1/runs/{run_id}/archive | Hide a finished (completed, failed or cancelled) run from the default run lists. | |
forge_purge | Purge | destructive | yes | POST /api/v1/parts/{item_id}/purgePOST /api/v1/runs/{item_id}/purge | purge | Permanently delete one ARCHIVED run (kind run: its rows, checkpoints and trainer state) or part (kind part: its rows and files); a tombstone stays. |
forge_unarchive_run | Unarchive run | write | yes | POST /api/v1/runs/{run_id}/unarchive | Return an archived run to the default run lists. |
inputs (9)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_list_signal_sources | List signal sources | read | yes | GET /api/v1/signal-sources | The four signal sources (corpus, self-generation, preference pairs, scored completions) and what each needs. | |
forge_list_parts | List parts | read | yes | GET /api/v1/parts | The indexed dataset parts (prompt sets, corpora, test and retention sets...). | |
forge_get_part | Get part | read | yes | GET /api/v1/parts/{part_id} | One part: its provenance, splits and content hash. | |
forge_validate_part | Validate part | read | yes | POST /api/v1/parts/validate | Validate a part manifest against the vendored contract. | |
forge_import_part | Import part | write | yes | POST /api/v1/parts/import | Import a dataset part (from a directory or miDataworks). | |
forge_midataworks_status | miDataworks status | read | yes | GET /api/v1/midataworks/status | Whether miDataworks is configured and reachable, and what is unavailable without it. | |
forge_midataworks_available_parts | miDataworks available parts | read | yes | GET /api/v1/midataworks/available-parts | Dataset versions miDataworks offers as parts; refuses by name when not configured. | |
forge_archive_part | Archive part | write | yes | POST /api/v1/parts/{part_id}/archive | Hide a part from the default part lists and pickers. | |
forge_unarchive_part | Unarchive part | write | yes | POST /api/v1/parts/{part_id}/unarchive | Return an archived part to the default part lists. |
checkpoints (8)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_list_all_checkpoints | List all checkpoints | read | yes | GET /api/v1/checkpoints | Every indexed checkpoint across runs. | |
forge_list_checkpoints | List checkpoints | read | yes | GET /api/v1/runs/{run_id}/checkpoints | One run's checkpoints, by step. | |
forge_get_checkpoint | Get checkpoint | read | yes | GET /api/v1/runs/{run_id}/checkpoints/{step} | One checkpoint's manifest: parent, base model, weights hash, scores. | |
forge_verify_checkpoint | Verify checkpoint | read | yes | POST /api/v1/runs/{run_id}/checkpoints/{step}/verify | Recompute a checkpoint's weights hash against its manifest. | |
forge_get_checkpoint_lineage | Get checkpoint lineage | read | yes | GET /api/v1/runs/{run_id}/checkpoints/{step}/lineage | The parent chain, walked through manifests to the root. | |
forge_get_tree | Get tree | read | yes | GET /api/v1/tree | The artifact forest: checkpoints joined on parent, adapters on their base. | |
forge_request_save | Request save | write | yes | POST /api/v1/runs/{run_id}/checkpoints | Ask a running run to save at its next boundary. | |
forge_plan_branch | Plan branch | read | yes | POST /api/v1/runs/{run_id}/checkpoints/{step}/branch | Plan a branch from any checkpoint: a new run id, parent = this checkpoint. |
hotupdate (3)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_plan_continue | Plan continue | read | yes | POST /api/v1/runs/{run_id}/continue | Plan continuing a run from a checkpoint: which checkpoint, whether its trainer state is restored or fresh, and why. | |
forge_continue_run | Continue run | destructive | yes | POST /api/v1/runs/{run_id}/continue | hotupdate_attach | Continue an attached run from the checkpoint miServer saved for it: the checkpoint is verified, the trainer state restored, and a new attempt of the same run id starts. |
forge_attachment_status | Attachment status | read | yes | GET /api/v1/attachment | miServer's attachment state now, read live: configured, reachable, attached, holder, resident model, weights state. |
adapters (4)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_list_adapters | List adapters | read | yes | GET /api/v1/adapters | Every adapter, with its base, rank and scaling. | |
forge_get_adapter | Get adapter | read | yes | GET /api/v1/adapters/{name} | One adapter's manifest. | |
forge_list_merges | List merges | read | yes | GET /api/v1/merges | The merge record: written, interrupted or refused, each with its reason. | |
forge_merge_adapter | Merge adapter | write | yes | POST /api/v1/adapters/{name}/merge | gpu_start | Merge an adapter into its base, writing a merged checkpoint of the named run at the named step. |
packs (10)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_list_packs | List packs | read | yes | GET /api/v1/packs | Every pack version, with its domain, validity and the runs that used it. | |
forge_get_pack | Get pack | read | yes | GET /api/v1/packs/{pack_id}/versions/{version} | One pack version: its slots and where each part comes from. | |
forge_get_pack_validity | Get pack validity | read | yes | GET /api/v1/packs/{pack_id}/versions/{version}/validity | Whether a pack version can define a run, and every missing or unresolved slot. | |
forge_get_pack_lineage | Get pack lineage | read | yes | GET /api/v1/packs/{pack_id}/versions/{version}/lineage | Where a pack version came from (cloned from, imported) and what derives from it. | |
forge_export_pack | Export pack | read | yes | GET /api/v1/packs/{pack_id}/versions/{version}/export | The portable pack document, for another installation's forge_import_pack. | |
forge_get_pack_part_ref | Get pack part reference | read | yes | GET /api/v1/pack-part-refs/{part_id} | An indexed part as the reference a pack slot pins. | |
forge_create_pack | Create pack | write | yes | POST /api/v1/packs | Create a pack version from slot documents. | |
forge_import_pack | Import pack | write | yes | POST /api/v1/packs/import | Import an exported pack document; an unresolvable one is stored and reported. | |
forge_clone_pack | Clone pack | write | yes | POST /api/v1/packs/{pack_id}/versions/{version}/clone | Clone a pack version under a new name; the derivation is recorded. | |
forge_delete_pack | Delete pack | destructive | yes | DELETE /api/v1/packs/{pack_id}/versions/{version} | delete | Delete a pack version. |
drafts (10)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_list_drafts | List drafts | read | yes | GET /api/v1/pack-drafts | Every pack draft in progress, with its current step. | |
forge_get_draft | Get draft | read | yes | GET /api/v1/pack-drafts/{draft_id} | One draft: its answers so far and each step's state. | |
forge_review_draft | Review draft | read | yes | GET /api/v1/pack-drafts/{draft_id}/validity | Step 7: what is still missing, by name. | |
forge_create_draft | Create draft | write | yes | POST /api/v1/pack-drafts | Start a pack draft. | |
forge_commit_draft_step | Commit draft step | write | yes | PUT /api/v1/pack-drafts/{draft_id}/steps/{number} | Commit one step's answers. | |
forge_sample_slot | Sample slot | read | yes | POST /api/v1/pack-drafts/{draft_id}/samples/{slot} | A seeded sample of a slot's part, for the authoring panel. | |
forge_score_sample | Score sample | write | yes | POST /api/v1/pack-drafts/{draft_id}/samples/{slot}/score | Score a slot's sample with a selector or grader through a provider. | |
forge_dry_run_draft | Dry run draft | write | yes | POST /api/v1/pack-drafts/{draft_id}/dry-run | Try the draft's selector on sampled completions and show each verdict, before committing the pack. | |
forge_commit_draft | Commit draft | write | yes | POST /api/v1/pack-drafts/{draft_id}/commit | Commit a complete draft as a pack version. | |
forge_delete_draft | Delete draft | destructive | yes | DELETE /api/v1/pack-drafts/{draft_id} | delete | Delete a pack draft. |
chains (4)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_list_chains | List chains | read | yes | GET /api/v1/chains | Every chain, newest first, with its position, status and halt code. | |
forge_get_chain | Get chain | read | yes | GET /api/v1/chains/{chain_id} | One chain: each stage's outcome and the advance decision for each finished stage. | |
forge_create_chain | Create chain | destructive | yes | POST /api/v1/chains | gpu_start / hotupdate_attach | Create a chain: two or more run definitions that run one after another on one GPU, each stage starting when the previous one meets its advance_on conditions. |
forge_stop_chain | Stop chain | destructive | yes | POST /api/v1/chains/{chain_id}/stop | Halt a chain and stop its running stage. |
settings (4)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_get_settings | Get settings | read | yes | GET /api/v1/settings | Every setting: effective value, source (env or override) and whether it is runtime-writable. | |
forge_get_settings_history | Get settings history | read | yes | GET /api/v1/settings/history | The settings change history, newest first: each change's old and new value, who made it (the operator, or an agent with the approval that let it run) and why. | |
forge_set_setting | Set setting | destructive | yes | PUT /api/v1/settings/{key} | config_write | Set a runtime override for an allow-listed setting (checkpoint pruning, miServer and miDataworks URLs, log_level, hot-update timeouts and tolerances). |
forge_reset_setting | Reset setting | destructive | yes | DELETE /api/v1/settings/{key} | config_write | Clear a runtime override; the environment value applies again. |
wsp (15)
| Tool | Title | Hint | Output schema | Calls | Waits for | What it does |
|---|---|---|---|---|---|---|
forge_wsp_start_run | WSP start run | write | yes | POST /api/v1/wsp/runs | wsp_session | Start a weight-space programming session: an editor LLM reads and edits the bundle's weights in an isolated worker, within the frozen token, cost and time budget. |
forge_wsp_validate_run | WSP validate run | read | yes | POST /api/v1/wsp/runs/validate | Dry-run a WSP start body: freeze it exactly as forge_wsp_start_run would, with the same checks and the same refusals (the bundle, the endpoint and its runs_refused, the protocol test, the budgets, change limits, observation tools, thinking, paging, python, sensitivity), and return what the run would store: the frozen request, its request_sha256, the approval action the start would file (null when it would run at once), the endpoint's locality, the sensitivity and the budgets. | |
forge_wsp_test_endpoint_protocol | WSP test endpoint protocol | write | yes | POST /api/v1/wsp/endpoints/{endpoint_id}/protocol-test | wsp_session_external | Test an editor endpoint's action protocol (tool_calls or structured, the operator's setting on the endpoint): a short inspect session of miwsp_engine on miForge's built-in test bundle, through the normal run path, the gateway and its metering. |
forge_wsp_get_pool | WSP get pool | read | yes | GET /api/v1/wsp/pool | Read the WSP worker pool: how many workers are busy, idle, restarting (its session ended and its pod is being replaced; it takes work again once a fresh pod answers) or not answering, the pool size and the provisioned maximum, runs queued per editor endpoint, and active runs that share one server. | |
forge_wsp_list_heldout_uses | WSP list heldout uses | read | yes | GET /api/v1/wsp/heldout-uses | List how many times each held-out set has been scored: one row per owner, set name and row_ids_sha256, with heldout_uses, last_used_at and last_candidate_id. | |
forge_wsp_list_endpoints | WSP list endpoints | read | yes | GET /api/v1/wsp/endpoints | List the editor endpoints WSP sessions can run on: each one's id, kind, base URL, model, locality, serving, action protocol, thinking, output cap, paging, history mode, output ceiling, whether a key is sealed, the context window (stated, read at registration, read by the latest run, what the next run expects and what a run uses when its read fails), runs_refused (why a start would be refused today) and the latest protocol test. | |
forge_wsp_register_endpoint | WSP register endpoint | write | yes | POST /api/v1/wsp/endpoints | wsp_endpoint_register | Propose a LOCAL editor endpoint for WSP sessions: an OpenAI-compatible or Anthropic server on a private, loopback or cluster host (for example miServer in the cluster, serving: miserver). |
forge_wsp_get_run | WSP get run | read | yes | GET /api/v1/wsp/runs/{run_id}/record | Read one WSP run (an id starting wsp_; forge_get_run reads training runs only): its row as the WSP run list shows it (status, stop reason, outcome, failure, the window and output ceiling the push used and their source, editor_wait_since (when it began waiting for its editor model; a queued run with it set is waiting now), refused, repeated and kernel-restart counts, handoffs, thinking, paging counters, usage, metered cost and cache tokens, and live progress while it runs) and its miforge.wsp-run/v1 document (the frozen request, sensitivity, usage, hashes, replay, candidate, verdict and lineage). | |
forge_wsp_get_transcript | WSP get transcript | read | yes | GET /api/v1/wsp/runs/{run_id}/transcript | Read a page of a WSP run's transcript: the editor's turns, tool calls and tool results as the worker recorded them, served as data (never interpreted), oldest first. | |
forge_wsp_get_run_ledger | WSP get run ledger | read | yes | GET /api/v1/wsp/runs/{run_id}/ledger | Read a WSP run's gateway ledger: each reservation (the endpoint, whether external, the worst-case tokens and USD held before an editor call, when it opened and when it settled, at what cost) and each usage row (the call's sequence number, endpoint, time, tokens in and out, cost, cache tokens, outcome, HTTP status and latency), oldest first, with totals over every row of the run and the endpoint ids that appear. | |
forge_wsp_replay_run | WSP replay run | write | yes | POST /api/v1/wsp/runs/{run_id}/replay | Replay a completed WSP session or program run from its stored transcript: a new run (style replay) that re-executes the recorded tool calls on the same bundle in a worker, with no editor LLM, no gateway, no token and no GPU, so it costs no tokens and no USD, and files no approval: it is queued and starts when a pool worker is free. | |
forge_wsp_cancel_run | WSP cancel run | destructive | yes | POST /api/v1/wsp/runs/{run_id}/cancel | Cancel a queued or running WSP run: it becomes cancelled at once; a running run's worker result is discarded unread. | |
forge_wsp_rerun_program | WSP rerun program | write | yes | POST /api/v1/wsp/programs/{program_sha256}/rerun | Rerun a stored WSP program (a program run's program_sha256, in forge_wsp_get_run) on a support set: practice or practice_train. | |
forge_wsp_inspect_weights | WSP inspect weights | read | yes | POST /api/v1/wsp/weight-ops/inspect | Inspect an imported WSP bundle's weights, with no LLM: per-tensor statistics and, for the tensor names in cosine_with, their pairwise cosines. | |
forge_wsp_patch | WSP patch | read | yes | GET /api/v1/wsp/candidates/{candidate_id}/lineageGET /api/v1/wsp/candidates/{cid}/patch/edit.npzGET /api/v1/wsp/candidates/{cid}/patch/patch.jsonPOST /api/v1/wsp/patches/stackPOST /api/v1/wsp/patches/verify | Check a WSP candidate's patch against its bundle, with no LLM; writes nothing. |
REST contract for proxies
What this server - and a future miWorkbench proxy - relies on. Additive changes only.
| Item | Value |
|---|---|
| Base | Backend under /api/, REST under /api/v1 |
| Health | GET /api/health: {"status", "dependencies": {name: {"status", "detail"}}, "integrations"}; 200, or 503 with the same body when a dependency is degraded |
| Success | Plain JSON resources |
| Error | {"error": {"code", "message", "details"}} |
| Header | X-Miforge-Agent: agent:<name> (lower case, digits, hyphens; at most 48 characters after agent:). This server sends agent:forge-mcp; a miWorkbench proxy sends agent:miworkbench-mcp (agent:mistudio-mcp before miWorkbench was renamed; both are accepted, and stored rows keep the id they were written with). A malformed or empty header is refused on every route with 400 invalid_agent_identity. A request without it is the operator's |
| Pending | 202 with {"approval_id", "status": "pending", "action", "summary", "request_digest", "expires_at", "hint"} |
| Status | GET /api/v1/approvals/{id}: pending, executing, executed (with result), failed (with error), rejected (with reason), expired |
| Refusals | An agent approve or reject is 403 agent_cannot_decide; a second approve is 409 approval_not_pending |
| Approval actions | gpu_start, hotupdate_attach, delete, config_write |
| Class by request | A run, define or chain whose (stage-0) model_source.mode is attach waits for hotupdate_attach; continue waits only with submit: true |
| Validation first | A gated request is validated with the route's own code before it is stored; an invalid one is refused at once and never queued |
| Digest | An approval binds to the exact stored request; it executes once, in-process, with that payload |
| Expiry | A pending approval expires after 24 hours |
| Transport | Streamable HTTP on port 8765 at /mcp; Authorization: Bearer <MCP_AUTH_TOKEN> on every request but /health |
| OpenAPI | GET /api/openapi.json; gated operations carry x-approval-action (and x-approval-escalation) |