Skip to content

Latest commit

 

History

History
1581 lines (1282 loc) · 75.5 KB

mcp-tools.md

File metadata and controls

1581 lines (1282 loc) · 75.5 KB

MCP tools reference

Reference guide for AI agents and MCP clients working with muster's tools. This document covers the meta-tools interface and the built-in tools that muster provides for managing platform resources.

Meta-Tools (Primary Interface)

All tool access goes through these meta-tools. MCP clients see only these 13 meta-tools when they connect to muster. All other tools are accessed via call_tool.

Every client lists the meta-tools' full descriptions on connect, so they stay short: a summary line of at most 120 characters, then only what a model needs before a call. Meta-tools is generated from them (make tools-doc); this page carries the detail. Every meta-tool but call_tool is annotated read-only; call_tool, which runs whatever tool it is given, is annotated destructive and not idempotent. All are open-world: listing the catalogue first connects the session to the servers the person already granted.

Tool Discovery

Meta-Tool Description Arguments
list_tools List one bounded page of the session's tools (summarised; 50 per page by default) {"limit": 50, "offset": 0}
describe_tool Get detailed schema for a specific tool, and the call_tool call that invokes it {"name": "tool_name"}
filter_tools Discover tools cheaply (ranked, faceted, paginated) {"pattern": "...", "query": "...", "labels": {...}, "limit": 5}
list_core_tools List only muster core tools {}

list_tools — the paged catalogue

list_tools answers one page of the caller's catalogue, never the whole of it: an installation of realistic size exposes hundreds of tools, and the unpaged listing of a 450-tool toolset measured 400 KB — about 135k tokens that then ride in the model's context for every following call. Each entry is the discovery-tier projection (name, one-line summary, server, kind, annotations); the full description and the input schema of a tool stay behind describe_tool.

Argument Type Default Purpose
limit number 50 Max tools in this page (at least 1).
offset number 0 Tools to skip before this page.

The response carries total (tools in the caller's catalogue — the session's tools narrowed by the request's toolset), truncated (more tools exist beyond this page: fetch them with offset + limit), filtered_count (entries in this page), filters (the limit and offset applied), toolset (the request's X-muster-Toolset selectors when it declared one) and servers_requiring_auth (the servers a core_auth_login would unlock; neither paged nor narrowed by a toolset). An entry with no auth_tool and an error is a sign-in that cannot pass for this session (see core_auth_status): show the error, do not call core_auth_login. With aggregator.serverReadyWait bounded (the default), connecting names the servers the session is still connecting to when the listing returned: their tools are missing from it. List again until connecting is empty or absent; notifications/tools/list_changed is only a hint. A client that wants every tool — the muster CLI and REPL listings do — pages until truncated is false, or asks for a large limit.

Use list_tools for a bounded look at what is there; use filter_tools to find a tool and describe_tool to learn how to call it.

{
  "filters": {"case_sensitive": false, "include_schema": false, "limit": 50, "offset": 0},
  "total_tools": 450,
  "filtered_count": 50,
  "total": 450,
  "truncated": true,
  "tools": [
    {"name": "x_kubernetes_list_pods", "summary": "List pods in a namespace.", "server": "kubernetes", "kind": "tool", "annotations": {"readOnlyHint": true}}
  ],
  "servers_requiring_auth": [{"name": "github", "status": "auth_required", "auth_tool": "core_auth_login"}]
}

describe_tool — the authoritative detail, and how to call it

describe_tool returns one tool's full description and inputSchema together with its server, kind and annotations, and an invocation line naming the call that runs it. The downstream tool's title (its own, else its annotations' title) and outputSchema, the contract of the structuredContent it returns, are forwarded as well. title, annotations and outputSchema are omitted when the tool does not set them. approval and connectorAdmin are as in Tool approval. Every tool it can describe lives inside muster, where an MCP client sees only the meta-tools: issuing an aggregated tool's name as a tool call fails. Such a tool is reached through call_tool, and only through call_tool.

{
  "name": "x_kubernetes_list_pods",
  "title": "List pods",
  "description": "List pods in a namespace.",
  "server": "kubernetes",
  "kind": "tool",
  "annotations": {"readOnlyHint": true},
  "inputSchema": {"type": "object", "properties": {"namespace": {"type": "string"}}},
  "outputSchema": {"type": "object", "properties": {"items": {"type": "array"}}},
  "invocation": "Call it through the call_tool meta-tool: call_tool with {\"name\": \"x_kubernetes_list_pods\", \"arguments\": {...}}, arguments per inputSchema. Tools inside muster are not callable by name directly — only the meta-tools are."
}

filter_tools — the discovery tier

filter_tools is a cheap discovery tier, distinct from execution. Against a large fleet (hundreds of workflows) it returns a bounded, summarised, optionally ranked page rather than the full catalogue, so finding a tool costs a few hundred tokens instead of a full-catalogue dump.

Argument Type Default Purpose
pattern string — Glob match on the tool name (e.g. x_kubernetes_*).
description_filter string — Case-insensitive substring match on the full description.
query string — Natural-language query. When set, matches are relevance-ranked (field-weighted lexical BM25F over the name, the description's first line and the rest of the description — a match weighs most in the name, less in the first line and least below it; ubiquitous verbs like list/get are down-weighted so the discriminating noun drives ranking, and function words such as the or how are dropped from the query unless it has no other word; a plural matches its singular, so policies finds policy), returned best-first with a score; non-matching tools are dropped.
labels object — Label facets as key=value pairs. A tool must carry every given label to match. Only workflow tools carry labels today — they inherit the Workflow CRD's metadata.labels; core (core_*) and external (x_*) tools have none, so a labels facet currently scopes discovery to labelled workflows.
case_sensitive bool false Case-sensitive name matching.
include_schema bool false Return full descriptions and input schemas instead of one-line summaries.
limit number 5 Max tools per page.
offset number 0 Tools to skip before this page.
toolset string[] — Inline toolset selectors (preset:<name>, server:<name>, workflow:<name>, tool:<name>, at most 32) to resolve against the caller's catalogue. The response adds toolset (echo of the argument; without the argument, of the request's X-muster-Toolset, so a scoped caller can learn what bounds it), toolset_unmatched (selectors that selected nothing for the caller) and presets (with the argument or include_presets). With X-muster-Toolset also on the request, the argument resolves within the header's toolset and never widens it. See Toolsets.
include_presets bool false Add the known toolset presets (name, description, icon, built_in) to the response.

The response carries total (matches across the caller's catalogue), truncated (more matches exist beyond this page), and per-tool a one-line summary (plus score when ranked and labels when present), the owning server (omitted for workflows and core tools), the kind (tool | workflow | core) and the tool's annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint as the server declared them; for a workflow the derived readOnlyHint when every step tool is read-only; omitted when none). Each tool also carries its approval and, for a server tool, connectorAdmin (Tool approval). Get the authoritative full schema of a chosen tool with describe_tool before executing it — it carries the same server, kind, annotations, approval and connectorAdmin.

It also carries servers_requiring_auth when a sign-in would unlock a server whose tools the pattern could match once they are listed — every such server without a pattern; with x_slack_*, the slack server alone — each with name, status, auth_tool (core_auth_login, or error instead when the sign-in cannot pass for this session), tool_prefix and, for a family member, family, as list_tools reports them. Neither the toolset (toolset_requiring_auth, see Toolsets) nor the other filters narrow it, and it is not paged. A tool you cannot find may be one of theirs: an agent that filters for *slack* before the person has signed in to Slack gets no tool and servers_requiring_auth: [{"name": "slack", "auth_tool": "core_auth_login", …}], and calls core_auth_login with server: slack.

When the request declares a toolset (X-muster-Toolset header), every discovery meta-tool reads the catalogue intersected with it, call_tool refuses anything outside it (tool "<name>" is outside the toolset [<selectors>]), and an invalid toolset (empty, unknown preset, reserved toolset:, inline label:, more than 128 selectors, more than 8192 UTF-8 bytes joined by commas, malformed) is an error result on every meta-tool call. Without the header nothing changes.

# Rank workflows by intent instead of guessing a pattern
filter_tools(query="deploy an app to a cluster", limit=5)

# Scope discovery to a labelled subset
filter_tools(labels={"category": "observability"})

# Page through a broad match
filter_tools(pattern="*workflow*", limit=25, offset=25)

# A server the caller has not signed in to is named, not silently absent
filter_tools(pattern="x_slack_*")   # tools: [], servers_requiring_auth: [{"name": "slack", "auth_tool": "core_auth_login", …}]

Tool approval

list_tools, filter_tools and describe_tool report each tool's effective approval for the caller as approval, from its server's spec.approval (Tool approval):

Field Meaning
setting allow, ask or block. A block tool is never listed or described; call_tool refuses it as tool not found. A family tool drops the members that block it from its instance argument.
source tool (the tool's own entry), connector (the server's rule), unreviewed (no approval settings, or a core tool: allow), builtin (core_config_update_aggregator, _save and _reload, which always ask; for an agent caller, a floor), governance (agent caller on a governed platform: a tool outside the safe list, or a core tool that is not a read), unavailable (settings unreadable, MCPServer missing or CRD without spec.approval: reported ask, calls refused). During an API server outage listing and call use the last observed settings, else unavailable.
new true for a tool without its own entry on a server that has settings; it follows the rule.
unavailable On an ask tool, why muster cannot ask (no Valkey store, sign-in, public URL or person on the request, or a CRD without spec.approval); calls are refused until fixed. Omitted when muster can ask.

ask asks the person on muster's approval page (When a call asks). A client that got the page as a -32042 URL elicitation (it declared elicitation.url at initialize, 2025-11-25) is sent notifications/elicitation/complete with its elicitationId when the request is decided, without the decision; retry the call then. A workflow reports its strictest step (called workflows included) and asks once, up front. The report is evaluated for the caller: an agent sees floors and, on a governed platform, the governed default. filter_tools and core_mcpserver_list also return governance: trusted|governed.

A server tool also carries connectorAdmin: whether the caller may update MCPServers in the server's namespace (for a family tool, of every member), checked with a SelfSubjectAccessReview as the caller; in filesystem mode every caller is one.

{"name": "x_github_merge_pull_request", "server": "github", "kind": "tool",
 "approval": {"setting": "ask", "source": "connector", "new": true}, "connectorAdmin": true}

An agent's approval settings

An agent's tool list can carry Allow, Ask or Block per entry and a default (agent chart tools and default). agent-manager binds them to each Session it starts (PUT /session-bindings, accepted only from an approval sender, API). Every request of the Session resolves in this order:

  1. The connector's setting (the tool's entry, else the rule, else Allow).
  2. The agent's setting: the most specific entry selecting the tool (tool: before workflow: before server: before preset:; the strictest of equals), else default. tool: matches any alias of the tool; a family tool resolves per member.
  3. The stricter of the two. Exception: an agent Allow over the connector's Ask runs when the binding carries a grant for that entry, server and MCPServer UID naming the tool, which a connector admin gives through agent-manager's set_agent_approval. A tool that starts asking later is not covered; an Allow without a grant changes nothing; a connector's Block always holds.
  4. Floors and the governed default on top; a grant never lifts them.

An agent's Block hides the tool from that Session. approval then also carries admin (the connector's own setting) and entry (the deciding entry), and source can be agent or agent-exception (a granted Allow, audited as call_allowed_by_exception).

A request without bound settings (a Session agent-manager did not start) takes them from X-Muster-Tool-Approval: <selector>=<Setting>,...[,default=<Setting>], rendered by the agent chart. It carries no grants, so it only makes tools stricter; an unparsable value makes every tool ask. The client asserts it: a runtime that omits it (or a process in the sandbox calling muster itself) runs without the agent's Ask and Block. Only the settings agent-manager binds are authoritative.

filter_tools and describe_tool take agentTools ({"tools": [<selector> | {<selector>: "Allow"|"Ask"|"Block"}], "default", "grants": [{"entry", "server", "uid", "tools"}]}) to report what that agent would see. It changes nothing that runs and agent callers are refused it. Its selectors narrow the listing like toolset (both is refused); tools the agent's entries block are listed with {"setting": "block", "source": "agent"}; each server tool carries connectors ({"server", "namespace", "name", "uid", "tool"}) for agent-manager's connector-admin check and grant records.

{"name": "x_github_merge_pull_request", "server": "github", "kind": "tool",
 "approval": {"setting": "allow", "source": "agent-exception", "entry": "tool:x_github_merge_pull_request",
              "admin": {"setting": "ask", "source": "tool"}},
 "connectorAdmin": false,
 "connectors": [{"server": "github", "namespace": "muster", "name": "github", "uid": "…"}]}

Tool Execution

Meta-Tool Description Arguments
call_tool Execute any tool by name. With X-muster-Toolset on the request, only tools inside the toolset can be called; others are refused naming the toolset (see Toolsets). reason (at most 500 characters) is shown to the person as Agent says when an agent's call asks for approval; it is never bound into the approval or used to decide {"name": "tool_name", "arguments": {...}, "reason": "..."}

Through muster agent --mcp-server, call_tool additionally takes timeout (seconds): how long the agent waits for this one call instead of its --timeout (default 5 minutes). The agent consumes the argument; the aggregator never sees it.

Example:

{
  "name": "call_tool",
  "arguments": {
    "name": "core_service_list",
    "arguments": {}
  }
}

Result: the first content item is a JSON envelope of the wrapped tool's result, {"isError", "content", "structuredContent", "_meta", "tool"}. Image and audio items are size-only in it and follow it as native content items with their payload. tool names what ran: name is the tool asked for, and for a tool an MCP server serves, server is that MCPServer and serverTool the server's own name for it; muster's core and workflow tools carry the name only. The same object is the call_tool result's _meta under muster.giantswarm.io/tool, for a client that reads _meta without parsing the envelope.

{"isError":false,"content":[{"text":"…","type":"text"}],"tool":{"name":"x_kubernetes_list_pods","server":"kubernetes","serverTool":"list_pods"}}

The Go agent client (muster agent, internal/agent) unwraps the envelope back into the wrapped tool's result and puts tool into its _meta under the same key; metatools.DispatchedToolFromMeta reads it.

A call_tool refused because the caller's token cannot authenticate at the Kubernetes API returns isError: true and structuredContent: {"status": "unauthenticated"}. The existing text explains the refusal and how to sign in again; clients can classify it without parsing that text. No tool ran, so this answer has no wrapped tool envelope or dispatched tool. The status is muster's application data in MCP's structuredContent, distinct from a backend server asking the person to sign in.

A call to a server still connecting

With aggregator.serverReadyWait bounded (the default), a call to a tool of a server the session is still connecting to waits for that connect up to the Server ready wait, then answers isError: true with server <name> is still connecting for this session: retry the call in a few seconds, instead of tool not found. Retry the call.

A call that needs a sign-in

A call to a tool of a server the session has not signed in to is answered auth_required: isError: true, the sign-in link in the text and in structuredContent.authUrl, with status: "auth_required" and server. Through call_tool the same structuredContent is the result's own.

A client that declares URL mode elicitation (elicitation: {url: {}}) is asked to open the link instead, both for this answer and for the challenge of core_auth_login itself (MCP elicitation, URL mode), so the link never reaches the model as tool output:

Client's protocol version Answer
2026-07-28 or later, elicitation.url in the request's client capabilities resultType: "input_required" with one elicitation/create input request (mode: "url", url, message, and an elicitationId, the same for every answer with one link, which the 2026-07-28 schema does not define and rmcp requires) under the key muster_sign_in, and a sealed requestState naming the server and the link (see "requestState" below). Retry the call, echoing requestState, once the person agreed to open the link: a retry whose inputResponses accept muster_sign_in waits until the sign-in's OAuth callback has run, on any replica, then runs the call. When the callback did not sign the session in (the person was refused, the server was suspended meanwhile, the connection failed), or did not run within 5 minutes, the retry gets the same answer with a new link. A retry whose inputResponses decline or cancel muster_sign_in runs nothing and gets a tool error without the link instead.
2025-11-25, elicitation.url declared at initialize JSON-RPC error -32042 (URLElicitationRequiredError) with the elicitation and its elicitationId, the same one for every call of that session answered with the same link. When the sign-in completes, on any replica, the session is sent notifications/elicitation/complete with that elicitationId; retry the call then. A retry before the sign-in completed gets the same error again: this protocol tells muster neither that the person accepted nor that they declined, so muster cannot hold the retry until the sign-in completes.
Any other The auth_required answer.

An agent's filter_tools search (actor JWT or delegated token, client declared elicitation.url) that names exactly one server awaiting sign-in (its pattern under the server's tool prefix such as x_miro_*, or its query or description_filter has the server's name as a word) is answered with that server's auth_required elicitation above and lists nothing; the retry after sign-in lists the server's tools. Any other search, a person's own client and a client without URL elicitation get the listing with servers_requiring_auth. A grant the person already holds (grantScope: subject) connects the session instead.

Only the sign-in answers muster issues are elicited: a backend result that has the same shape is returned unchanged. A server muster connects with the person's muster sign-in (token forwarding, token exchange) has no link to open, and keeps the auth_required answer.

requestState

Every requestState muster answers with is sealed with AES-256-GCM (mcp-oauth's requeststate) and bound to:

  • the validated OAuth identity: issuer, subject, client and current actor; authenticated actor bearers and local callers use a separate Muster-owned identity;
  • the subject and session muster resolved for grants and visibility, in addition to that identity;
  • the call the client retries: tools/call, the tool it called (call_tool when it went through call_tool) and a digest of its arguments;
  • an expiry of 10 minutes.

A retry whose requestState was changed, was sealed for another caller or call, or was sealed by a muster with another key is refused with JSON-RPC -32602 (invalid params) and runs nothing. A lapsed requestState is ignored: the call runs as a first call and asks again. A caller without a resolved subject or session, or an OAuth caller naming no single client, gets an error instead of an answer that needs a requestState.

The sealing key is derived (HKDF-SHA256) from muster's token encryption key (muster.oauth.server.encryptionKey, oauth-encryption-key in the OAuth Secret), which every replica shares; it is a key of its own, not the encryption key. Rotating the encryption key voids the requestState in flight, which lives 10 minutes. Without an encryption key, each muster process seals with a key of its own and warns at start: a retry that reaches another replica is refused. The chart therefore requires encryptionKey for more than one replica (replicaCount above 1, or autoscaling with maxReplicas above 1), including when the OAuth server is disabled. The shared key is mounted independently of inbound OAuth. Invalid state is logged with a rejection reason and caller identity, without the sealed value or its payload.

A call a server answers with an input request

muster speaks MCP 2026-07-28 to every server that does, and 2025-11-25 (or the earlier revision the server answers initialize with) to any other, decided per server when muster connects to it.

On each tool call to a 2026-07-28 server, muster declares the elicitation capability of the client it calls for (io.modelcontextprotocol/clientCapabilities in the request's _meta), as the client declared it on its request (2026-07-28) or at initialize (2025-11-25). muster never declares sampling or roots, which 2026-07-28 deprecates: a server's input_required answer asking for either fails the call with a tool error naming the server and the method. A client that does not declare elicitation.url is not declared to have it, so the server does not ask it to open a page. An elicitation in a mode the client did not declare fails the call with a tool error naming the server and the mode: an elicitation without mode is a form, and elicitation: {} declares forms only. A call muster makes on its own, such as a workflow step, declares none.

A 2026-07-28 server that needs something of the person answers with resultType: "input_required". muster passes it to the client:

  • each elicitation's message is put on one line (each run of white space made one space) and prefixed with the server's key in brackets, [github] or, for a server of an organization namespace, [org-a/github]: the client only sees muster, and the person is told which server asks;
  • each URL elicitation without an elicitationId gets one, the same for every answer with one link: the 2026-07-28 schema does not define it, and rmcp requires it;
  • requestState is muster's own, sealed with the server's key, the tool's name and the server's own requestState inside (see "requestState" below). The client echoes it with inputResponses on its retry of the same call, and muster hands the server its own requestState and the answers. The server still treats its own requestState as attacker-controlled input and verifies it, as MRTR requires (integrity, the person it was issued to, expiry).
Client's protocol version Answer
2026-07-28 or later The input_required result, as described above.
2025-11-25, a request made only of URL elicitations JSON-RPC error -32042 (URLElicitationRequiredError) with the elicitations and their elicitationId. Call the tool again once the pages are done. That revision has no requestState, so the server is called without its own: it must tell from its own records whether the pages are done, and otherwise asks again. muster sends no notifications/elicitation/complete for these elicitations.
2025-11-25, a form elicitation elicitation/create, then the tool call runs again with the answers and the server's requestState.

A call made through call_tool is answered the same way, and its retry is a call_tool call echoing requestState. Through a workflow, or any other path that cannot carry an input request, the call's answer is a tool error holding each message and the link of each URL elicitation.

muster declares no capability at the initialize of a 2025-11-25 server: such a server is asked for the answer it gives a client that cannot be asked.

Resource Access

Meta-Tool Description Arguments
list_resources List available MCP resources, each with its server {}
filter_resources Filter resources by URI pattern and/or source server, paged; a URI with a scheme carries no server prefix, so scope by server {"pattern": "board://*", "server": "...", "limit": 25}
describe_resource Get resource metadata, not its contents {"uri": "resource_uri", "server": "..."}
get_resource Read resource contents {"uri": "resource_uri", "server": "..."}

server on describe_resource and get_resource is needed only when several servers expose the same URI; list_resources reports the server of every entry.

Prompt Access

Meta-Tool Description Arguments
list_prompts List available prompts {}
filter_prompts Filter prompts by name pattern and/or source server, paged (names are x_<server>_<name>) {"pattern": "x_myserver_*", "limit": 25}
describe_prompt Get prompt details {"name": "prompt_name"}
get_prompt Execute a prompt {"name": "prompt_name", "arguments": {...}}

Core Tools Overview

muster provides core built-in tools organized into functional categories. These are accessed via call_tool:

Core tool annotations

Every core tool declares the MCP tool annotations readOnlyHint, destructiveHint, idempotentHint and openWorldHint, and list_tools / filter_tools / describe_tool report them like a downstream server's. The built-in read-only toolset preset therefore includes the read-only core tools and a workflow whose steps call only read-only tools stays read-only when one of them is a core tool.

Tool readOnly destructive idempotent openWorld Why
core_workflow_list, core_workflow_get, core_workflow_validate, core_workflow_available, core_workflow_run_list, core_workflow_run_get true false true false Read or validate; nothing changes.
core_workflow_run_cancel false true true false Ends a run; cancelling it again changes nothing more.
core_workflow_run_retry false false false false Queues a failed run again as a new attempt of its failed step.
core_workflow_run_signal false false false false Sends a signal an open run reads; each signal is a new event.
core_workflow_create false false false false Adds a definition.
core_workflow_update false true true false Replaces a definition.
core_workflow_delete false true false false Removes a definition.
core_service_list, core_service_status true false true false Read.
core_service_start false false true false Starts a stopped service; nothing is removed.
core_service_stop false true true false Interrupts a running service.
core_service_restart false true false false Interrupts and starts again.
core_config_get, core_config_get_aggregator true false true false Read.
core_config_update_aggregator, core_config_save, core_config_reload false true true false Replace the running or the persisted configuration.
core_mcpserver_list, core_mcpserver_get, core_mcpserver_validate true false true false Read or validate.
core_mcpserver_detect true false true true Probes a remote URL for its transport; reads only, but reaches beyond muster.
core_mcpserver_create false false false false Adds a definition.
core_mcpserver_update false true true false Changes description, display name, tags, lifecycle.
core_mcpserver_connect false true true false Changes where a server is and how muster reaches it.
core_mcpserver_set_approval false false true false Replaces a server's approval settings.
core_mcpserver_delete false true false false Removes a definition.
core_events true false true false Read.
core_auth_login true false true true Issues a sign-in link for the caller and changes nothing on the platform; the grant that follows lands in the caller's own session. Reaches the server's authorization server. A read-only agent keeps the ability to connect SSO-protected servers as the person.
core_auth_logout false false true false Discards the caller's stored grant for a server — a write, nothing else is touched.
core_auth_status true false true true Reads the caller's state on every server; with auth_urls it issues the sign-in links core_auth_login would, which change nothing until the person completes them.

Workflow execution tools (workflow_<name>) declare nothing themselves; their readOnlyHint is derived from their steps.

core_auth_login — reset_client_registration

reset_client_registration: true discards muster's stored dynamic client registration (RFC 7591) with the server's authorization server and registers anew before issuing the sign-in link. Use it when sign-ins fail with invalid_client although muster reports a stored registration: the authorization server has forgotten the client. Other users' tokens from that authorization server may need a fresh sign-in afterwards.

core_auth_status — every server's sign-in state, and the links that start the missing grants

A client that gets a person ready before the agent needs them (a chat front-end right after its sign-in) reads the person's state on every server in one call. The answer is the auth://status document — servers[] with name, status, issuer, scope, auth_tool, error, suspended, the SSO flags — plus, per server:

  • kind: grant (a grant of the person's own, started with core_auth_login), sso (the muster sign-in, forwarded or exchanged; never a link) or none;
  • grant_scope: for a grant server, the scope muster applies: subject (the grant is the person's, every later session reuses it) when spec.auth.grantScope or spec.auth.authorizationServer.grantScope is subject for a pinned issuer, or, for a discovered issuer, once muster knows the issuer and its pin is subject-scoped; session (the session that completed it) otherwise, among them a discovered issuer that is not known yet or that an operator's session-scoped pin describes. A subject server whose issuer the person already holds a grant for is connected by the read and reported connected, whichever server's sign-in or session created the grant, as a listing connects it;
  • auth_url, with auth_urls: true, for every grant server in auth_required or reauth_required that is not suspended: the link core_auth_login would issue for it, with the same expiry and the same redirect parameter on /oauth/proxy/start. A server whose grant the person already holds is connected by the call and reported connected; one the login refuses carries the reason in error.

A grant server or a provider App in auth_required or reauth_required with no auth_tool and an error is a sign-in that cannot pass for this session (list_tools and filter_tools report it the same way in servers_requiring_auth): muster's sign-in check cannot confirm the person for it (their login method is not one the check may use, or their session comes from another identity provider). Every read reports it, with or without auth_urls, and no link is issued; error is worded for the person (Cannot sign in to '<server>': <reason>.) and is meant to be shown as is. It is decided per request, so another session of the person may still sign in.

Issuing the links counts as one authentication attempt for the rate limit. Each link is a bearer link for the caller's session: show it to the person only.

{"name": "core_auth_status", "arguments": {"auth_urls": true}}
→ {"servers": [
    {"name": "github", "status": "auth_required", "kind": "grant", "grant_scope": "subject",
     "issuer": "https://github.com/login/oauth", "auth_tool": "core_auth_login",
     "auth_url": "https://muster.example.com/oauth/proxy/start?state=…"},
    {"name": "kubernetes", "status": "connected", "kind": "sso", "token_forwarding_enabled": true}
  ]}

Additional Tool Types

Beyond the core tools, muster also provides access to:

Important: All tools below are accessed via call_tool(name="...", arguments={...}). They are not directly visible to MCP clients.

Quick Start

Basic Discovery Pattern

# Use meta-tools to discover
list_tools()                    # First page (50) of the catalogue; offset=50 for the next
filter_tools(pattern="core_*")  # Filter to core tools only

# Execute tools via call_tool
call_tool(name="core_service_list", arguments={})
call_tool(name="core_workflow_list", arguments={})
call_tool(name="workflow_<name>", arguments={...})

Common Operations

# Check system status
call_tool(name="core_service_list", arguments={})
call_tool(name="core_mcpserver_list", arguments={})

# Manage static services
call_tool(name="core_service_start", arguments={"name": "kubernetes"})
call_tool(name="core_service_status", arguments={"name": "kubernetes"})

# Execute workflows
call_tool(name="workflow_<your-workflow>", arguments={...})

Configuration Tools

Manage muster system configuration and aggregator settings. These tools allow you to read, modify, and persist configuration changes.

core_config_get

Get the complete current muster system configuration including aggregator, services, and other settings.

Arguments: None

Returns: Complete configuration object with all system settings

Example Request:

{
  "name": "core_config_get",
  "arguments": {}
}

Example Response:

{
  "Aggregator": {
    "Port": 8090,
    "Host": "localhost",
    "Transport": "streamable-http",
    "Enabled": true,
    "MusterPrefix": ""
  }
}

core_config_get_aggregator

Get aggregator-specific configuration details only.

Arguments: None

Returns: Aggregator configuration object

Example Request:

{
  "name": "core_config_get_aggregator",
  "arguments": {}
}

Example Response:

{
  "Port": 8090,
  "Host": "localhost",
  "Transport": "streamable-http",
  "Enabled": true,
  "MusterPrefix": ""
}

Use Cases:

  • Check current aggregator endpoint and settings
  • Verify aggregator is enabled before tool operations
  • Get connection details for external clients

core_config_reload

Reload configuration from configuration files, discarding any in-memory changes.

Arguments: None

Returns: Operation status and any errors encountered

Example Request:

{
  "name": "core_config_reload",
  "arguments": {}
}

Use Cases:

  • Refresh configuration after manual file edits
  • Revert in-memory changes to last saved state
  • Reload after external configuration updates

⚠️ Warning: This discards any unsaved configuration changes.

core_config_save

Save the current in-memory configuration to configuration files.

Arguments: None

Returns: Save operation status and file paths written

Example Request:

{
  "name": "core_config_save",
  "arguments": {}
}

Use Cases:

  • Persist configuration changes made through API
  • Create backup of current configuration
  • Ensure changes survive system restarts

core_config_update_aggregator

Update aggregator configuration settings.

Arguments:

  • aggregator (object, required) - Aggregator configuration object with the following properties:
    • Port (integer, optional) - Aggregator listen port (default: 8090)
    • Host (string, optional) - Aggregator bind host (default: "localhost")
    • Transport (string, optional) - Transport type ("streamable-http", "sse", "stdio")
    • Enabled (boolean, optional) - Whether aggregator is enabled
    • MusterPrefix (string, optional) - Prefix for muster core tools

Returns: Updated aggregator configuration

Example Request:

{
  "name": "core_config_update_aggregator",
  "arguments": {
    "aggregator": {
      "Port": 8080,
      "Host": "0.0.0.0",
      "Transport": "streamable-http",
      "Enabled": true
    }
  }
}

Use Cases:

  • Change aggregator listen port or host
  • Switch transport protocols (HTTP/SSE/stdio)
  • Enable/disable aggregator functionality
  • Configure tool prefixes

⚠️ Note: Changes take effect immediately but are not persisted until core_config_save is called.


MCP Server Tools

Manage MCP server definitions and lifecycle. These tools control the external MCP servers that provide additional capabilities like Kubernetes, Prometheus, or custom tooling.

Note: MCP servers are user-defined and not part of muster's core functionality. They are external processes that provide specialized tools and capabilities.

core_mcpserver_list

List all configured MCP servers with their definitions and metadata.

Arguments: None

Returns: Object containing array of MCP server definitions with configuration storage information

Example Request:

{
  "name": "core_mcpserver_list",
  "arguments": {}
}

Example Response:

{
  "mcpServers": [
    {
      "name": "my-custom-server",
      "type": "stdio",
      "autoStart": true,
      "description": "Custom MCP server for specialized tools",
      "command": ["my-server", "serve"],
      "env": {
        "API_KEY": "secret123"
      }
    }
  ],
  "mode": "filesystem",
  "total": 1
}

core_mcpserver_create

Create a new MCP server definition that can be started as a service.

Arguments:

  • name (string, required) - Unique server name (used as service identifier)
  • type (string, required) - Server type (stdio, streamable-http, or sse)
  • displayName (string, optional) - Human-friendly name UIs show for the server, stored in the ui.giantswarm.io/display-name annotation next to the registered-by annotations muster stamps. Surrounding whitespace is trimmed; a blank value sets no annotation
  • tags (array of strings, optional) - Stored comma-joined in the ui.giantswarm.io/tags annotation. Each tag: lowercase letters and digits joined by single hyphens (^[a-z0-9]+(-[a-z0-9]+)*$), at most 63 characters, no duplicates; at most 50 tags
  • description (string, optional) - Human-readable description of server purpose
  • command (array of strings, optional) - Command executable and arguments (for stdio servers)
  • args (array of strings, optional) - Command line arguments (for stdio servers)
  • url (string, optional) - Server endpoint URL (for streamable-http and sse servers)
  • env (object, optional) - Environment variables as key-value pairs (for stdio servers; refused on a remote server)
  • headers (object, optional) - HTTP headers (for streamable-http and sse servers). In Kubernetes mode a value in Authorization, Proxy-Authorization, Cookie or X-API-Key is refused, as is a user name or password in url
  • headersFrom (array, optional) - Headers whose values muster reads from a Secret in the server's namespace when it connects, each {"name": "Authorization", "valueFrom": {"type": "Secret", "name": "<secret>", "key": "<key>"}} (for streamable-http and sse servers, Kubernetes mode). Output of the core tools shows the reference, never the value
  • timeout (integer, optional) - Connection timeout in seconds
  • progress (object, optional) - maxDuration (integer): seconds a tool call that reports progress may run in all; each progress notification restarts timeout up to it (at least timeout, at most 3600, default 3600)
  • autoStart (boolean, optional) - Whether to start automatically on system startup
  • auth (object, optional) - Authentication for remote servers. An authorizationServer that another MCPServer describes differently under the same issuer (another client or endpoints) is refused, naming that server: one issuer, one client
  • preset (string) or approval (object) - one is required. preset is recommended, allow-all or ask-all, expanded from the tools the server lists now (none yet on create: the preset's rule); approval is {"rule": "Allow"|"Ask", "tools": {"<tool>": "Allow"|"Ask"|"Block"}}. Without either the call fails, listing the presets
  • clientCredentials (object, optional, write-only) - {"clientId": "...", "clientSecret": "..."}, the client of auth.authorizationServer (required with it). Not with auth.authorizationServer.clientCredentialsSecretRef. Refused for an issuer a provider App owns: the App's client signs in there. muster creates the server, then, as the caller, the Secret <name>-muster-client-<10 random> (client-id, client-secret) owned by the server, then names it in the reference. The caller needs create on secrets; when that fails, the server is removed again and the error names the permission. Values are never returned or logged; the schema marks it writeOnly, and a workflow execution record keeps [redacted] for an input passed into it

Returns: Created MCP server definition

Example Request:

{
  "name": "core_mcpserver_create",
  "arguments": {
    "name": "my-tools",
    "displayName": "My Tools",
    "type": "stdio",
    "description": "Custom tool server for project management",
    "command": ["my-mcp-server", "--port", "3000", "--verbose"],
    "env": {
      "API_KEY": "abc123",
      "LOG_LEVEL": "debug"
    },
    "autoStart": true,
    "preset": "recommended"
  }
}

Use Cases:

  • Add custom MCP servers with specialized tools
  • Configure third-party MCP server integrations
  • Set up development or testing tool servers

core_mcpserver_get

Get detailed information about a specific MCP server definition.

Arguments:

  • name (string, required) - Name of the MCP server to retrieve

Returns: Complete MCP server definition object. displayName, tags (array), registeredBy and registeredByEmail carry the server's ui.giantswarm.io/ annotations and are omitted when unset; core_mcpserver_list returns the same fields per server; approval is the server's spec.approval, omitted when unset

Example Request:

{
  "name": "core_mcpserver_get",
  "arguments": {
    "name": "my-tools"
  }
}

Example Response:

{
  "name": "my-tools",
  "displayName": "My Tools",
  "tags": ["project-management"],
  "type": "stdio",
  "autoStart": true,
  "description": "Custom tool server for project management",
  "command": ["my-mcp-server", "--port", "3000", "--verbose"],
  "env": {
    "API_KEY": "abc123",
    "LOG_LEVEL": "debug"
  }
}

core_mcpserver_update

Update an existing MCP server definition. Only provided fields are updated. Where the server is and how muster reaches it change with core_mcpserver_connect, its approval settings with core_mcpserver_set_approval; an argument of those is refused, naming the tool.

Arguments:

  • name (string, required) - Name of the MCP server to update
  • displayName (string, optional) - Sets the ui.giantswarm.io/display-name annotation, trimmed; an empty or blank string removes it, and omitting it keeps the current one
  • tags (array of strings, optional) - Replaces the tags; [] removes them, and omitting it keeps the current ones. More than 50 only when none of them is new, so a longer hand-set list can be sent back
  • description (string, optional) - Updated description
  • autoStart (boolean, optional) - Auto-start setting; omitting it keeps the current one
  • timeout (integer, optional) - Connection timeout in seconds
  • progress (object, optional) - As on create
  • suspended (boolean, optional) - Desired lifecycle state: true stops the server's service and keeps it stopped; false resumes it; omitted keeps it
  • restartRequestedAt (string, optional) - RFC 3339 timestamp requesting a one-shot restart; processed once by the reconciler

core_mcpserver_connect

Change where an existing MCP server is and how muster reaches it. A floor: an agent caller is always asked first (Governance and floors).

Arguments:

  • name (string, required) - Name of the MCP server
  • type, url, command, args, env, headers, headersFrom, requestMeta, family, toolPrefix (optional) - As on create; a given field replaces the current one
  • auth (object, optional) - Replaces the server's auth. An authorizationServer without clientCredentialsSecretRef keeps a client stored with clientCredentials; one without authorizationServer drops it. Changing its issuer, authorizationEndpoint, tokenEndpoint or revocationEndpoint away from those the client was entered for, while keeping that client, is refused: send clientCredentials again, or clearClientCredentials. A changed authorizationServer that another MCPServer describes differently under the same issuer is refused, as on create
  • clearClientCredentials (boolean, optional) - Drops the client stored with clientCredentials and keeps auth.authorizationServer. Not with clientCredentials or clientCredentialsSecretRef
  • clientCredentials (object, optional, write-only) - Replaces the client: a new Secret owned by the server, then the reference switches to it. The previous Secret stays until the server is deleted. Same rules as on create

Returns: Updated MCP server definition

Example Request:

{
  "name": "core_mcpserver_connect",
  "arguments": {
    "name": "my-tools",
    "env": {
      "API_KEY": "new-key-456",
      "LOG_LEVEL": "info"
    }
  }
}

core_mcpserver_set_approval

Replace a server's spec.approval, as the caller. A floor for agent callers.

Arguments:

  • name (string, required) - Name of the MCP server
  • approval (object) or preset (string) - exactly one. approval is {"rule": "Allow"|"Ask"|"Block", "tools": {"<tool>": "Allow"|"Ask"|"Block"}} (not empty; rule: Block hides every tool without its own entry); preset (recommended, allow-all, ask-all) is expanded, once, from the tools the server lists now into explicit settings. When the call asks, the person approves the expansion and that is what is written.
  • expectedGeneration (integer, optional) - the generation core_mcpserver_get or _list returned; the write is refused with conflict: MCP server '<name>' changed since it was read (generation N now, expectedGeneration M): read it again ... when the server changed since

Returns: {"name", "approval", "message"}; the message says when a preset found no tools and only wrote its rule. A write the API server did not store (a CRD older than spec.approval) is refused.

{"name": "core_mcpserver_set_approval",
 "arguments": {"name": "github", "approval": {"rule": "Ask", "tools": {"get_issue": "Allow", "delete_repository": "Block"}}}}

core_mcpserver_delete

Delete an MCP server definition. Server must be stopped before deletion.

Arguments:

  • name (string, required) - Name of the MCP server to delete

Returns: Deletion confirmation

Example Request:

{
  "name": "core_mcpserver_delete",
  "arguments": {
    "name": "my-tools"
  }
}

Use Cases:

  • Remove unused or deprecated MCP servers
  • Clean up test server configurations
  • Decommission replaced servers

⚠️ Warning: Ensure server is stopped before deletion. Use core_service_stop first if needed.

core_mcpserver_validate

Validate MCP server configuration without creating or modifying the server.

Arguments:

  • name (string, required) - Server name to validate
  • type (string, required) - Server type to validate
  • displayName (string, optional) - Display name to validate, as on create
  • tags (array of strings, optional) - Tags to validate, as on create
  • description (string, optional) - Description to validate
  • command (array of strings, optional) - Command to validate
  • env (object, optional) - Environment variables to validate
  • autoStart (boolean, optional) - Auto-start setting to validate

Returns: Validation result with any errors or warnings

Example Request:

{
  "name": "core_mcpserver_validate",
  "arguments": {
    "name": "test-server",
    "type": "stdio",
    "autoStart": true,
    "command": ["echo", "test"],
    "description": "Test server configuration"
  }
}

Use Cases:

  • Test server configurations before creation
  • Validate command existence and permissions
  • Check environment variable formats
  • Ensure name uniqueness

core_mcpserver_detect

Probe a remote MCP server URL to detect which transport it speaks (streamable-http or sse), so callers don't need to know it up front. Detection never fails on unreachable or unclassifiable servers: the result reports transport unknown instead, so callers can fall back to manual selection.

Arguments:

  • url (string, required) - Server endpoint URL to probe
  • headers (object, optional) - HTTP headers to send with the probe requests
  • timeout (integer, optional) - Overall detection timeout in seconds (default 10)

Returns: Detection result object:

  • url (string) - The probed endpoint
  • transport (string) - streamable-http, sse, or unknown
  • reachable (boolean) - Whether the server answered a probe at the HTTP level
  • requiresAuth (boolean) - Whether a probe was answered with a 401 challenge
  • serverName, serverVersion (string, optional) - Server info from a completed handshake
  • detail (string) - Human-readable explanation of the verdict

Example Request:

{
  "name": "core_mcpserver_detect",
  "arguments": {
    "url": "https://mcp.example.com/mcp"
  }
}

Example Response:

{
  "url": "https://mcp.example.com/mcp",
  "transport": "streamable-http",
  "reachable": true,
  "requiresAuth": false,
  "serverName": "example-server",
  "serverVersion": "1.4.2",
  "detail": "initialize handshake succeeded over streamable-http"
}

Use Cases:

  • Pre-select the transport in registration UIs once the user enters a URL
  • Verify a URL actually speaks MCP before registering it
  • Distinguish OAuth-protected servers (401 challenge) from unreachable ones

Service Tools

Manage the lifecycle of static services. The aggregator and MCPServer service wrappers are the only managed types.

Service Types: muster manages two types of services:

  • Aggregator: Core tool aggregation service
  • MCPServer: External MCP server processes

core_service_list

List all services with their current status and metadata.

Arguments: None

Returns: Object containing array of all services with detailed status information

Example Request:

{
  "name": "core_service_list",
  "arguments": {}
}

Example Response:

{
  "services": [
    {
      "name": "mcp-aggregator",
      "service_type": "Aggregator",
      "state": "running",
      "health": "healthy",
      "metadata": {
        "port": 8090,
        "tools": 95,
        "servers_connected": 6
      }
    },
    {
      "name": "kubernetes",
      "service_type": "MCPServer",
      "state": "running",
      "health": "healthy",
      "metadata": {
        "autoStart": true,
        "command": ["mcp-kubernetes"]
      }
    }
  ],
  "total": 3
}

core_service_start

Start a specific service.

Arguments:

  • name (string, required) - Name of the service to start

Returns: Operation status and service state

Example Request:

{
  "name": "core_service_start",
  "arguments": {
    "name": "my-database"
  }
}

Use Cases:

  • Start stopped services
  • Restart failed services
  • Manually start services with autoStart=false

⚠️ Note: Static services (aggregator) may not support start operations.

Writes-as-caller: In Kubernetes mode, start on an MCPServer-backed service is a CR write with your own identity — it clears spec.suspended and, whenever the service is down, also writes spec.restartRequestedAt (the one-shot "make it run now" request), and the reconciler starts the service. Kubernetes RBAC authorizes the write and the apiserver audit log records you as the subject.

core_service_stop

Stop a specific service.

Arguments:

  • name (string, required) - Name of the service to stop

Returns: Operation status and service state

While an OAuth-protected MCPServer is stopped this way (spec.suspended: true), core_auth_login refuses it — Server '<name>' is deactivated (spec.suspended=true); activate it with core_service_start before signing in. — auth://status reports it disconnected with "suspended": true, and list_tools and filter_tools neither list its tools nor name it under servers_requiring_auth. A session that had signed in before the stop finds its tools again after core_service_start without a new sign-in.

Example Request:

{
  "name": "core_service_stop",
  "arguments": {
    "name": "my-database"
  }
}

Use Cases:

  • Stop services for maintenance
  • Temporarily disable resource-intensive services
  • Clean shutdown before updates

⚠️ Warning: Stopping critical services (aggregator, MCP servers) may disrupt tool availability.

Writes-as-caller: In Kubernetes mode, stop on an MCPServer-backed service writes spec.suspended: true with your own identity; the reconciler stops the service and keeps it stopped until it is resumed.

core_service_restart

Restart a specific service (stop then start operation).

Arguments:

  • name (string, required) - Name of the service to restart

Returns: Operation status and final service state

Example Request:

{
  "name": "core_service_restart",
  "arguments": {
    "name": "kubernetes"
  }
}

Use Cases:

  • Apply configuration changes that require restart
  • Recover from service errors or hangs
  • Refresh connections or reinitialize state

Writes-as-caller: In Kubernetes mode, restart on an MCPServer-backed service writes spec.restartRequestedAt with your own identity; the reconciler restarts the service once and mirrors the processed value into status.lastRestartedAt. One attempt is made whether or not the endpoint answers: a restart that fails because the server is unreachable is recorded as processed too, and the service keeps retrying on its own reconnect backoff (status.nextRetryAfter); write a newer timestamp to request another restart.

core_service_status

Get current status information for a specific service.

Arguments:

  • name (string, required) - Name of the service to check

Returns: Detailed status including state, health, and runtime information

Example Request:

{
  "name": "core_service_status",
  "arguments": {
    "name": "mcp-aggregator"
  }
}

Use Cases:

  • Monitor service health and performance
  • Troubleshoot service issues
  • Get real-time status for dashboards

Workflow Tools

Manage workflow definitions and track executions. Workflows orchestrate multi-step processes with advanced features like templating, conditional execution, and output chaining.

Workflow Concept: Workflows are reusable, multi-step processes that execute tools in sequence, with support for conditional logic, variable passing between steps, and comprehensive execution tracking.

core_workflow_list

List all workflow definitions with their availability status.

Arguments: None

Returns: Object containing array of workflow definitions; each carries tags (array) when it has any

Example Request:

{
  "name": "core_workflow_list",
  "arguments": {}
}

Example Response:

{
  "workflows": [
    {
      "name": "deploy-application",
      "description": "Deploy application with monitoring setup",
      "available": true,
      "tags": ["deploy", "monitoring"]
    },
    {
      "name": "backup-database",
      "description": "Backup database to remote storage",
      "available": false
    }
  ]
}

core_workflow_create

Create a new workflow definition with advanced step configuration.

Arguments:

  • name (string, required) - Unique workflow name
  • steps (array, required) - Array of workflow steps (minimum 1):
    • id (string, required) - Unique step identifier within workflow
    • tool (string, required) - Tool name to execute for this step
    • description (string, optional) - Human-readable step documentation
    • args (object, optional) - Tool arguments with templating support (inputs as {{ .input.<arg> }}, prior results as {{ .results.<step-id>.<field> }})
    • condition (object, optional) - Conditional execution configuration:
      • tool (string, optional) - Tool to call for condition evaluation
      • fromStep (string, optional) - Evaluate a previous step's result instead of calling a tool
      • args (object, optional) - Arguments for condition tool
      • expect (object, optional) - Expected results for condition success (success, jsonPath)
      • expectNot (object, optional) - Results that make the condition false
    • allowFailure (boolean, optional) - Whether step failure should not fail entire workflow
    • store (boolean, optional) - Whether to store step result in workflow results
    • dryRun (any JSON, optional) - What a dry run takes as this tool step's result when it holds the step's write (templated like args); without it a dry run stops at the step. See Dry runs
  • dryRun (boolean, optional) - Make every run of the workflow dry: reads run for real, every write is held and recorded instead of made
  • args (object, optional) - Workflow argument schema with validation:
    • Each argument has: type, required, default, description
    • Supported types: string, integer, boolean, number, object, array
  • description (string, optional) - Workflow description
  • tags (array of strings, optional) - Stored comma-joined in the Workflow's ui.giantswarm.io/tags annotation. Each tag: lowercase letters and digits joined by single hyphens (^[a-z0-9]+(-[a-z0-9]+)*$), at most 63 characters, no duplicates; at most 50 tags

The field names are the Workflow CRD's, so a step copied from a manifest works unchanged. The snake_case spellings allow_failure, from_step, expect_not and json_path are deprecated aliases: still accepted, with a warning in the server log.

Returns: Created workflow definition

Example Request:

{
  "name": "core_workflow_create",
  "arguments": {
    "name": "deploy-with-monitoring",
    "description": "Deploy application and setup monitoring with health checks",
    "args": {
      "app_name": {
        "type": "string",
        "required": true,
        "description": "Application name to deploy"
      },
      "environment": {
        "type": "string",
        "default": "development",
        "description": "Target environment"
      },
      "health_check": {
        "type": "boolean",
        "default": true,
        "description": "Enable health checking"
      }
    },
    "steps": [
      {
        "id": "deploy",
        "tool": "x_kubernetes_apply",
        "description": "Deploy the application",
        "args": {
          "manifest": "{{ .input.manifest }}"
        }
      },
      {
        "id": "health_check",
        "tool": "core_service_status",
        "description": "Verify service is healthy",
        "condition": {
          "tool": "echo",
          "args": {
            "value": "{{ .input.health_check }}"
          },
          "expect": {
            "jsonPath": {
              "value": true
            }
          }
        },
        "args": {
          "name": "{{ .results.create_service.service_name }}"
        },
        "store": true
      }
    ]
  }
}

Use Cases:

  • Automate complex deployment processes
  • Create reusable operational procedures
  • Implement conditional logic workflows
  • Chain multiple service operations

core_workflow_get

Get detailed information about a specific workflow definition.

Arguments:

  • name (string, required) - Name of the workflow to retrieve
  • namespace (string, optional) - Namespace of an organization's workflow; muster's when omitted

Returns: Complete workflow definition with all steps and configuration; tags (array) is omitted when unset. For a workflow with subscriptions, the top-level subscriptions says for each of its entries, in order, how its event subscription is observed: event, arguments, condition (observing, unobserved, gap or not subscribed), since, reason, last_success and next_poll. See Workflows started by events.

Example Request:

{
  "name": "core_workflow_get",
  "arguments": {
    "name": "deploy-with-monitoring"
  }
}

Use Cases:

  • Inspect workflow configurations
  • Debug workflow step definitions
  • Understand argument requirements and step dependencies

core_workflow_available

Check if a workflow is available for execution (all required tools are present).

Arguments:

  • name (string, required) - Name of the workflow to check

Returns: Availability status with details about missing tools or dependencies

Example Request:

{
  "name": "core_workflow_available",
  "arguments": {
    "name": "deploy-with-monitoring"
  }
}

Use Cases:

  • Verify workflow dependencies before execution
  • Troubleshoot unavailable workflows
  • Check tool availability after system changes

core_workflow_update

Update an existing workflow definition. Only provided fields are updated.

Arguments:

  • name (string, required) - Name of the workflow to update
  • steps (array, optional) - Updated workflow steps (replaces all existing steps)
  • args (object, optional) - Updated argument schema
  • description (string, optional) - Updated description
  • tags (array of strings, optional) - Replaces the tags; [] removes them, and omitting it keeps the current ones. More than 50 only when none of them is new, so a longer hand-set list can be sent back

Returns: Updated workflow definition

Example Request:

{
  "name": "core_workflow_update",
  "arguments": {
    "name": "deploy-with-monitoring",
    "description": "Updated: Enhanced deployment with advanced monitoring and rollback",
    "steps": [
      {
        "id": "deploy",
        "tool": "x_kubernetes_apply",
        "description": "Deploy the application",
        "args": {
          "manifest": "{{ .input.manifest }}"
        }
      }
    ]
  }
}

Use Cases:

  • Modify workflow behavior without recreation
  • Add new steps to existing workflows
  • Update step configurations or arguments

core_workflow_delete

Delete a workflow definition. Active executions are not affected.

Arguments:

  • name (string, required) - Name of the workflow to delete

Returns: Deletion confirmation

Example Request:

{
  "name": "core_workflow_delete",
  "arguments": {
    "name": "obsolete-workflow"
  }
}

Use Cases:

  • Remove obsolete or deprecated workflows
  • Clean up test workflows
  • Reorganize workflow library

⚠️ Note: Deleting a workflow does not affect running executions or execution history.

core_workflow_validate

Validate a workflow definition without creating it.

Arguments:

  • name (string, required) - Workflow name to validate
  • steps (array, required) - Workflow steps to validate
  • args (object, optional) - Argument schema to validate
  • description (string, optional) - Description to validate
  • tags (array of strings, optional) - Tags to validate, as on create

Returns: Validation result with errors, warnings, and tool availability check

Example Request:

{
  "name": "core_workflow_validate",
  "arguments": {
    "name": "test-workflow",
    "steps": [
      {
        "id": "invalid_step",
        "tool": "nonexistent_tool",
        "args": {
          "invalid_template": "{{ .input.nonexistent_arg }}"
        }
      }
    ]
  }
}

Use Cases:

  • Test workflow configurations before creation
  • Validate step dependencies and tool availability
  • Check template syntax and argument references
  • Ensure workflow compatibility with current environment

core_workflow_run_list

List workflow runs, newest first: the runs you started and the runs of the Workflows you see (every caller sees the Workflows in muster's namespace). Every run of a workflow is kept, however it was started; see Workflow runs.

Arguments:

  • workflow_name (string, optional) - Only the runs of this workflow
  • status (string, optional) - Only the runs in this status: queued, running, waiting, completed, failed, cancelled
  • subject (string, optional) - Only the runs about this subject
  • dry_run (boolean, optional) - Only the dry runs (true) or only the live ones (false)
  • limit (number, optional, default: 50, at most 1000) - Maximum number of runs to return
  • cursor (string, optional) - The next_cursor of the previous page

Returns: runs (run summaries: run_id, namespace, workflow_name, status, started_by, created_at, started_at, ended_at, duration_ms, error, dry_run for a dry run, ...) and next_cursor while more runs follow. Pages follow each other by cursor (keyset), never by offset.

Example Request:

{
  "name": "core_workflow_run_list",
  "arguments": {
    "workflow_name": "deploy-with-monitoring",
    "status": "failed",
    "limit": 10
  }
}

core_workflow_run_get

Get a workflow run with its steps.

Arguments:

  • run_id (string, required) - The run's ID: the run_id of a workflow_<name> call's response
  • include_steps (boolean, optional, default: true) - Include the run's steps. Without them, the run's result leaves out the step records of a workflow's default response (steps, template_vars) too.
  • step_id (string, optional) - Only the steps with this ID; the run then comes without its own input, result and error

Returns: The run's summary fields, its input (values of sensitive arguments redacted), its result (completed runs) and its steps: seq, step_id, tool, status, attempt, started_at, ended_at, duration_ms, input, result, error, stored_as. A payload over 256 KiB is replaced by a marker and flagged truncated. A dry run counts the writes it held (held_writes, with or without its steps), and each step it held has status held and held: idempotency_key, destructive_hint, idempotent_hint, position (the index of the top-level step) and answered (its dryRun answer stood in for the result). See Dry runs.

Example Request:

{
  "name": "core_workflow_run_get",
  "arguments": {
    "run_id": "0b5c3c4e-8d0a-4f43-9a52-3f1d3e5b7c21",
    "include_steps": true
  }
}

core_workflow_run_cancel

Cancel a workflow run and its open child runs: a queued or waiting run ends at once, a running run before its next step. A run whose workflow has onCancel steps ends once a worker ran them, as whoever started the run (the answer shows it still queued or waiting with cancel_requested). A cancelled run runs no onFailure steps. A run that ended is not cancelled again.

Arguments:

  • run_id (string, required) - The run's ID

core_workflow_run_retry

Queue a failed run again from the step that failed, as that step's next attempt (a new idempotency key); a worker resumes it. The run acts as whoever started it; a person retrying their own run lends it their current session. A run that failed before its first step (its arguments did not validate) or whose input held a value for a sensitive argument cannot be retried: start a new run.

Arguments:

  • run_id (string, required) - The run's ID

core_workflow_run_signal

Send a signal to an open workflow run. The run keeps it as a run event and sees the latest signal of each name as .signals.<name> ({data, at}); a waiting run wakes at once and checks again. A wait on a signal takes the signal that ended it, so a later wait on the same name needs a newer one. A signal to a run that ended is refused. Who sees a run may signal it, as who may cancel it.

Arguments:

  • run_id (string, required) - The run's ID
  • name (string, required) - The signal's name: 1 to 63 letters, digits or underscores
  • data (object, optional) - What the signal carries, as .signals.<name>.data (at most 256 KiB)

Returns: The run's summary; a waiting run's wake_at is now.

Example Request:

{
  "name": "core_workflow_run_signal",
  "arguments": {
    "run_id": "0b5c3c4e-8d0a-4f43-9a52-3f1d3e5b7c21",
    "name": "decision",
    "data": { "verdict": "merge" }
  }
}

Dynamic Workflow Execution Tools

Important: For each workflow definition you create, muster automatically generates a corresponding execution tool named workflow_<workflow-name>. These tools accept the workflow's defined arguments and execute the workflow.

Note: Workflow execution tools depend on your workflow definitions and are not built into muster. Different muster installations will have different workflow execution tools based on their configured workflows.

How Workflow Execution Tools Work

  1. Workflow Definition: You create workflows using core_workflow_create or by placing YAML files in .muster/workflows/
  2. Tool Generation: muster automatically creates a corresponding workflow_<name> tool
  3. Tool Discovery: The workflow tool appears in list_tools() output
  4. Tool Execution: Execute via call_tool(name="workflow_<name>", arguments={...})

Example

If you create a workflow named deploy-webapp:

# .muster/workflows/deploy-webapp.yaml
name: deploy-webapp
description: "Deploy web application to Kubernetes"
args:
  app_name:
    type: string
    required: true
  environment:
    type: string
    default: "staging"
steps:
  - id: deploy
    tool: x_kubernetes_apply
    args:
      manifest: "{{ .input.app_name }}-manifest.yaml"

This generates a workflow_deploy-webapp tool that you execute via:

{
  "name": "call_tool",
  "arguments": {
    "name": "workflow_deploy-webapp",
    "arguments": {
      "app_name": "my-service",
      "environment": "production"
    }
  }
}

Runs that wait, and MCP tasks

A call drives its run until the run ends, or until a step makes it wait (a wait, a child workflow, a repeat that reaches one): the call then returns a normal result and the run goes on without the caller, its progress read with core_workflow_run_get:

{
  "run_id": "0b5c3c4e-8d0a-4f43-9a52-3f1d3e5b7c21",
  "status": "waiting",
  "waiting": { "step": "ci", "for": "its until condition", "next_check": "2026-12-01T09:05:00Z", "deadline": "2026-12-31T09:00:00Z" }
}

A call whose run a concurrency limit holds answers at once with "status": "queued" and "waiting": {"for": "concurrency alice 2/2"}; the run is admitted, and runs on a worker, when a run of its key ends. See concurrency.

call_tool and the workflow tools declare execution.taskSupport: optional (MCP tasks): a task-augmented call_tool of a workflow tool is answered at once with a task whose taskId is the run's ID, and tasks/get, tasks/result, tasks/cancel and tasks/list are served from the run store. See Workflow runs as MCP tasks.

Workflow Tool Naming Convention

Workflow Name Generated Tool Name
deploy-webapp workflow_deploy-webapp
connect-monitoring workflow_connect-monitoring
auth-kubernetes workflow_auth-kubernetes

External Tools

External MCP tools come from your configured MCP servers (Kubernetes, Prometheus, Grafana, etc.). These are accessed the same way as core tools - via call_tool.

Naming Convention

External tools follow the pattern: x_<mcpserver-name>_<tool-name>

MCP Server Tool Full Name
kubernetes get_pods x_kubernetes_get_pods
prometheus query x_prometheus_query
grafana list_dashboards x_grafana_list_dashboards

Example: Kubernetes Tool

{
  "name": "call_tool",
  "arguments": {
    "name": "x_kubernetes_get_pods",
    "arguments": {
      "namespace": "default",
      "labelSelector": "app=my-service"
    }
  }
}

Discovering External Tools

Use meta-tools to discover what external tools are available:

# Page through the catalogue, external tools included (50 per page)
list_tools()
list_tools(offset=50)

# Filter to specific MCP server
filter_tools(pattern="x_kubernetes_*")

# Get details about a specific external tool
describe_tool(name="x_kubernetes_get_pods")