Skip to main content

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)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_healthHealthreadyesGET /api/healthmiForge's health: PostgreSQL, Redis and each optional integration (miServer, miDataworks, the activation source), each by name with a reason when down.
forge_howtoHow-to guidereadyesnone (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_resourcesHost resourcesreadyesGET /api/v1/host/resourcesThe 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_gpusList GPUsreadyesGET /api/v1/gpusThe visible GPUs by UUID (never by index), with name and free memory.
forge_list_model_sourcesList model sourcesreadyesGET /api/v1/models/sourcesEvery 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_modelsList local modelsreadyesGET /api/v1/models/localModel directories under the model roots: path, architecture, weights, tokenizer.
forge_list_local_tokenizersList local tokenizersreadyesGET /api/v1/tokenizers/localDirectories under the model roots with tokenizer files at their root (a tokenizer, model or checkpoint directory).
forge_check_hub_revisionCheck Hub revisionreadyesGET /api/v1/hub/revisionResolve 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_providersList providersreadyesGET /api/v1/providersThe inference providers (in-process, or any OpenAI-compatible endpoint) and each one's availability.
forge_check_providerCheck providerwriteyesPOST /api/v1/providers/{name}/checkSend one prompt to a provider and return its answer.
forge_list_run_typesList run typesreadyesGET /api/v1/run-typesThe three run types (change, create, adapter) from the live registry.
forge_list_stop_conditionsList stop conditionsreadyesGET /api/v1/stop-conditionsThe five stop conditions, their required parameters and their precedence.
forge_list_refresh_modesList refresh modesreadyesGET /api/v1/refresh-modesThe refresh modes for a self-generation run's prompt set.
forge_list_selectorsList selectorsreadyesGET /api/v1/selectorsThe selector and grader plugins (rule, judge model, reference match, human review, composite) from the live registry.
forge_evaluate_completionsEvaluate completionswriteyesPOST /api/v1/selectors/evaluateRun a selector configuration over completions and return each verdict.
forge_list_approvalsList approvalsreadyesGET /api/v1/approvalsApproval requests: action, who asked, the summary the operator decides on, status, expiry, and the outcome once decided.
forge_list_approval_actionsList approval actionsreadyesGET /api/v1/approvals/actionsThe six approval actions and what each means.
forge_get_approval_statusGet approval statusreadyesGET /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)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_list_runsList runsreadyesGET /api/v1/runsEvery run, newest first, a page at a time, with the filter vocabularies.
forge_get_runGet runreadyesGET /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_stepsList stepsreadyesGET /api/v1/runs/{run_id}/stepsA run's step records, newest first: loss, grad norm, learning rate, wall time.
forge_get_run_definitionGet run definitionreadyesGET /api/v1/runs/{run_id}/definitionWhat the run was asked to do (submitted) and what that resolved to.
forge_get_run_stop_conditionsGet run stop conditionsreadyesGET /api/v1/runs/{run_id}/stop-conditionsEvery enabled stop condition with its target, latest value and headroom.
forge_list_boundariesList boundariesreadyesGET /api/v1/runs/{run_id}/boundariesThe run's boundary records (test, retention, save, stop), newest first.
forge_list_batchesList batchesreadyesGET /api/v1/runs/{run_id}/batchesThe batch records the run consumed: where each came from, by content hash.
forge_get_batchGet batchreadyesGET /api/v1/runs/{run_id}/batches/{batch_sha256}One batch record.
forge_list_scoresList scoresreadyesGET /api/v1/runs/{run_id}/scoresThe run's test and retention scores, each with its sample size and provider.
forge_get_scores_at_stepGet scores at stepreadyesGET /api/v1/runs/{run_id}/scores/{step}The scores recorded at one step, with their per-item detail.
forge_get_run_reviewGet run reviewreadyesGET /api/v1/runs/{run_id}/reviewThe run's human-review block: queue counts in miDataworks, or not configured.
forge_validate_runValidate runwriteyesPOST /api/v1/runs/validateValidate a run definition with the same validator the create path uses.
forge_estimate_budgetEstimate budgetwriteyesPOST /api/v1/budget/estimateWill this run fit? The memory estimate beside each visible GPU's free memory.
forge_preflight_signal_sourcePreflight signal sourcereadyesPOST /api/v1/signal-sources/preflightCheck a signal source can be read (parts present, columns resolved) without a run.
forge_submit_runSubmit runwriteyesPOST /api/v1/runsgpu_start / hotupdate_attachRecord 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_runDefine rundestructiveyesPOST /api/v1/runs/definegpu_start / hotupdate_attachDefine 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_nowEvaluate nowwriteyesPOST /api/v1/runs/{run_id}/evaluategpu_startEvaluate a run now, out of cadence, against its pinned provider (test and/or retention).
forge_cancel_runCancel rundestructiveyesPOST /api/v1/runs/{run_id}/cancelRequest a cooperative stop: the run stops at its next step boundary.
forge_archive_runArchive runwriteyesPOST /api/v1/runs/{run_id}/archiveHide a finished (completed, failed or cancelled) run from the default run lists.
forge_purgePurgedestructiveyesPOST /api/v1/parts/{item_id}/purge
POST /api/v1/runs/{item_id}/purge
purgePermanently 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_runUnarchive runwriteyesPOST /api/v1/runs/{run_id}/unarchiveReturn an archived run to the default run lists.

inputs (9)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_list_signal_sourcesList signal sourcesreadyesGET /api/v1/signal-sourcesThe four signal sources (corpus, self-generation, preference pairs, scored completions) and what each needs.
forge_list_partsList partsreadyesGET /api/v1/partsThe indexed dataset parts (prompt sets, corpora, test and retention sets...).
forge_get_partGet partreadyesGET /api/v1/parts/{part_id}One part: its provenance, splits and content hash.
forge_validate_partValidate partreadyesPOST /api/v1/parts/validateValidate a part manifest against the vendored contract.
forge_import_partImport partwriteyesPOST /api/v1/parts/importImport a dataset part (from a directory or miDataworks).
forge_midataworks_statusmiDataworks statusreadyesGET /api/v1/midataworks/statusWhether miDataworks is configured and reachable, and what is unavailable without it.
forge_midataworks_available_partsmiDataworks available partsreadyesGET /api/v1/midataworks/available-partsDataset versions miDataworks offers as parts; refuses by name when not configured.
forge_archive_partArchive partwriteyesPOST /api/v1/parts/{part_id}/archiveHide a part from the default part lists and pickers.
forge_unarchive_partUnarchive partwriteyesPOST /api/v1/parts/{part_id}/unarchiveReturn an archived part to the default part lists.

checkpoints (8)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_list_all_checkpointsList all checkpointsreadyesGET /api/v1/checkpointsEvery indexed checkpoint across runs.
forge_list_checkpointsList checkpointsreadyesGET /api/v1/runs/{run_id}/checkpointsOne run's checkpoints, by step.
forge_get_checkpointGet checkpointreadyesGET /api/v1/runs/{run_id}/checkpoints/{step}One checkpoint's manifest: parent, base model, weights hash, scores.
forge_verify_checkpointVerify checkpointreadyesPOST /api/v1/runs/{run_id}/checkpoints/{step}/verifyRecompute a checkpoint's weights hash against its manifest.
forge_get_checkpoint_lineageGet checkpoint lineagereadyesGET /api/v1/runs/{run_id}/checkpoints/{step}/lineageThe parent chain, walked through manifests to the root.
forge_get_treeGet treereadyesGET /api/v1/treeThe artifact forest: checkpoints joined on parent, adapters on their base.
forge_request_saveRequest savewriteyesPOST /api/v1/runs/{run_id}/checkpointsAsk a running run to save at its next boundary.
forge_plan_branchPlan branchreadyesPOST /api/v1/runs/{run_id}/checkpoints/{step}/branchPlan a branch from any checkpoint: a new run id, parent = this checkpoint.

hotupdate (3)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_plan_continuePlan continuereadyesPOST /api/v1/runs/{run_id}/continuePlan continuing a run from a checkpoint: which checkpoint, whether its trainer state is restored or fresh, and why.
forge_continue_runContinue rundestructiveyesPOST /api/v1/runs/{run_id}/continuehotupdate_attachContinue 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_statusAttachment statusreadyesGET /api/v1/attachmentmiServer's attachment state now, read live: configured, reachable, attached, holder, resident model, weights state.

adapters (4)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_list_adaptersList adaptersreadyesGET /api/v1/adaptersEvery adapter, with its base, rank and scaling.
forge_get_adapterGet adapterreadyesGET /api/v1/adapters/{name}One adapter's manifest.
forge_list_mergesList mergesreadyesGET /api/v1/mergesThe merge record: written, interrupted or refused, each with its reason.
forge_merge_adapterMerge adapterwriteyesPOST /api/v1/adapters/{name}/mergegpu_startMerge an adapter into its base, writing a merged checkpoint of the named run at the named step.

packs (10)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_list_packsList packsreadyesGET /api/v1/packsEvery pack version, with its domain, validity and the runs that used it.
forge_get_packGet packreadyesGET /api/v1/packs/{pack_id}/versions/{version}One pack version: its slots and where each part comes from.
forge_get_pack_validityGet pack validityreadyesGET /api/v1/packs/{pack_id}/versions/{version}/validityWhether a pack version can define a run, and every missing or unresolved slot.
forge_get_pack_lineageGet pack lineagereadyesGET /api/v1/packs/{pack_id}/versions/{version}/lineageWhere a pack version came from (cloned from, imported) and what derives from it.
forge_export_packExport packreadyesGET /api/v1/packs/{pack_id}/versions/{version}/exportThe portable pack document, for another installation's forge_import_pack.
forge_get_pack_part_refGet pack part referencereadyesGET /api/v1/pack-part-refs/{part_id}An indexed part as the reference a pack slot pins.
forge_create_packCreate packwriteyesPOST /api/v1/packsCreate a pack version from slot documents.
forge_import_packImport packwriteyesPOST /api/v1/packs/importImport an exported pack document; an unresolvable one is stored and reported.
forge_clone_packClone packwriteyesPOST /api/v1/packs/{pack_id}/versions/{version}/cloneClone a pack version under a new name; the derivation is recorded.
forge_delete_packDelete packdestructiveyesDELETE /api/v1/packs/{pack_id}/versions/{version}deleteDelete a pack version.

drafts (10)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_list_draftsList draftsreadyesGET /api/v1/pack-draftsEvery pack draft in progress, with its current step.
forge_get_draftGet draftreadyesGET /api/v1/pack-drafts/{draft_id}One draft: its answers so far and each step's state.
forge_review_draftReview draftreadyesGET /api/v1/pack-drafts/{draft_id}/validityStep 7: what is still missing, by name.
forge_create_draftCreate draftwriteyesPOST /api/v1/pack-draftsStart a pack draft.
forge_commit_draft_stepCommit draft stepwriteyesPUT /api/v1/pack-drafts/{draft_id}/steps/{number}Commit one step's answers.
forge_sample_slotSample slotreadyesPOST /api/v1/pack-drafts/{draft_id}/samples/{slot}A seeded sample of a slot's part, for the authoring panel.
forge_score_sampleScore samplewriteyesPOST /api/v1/pack-drafts/{draft_id}/samples/{slot}/scoreScore a slot's sample with a selector or grader through a provider.
forge_dry_run_draftDry run draftwriteyesPOST /api/v1/pack-drafts/{draft_id}/dry-runTry the draft's selector on sampled completions and show each verdict, before committing the pack.
forge_commit_draftCommit draftwriteyesPOST /api/v1/pack-drafts/{draft_id}/commitCommit a complete draft as a pack version.
forge_delete_draftDelete draftdestructiveyesDELETE /api/v1/pack-drafts/{draft_id}deleteDelete a pack draft.

chains (4)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_list_chainsList chainsreadyesGET /api/v1/chainsEvery chain, newest first, with its position, status and halt code.
forge_get_chainGet chainreadyesGET /api/v1/chains/{chain_id}One chain: each stage's outcome and the advance decision for each finished stage.
forge_create_chainCreate chaindestructiveyesPOST /api/v1/chainsgpu_start / hotupdate_attachCreate 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_chainStop chaindestructiveyesPOST /api/v1/chains/{chain_id}/stopHalt a chain and stop its running stage.

settings (4)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_get_settingsGet settingsreadyesGET /api/v1/settingsEvery setting: effective value, source (env or override) and whether it is runtime-writable.
forge_get_settings_historyGet settings historyreadyesGET /api/v1/settings/historyThe 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_settingSet settingdestructiveyesPUT /api/v1/settings/{key}config_writeSet a runtime override for an allow-listed setting (checkpoint pruning, miServer and miDataworks URLs, log_level, hot-update timeouts and tolerances).
forge_reset_settingReset settingdestructiveyesDELETE /api/v1/settings/{key}config_writeClear a runtime override; the environment value applies again.

wsp (15)​

ToolTitleHintOutput schemaCallsWaits forWhat it does
forge_wsp_start_runWSP start runwriteyesPOST /api/v1/wsp/runswsp_sessionStart 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_runWSP validate runreadyesPOST /api/v1/wsp/runs/validateDry-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_protocolWSP test endpoint protocolwriteyesPOST /api/v1/wsp/endpoints/{endpoint_id}/protocol-testwsp_session_externalTest 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_poolWSP get poolreadyesGET /api/v1/wsp/poolRead 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_usesWSP list heldout usesreadyesGET /api/v1/wsp/heldout-usesList 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_endpointsWSP list endpointsreadyesGET /api/v1/wsp/endpointsList 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_endpointWSP register endpointwriteyesPOST /api/v1/wsp/endpointswsp_endpoint_registerPropose 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_runWSP get runreadyesGET /api/v1/wsp/runs/{run_id}/recordRead 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_transcriptWSP get transcriptreadyesGET /api/v1/wsp/runs/{run_id}/transcriptRead 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_ledgerWSP get run ledgerreadyesGET /api/v1/wsp/runs/{run_id}/ledgerRead 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_runWSP replay runwriteyesPOST /api/v1/wsp/runs/{run_id}/replayReplay 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_runWSP cancel rundestructiveyesPOST /api/v1/wsp/runs/{run_id}/cancelCancel a queued or running WSP run: it becomes cancelled at once; a running run's worker result is discarded unread.
forge_wsp_rerun_programWSP rerun programwriteyesPOST /api/v1/wsp/programs/{program_sha256}/rerunRerun 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_weightsWSP inspect weightsreadyesPOST /api/v1/wsp/weight-ops/inspectInspect 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_patchWSP patchreadyesGET /api/v1/wsp/candidates/{candidate_id}/lineage
GET /api/v1/wsp/candidates/{cid}/patch/edit.npz
GET /api/v1/wsp/candidates/{cid}/patch/patch.json
POST /api/v1/wsp/patches/stack
POST /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.

ItemValue
BaseBackend under /api/, REST under /api/v1
HealthGET /api/health: {"status", "dependencies": {name: {"status", "detail"}}, "integrations"}; 200, or 503 with the same body when a dependency is degraded
SuccessPlain JSON resources
Error{"error": {"code", "message", "details"}}
HeaderX-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
Pending202 with {"approval_id", "status": "pending", "action", "summary", "request_digest", "expires_at", "hint"}
StatusGET /api/v1/approvals/{id}: pending, executing, executed (with result), failed (with error), rejected (with reason), expired
RefusalsAn agent approve or reject is 403 agent_cannot_decide; a second approve is 409 approval_not_pending
Approval actionsgpu_start, hotupdate_attach, delete, config_write
Class by requestA run, define or chain whose (stage-0) model_source.mode is attach waits for hotupdate_attach; continue waits only with submit: true
Validation firstA gated request is validated with the route's own code before it is stored; an invalid one is refused at once and never queued
DigestAn approval binds to the exact stored request; it executes once, in-process, with that payload
ExpiryA pending approval expires after 24 hours
TransportStreamable HTTP on port 8765 at /mcp; Authorization: Bearer <MCP_AUTH_TOKEN> on every request but /health
OpenAPIGET /api/openapi.json; gated operations carry x-approval-action (and x-approval-escalation)