Guides

How do you turn MCP tools into reusable workflows?

One successful MCP call proves the connection works. It does not give you anything to reuse next week. This guide turns a single call into a workflow the Agent builds, so a button, a schedule, or the Agent can keep it running.

Three facts to cite

FactValueWhy it matters
VersionMesocosm Desktop 0.1.5, verified 2026-10-29; MCP spec revision 2026-07-28MCP tools and automation targets exist in this build, not older ones
Permission7 read-only services, 37 tools, 0 write toolsA workflow can read and store, but cannot write back to a vendor
Limit45s per call, 90s for Supabase, 240s for DeepWiki, 1 MiB per responseSets the retry and payload design before you describe the workflow

One call is not a workflow

A chat call has a short life. The result lands in the transcript, the next message pushes it out of view, and nothing is left for the next run. Reuse needs three things a chat lacks: a fixed input, a stored output, and a trigger.

Ad hoc callReusable workflow
Who starts itWhoever is in the conversationA button, a schedule, a Skill, or an Agent
InputTyped into the promptDeclared once, changed per run
OutputIn the transcriptIn Space data and a rendered view
Second runStarts from zeroSame workflow, same result shape
FailureNoticed in the chat, or not at allRecorded on the run

The four-step pattern

Every durable MCP workflow follows four steps. Skipping step 2 is why most rot.

  1. Describe. Say what the result should contain, which service to use, and when to refresh. The Agent turns that into the tool call.
  2. Normalize. Convert the vendor's shape into yours. Keep the four fields the view needs, drop the rest, and stay under the 1 MiB cap.
  3. Store. Keep the normalized result in Space data. A field can be rendered, compared, and built on; a transcript line cannot.
  4. Trigger. Let a person press a button, a schedule run it, or the Agent call it when the task matches.

Ask the Agent to build the workflow

You do not write the workflow. Describe the recurring result, and the Agent builds it:

"Every Monday, pull pricing research from Notion, DeepWiki, and Supabase into a board with claim, source, date, and verdict. Tell me what changed."

The Agent calls the tools, stores the normalized fields in Space data, and builds the table. A button, a schedule, or the Agent can trigger the same workflow. One request, three ways in.

Behind this is MCL: the layer that lets the Agent write the result into the Space and render it. You do not edit it. The difference between MCP connected and MCP useful is whether the result has a home.

Skill versus automation

Both make a workflow reusable, and they answer different questions.

SkillAutomationBoth together
What it isA procedure plus the tools the Agent may callA trigger that runs a target on a scheduleA Skill the Agent follows, on a clock
Who starts itThe Agent, when the task matchesThe clockThe clock starts, the Skill guides
Best forJudgment, varying input, one-of-a-kind requestsThe same job at the same cadenceRecurring work that still needs judgment
Who builds itThe AgentThe Agent; an automation needs a targetThe Agent builds both, in one request
Watch outThe Agent may skip it, or use it differentlyIt runs even when nothing changedTwo things to maintain; name one owner
Failure modeThe Agent never picks itNobody reads the run recordThe Skill drifts from the automation

A Skill explains; an automation remembers. Ask the Agent to build the workflow first, point the automation at it, and let the Skill describe when it is the right move.

Worked example: one board from three services

A pricing research board needs three kinds of evidence, each in a different service.

EvidenceServiceToolWhat it adds
Your own notes and interviewsNotionnotion-searchClaims, quotes, open questions
Repository documentationDeepWikiask_wiki_questionHow a tool is registered, what a spec says
Measured usageSupabaseexecute_sqlRow counts that correct a guess

The columns are the normalized fields: claim, source, captured date, verdict. Store one row per item, not one blob per service, so a later call can refresh one column.

MCP workflow examples

Three examples you can describe in one message. Each one gathers, normalizes, then runs on a schedule, and none of them needs a write tool.

Research digest: Notion and DeepWiki into a claims board

Gather: search Notion for the week's interviews and ask DeepWiki what the current spec says. Normalize each hit to claim, source, date, and verdict, and store one row per item in Space data. Schedule the same prompt for Monday 09:00, and read the run record before you trust the board.

Pricing watch: Supabase and vendor pages into a change table

Gather: query Supabase for measured usage and open the vendor's changelog in the built-in browser. Normalize to product, field, old value, new value, and checked date. A daily 08:00 run compares the new row with the stored one and stores "no change" as a result instead of silence.

Release roundup: GitHub and Slack into a shipped list

Gather: list the week's merged pull requests and search Slack for release announcements. Normalize to item, owner, shipped date, and the link that proves it. Run it Friday at 17:00 so the list is ready before the week closes, and keep the previous run for comparison.

When a call fails

Failures are normal at this layer. Design for them before the schedule is on.

  • Timeout. Calls stop at 45 seconds, Supabase at 90, DeepWiki at 240. A first DeepWiki call may generate a wiki, so wait instead of retrying.
  • Empty result. An empty list is not an error. Store it with a timestamp, so the board shows "checked, nothing new" rather than last week's data.
  • Duplicate runs. An interval can fire while the previous run is still going. Guard the workflow with a run stamp and skip if one is in flight.
  • Idempotency. Key writes by date plus query. Overwrite the row instead of appending, and compare before you replace a value a person edited.

Two limits to plan around

MCP calls are slow and outside your control

Every call crosses the network to a vendor with its own rate limits and outages. Five tools in one workflow can take minutes before failing. Do not put MCP calls behind a keystroke.

Batch calls, cache the result in Space data, refresh on a schedule. If a view must feel instant, read the stored field, not the vendor.

An automation needs a retry policy and a reader

A scheduled workflow can fail at 3 a.m. and nobody notices until the board looks stale. Set a retry count, a timeout, and a place to read the run record.

Retries are not free: a retried write to Space data must be idempotent, or a duplicate run doubles the rows. Set the count per workflow, not per product.

Common questions

Can I do this without code?

Partly. In a chat the Agent can call the tools and summarize the result, but that is a demo. A result that outlives the session needs the Agent to build the workflow, because Space data is written by the app, not the chat.

Should I use a Skill or an automation?

Use a Skill when the Agent decides whether to run something. Use an automation when the job runs on a cadence regardless. Most useful setups have both: the Skill explains, the automation runs the workflow on Monday.

Can an Agent call the workflow I built?

Yes. The workflow lives in the Space, and the Agent can read and run what the Space contains. A scheduled task can target it directly, so one path serves a person, a clock, and an Agent.

What happens when the MCP call fails?

The workflow stops at the failing step and the error reaches the run record. Keep earlier results, log the service and the trace_id, then retry with a delay. A DeepWiki first call can take 240 seconds, so a short timeout looks like failure when it is only slow.

Sources