Why We Deleted Our MCP Server and Rebuilt It — Abhi Arya, Reducto
Loading slides…
Read the talk
Why We Deleted Our MCP Server and Rebuilt It
Reducto’s first MCP server could build document workflows confidently, but nobody could explain them. The rebuild moved product knowledge into tools, exposed uncertainty and used real sessions to improve future work.
From a talk by Abhi Arya
At a glance
Ideas worth remembering
A tool for every endpoint gives an agent access, but can leave workflow meaning and assembly entirely to the model. Encode known product patterns in tools that users can understand.
Pair structured operations with live-state snapshots so the agent can reference the actual pipeline, including specific errors, instead of guessing its current configuration.
Handle output uncertainty with extraction feedback and task uncertainty with clarifying questions. Evaluations should penalize unsupported assumptions rather than reward confident completion.
Logged overrides, low confidence and questions can feed longer-term guidance. The proposed learning loop improves the context around future agent work.
Design for the person accountable downstream: they need to understand what the agent built and discover mistakes quickly enough to act.
Document automation makes agent mistakes somebody’s problem
A clean document is the easy case. Production brings scanned documents, rotated pages and complex layouts that a model must interpret before it can extract useful data. Abhi Arya, who works on product at Reducto, introduces the company as the layer between those documents and the tools or agents consuming them. He reports that Reducto processed over three billion documents in the preceding three years, across customers including Harvey and Scale AI. Building that document layer also meant building agents around it—and discovering that access to the system did not make those agents reliable collaborators.
The question of what counts as agent-first software arrived through a Mean Girls-inspired laptop sticker: “Get in, loser, we're building agent first software.” Asked to explain the phrase, Arya found that a good API, harness or prompt mostly described ways to improve a model’s performance. The architectural question was harder: who pays when the agent is wrong?
That question produces three designs, distinguished by what the agent can do and what the human can verify:
- Auto mode. Give the agent tools and a prompt, then optimize for autonomy. A confident mistake can reach customers before the person responsible understands what happened.
- User-first. Give the human all the configuration controls, then add an agent with little ability to act. The interface remains laborious, while the agent becomes a limited chatbot.
- Agent experience in service of the user. Give the agent useful, scoped capabilities and enough context to act, while keeping its work understandable to the human who must answer for the result.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
One tool per endpoint made a good demo and an opaque workflow
Reducto’s document pipelines combine operations such as parsing, classification, splitting and extraction for work including invoicing and contract management. Users, especially the sales team, spent too much time configuring those operations. An MCP server offered a way to move that assembly work into an agent: the user could describe the desired use case, and the agent could build the pipeline.
The first implementation used Claude Code to create an MCP tool for every API endpoint that powered the app, all in one large file. A carefully chosen prompt produced a pleasing Slack demo. But its author already understood both the product and the intended workflow. That knowledge supplied the clarity the interface itself lacked.
Team-wide use exposed the difference. Someone would supply incomplete notes from a customer call or a Notion page, and the agent would construct an entire workflow. It would confidently announce success, yet neither the user nor the agent could explain what the workflow actually did. The failure was an inability to inspect the meaning of the assembled system, even though the agent could call its APIs. There was no useful place for the human to question an assumption or validate the work.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Put the known workflow inside the tool
Arya deleted the implementation in one commit. Its replacement had fewer tools, with more product knowledge inside each one. The concrete example is classification followed by extraction: classify a document, then route it into an extraction node that pulls out downstream information. Previously, a generic step-creation tool had to be called repeatedly, leaving the model to assemble the relationship correctly. The rebuild made that relationship a single classify-to-extract tool.
This changes where the decision happens. The agent still helps construct the pipeline, but engineers encode the connections they already know should hold. Tool responses supply guidance about what comes next, and some tools chain operations automatically. The agent has less freedom to invent an arrangement, while the resulting arrangement is easier for a user to follow.
A separate snapshot tool addresses a different source of guessing: what currently exists? One call returns the live pipeline state, including the whole flow and specific error codes. That lets the agent reference actual state instead of inventing variable names or reconstructing the pipeline from its conversational context. The two changes work together: structured tools encode valid patterns, and snapshots provide the facts needed to use them.
Where did the responsibility for connecting classification to extraction move? The comparison below separates model assembly from the product-aware tool, with live state supplying context to the rebuilt agent. The important change is that a known relationship no longer has to be rediscovered during every conversation. This deliberately narrows possible pipeline shapes so the correct path is also the simplest path available.
From repeated assembly to a product-aware operation
Read the diagram as text
- Agent assembles the workflow. Before — Choose how repeated generic step calls connect.
- Repeated step creation. Before — The model must assemble classification and extraction correctly.
- Live pipeline snapshot. After — Whole-flow context and specific error codes.
- Agent references current state. After — Use actual pipeline information rather than guessed names.
- Classify-to-extract tool. After — Carry the known connection and guide the next operation.
- Agent assembles the workflow → Repeated step creation: Repeated calls; model chooses assembly.
- Live pipeline snapshot → Agent references current state: Return live state.
- Agent references current state → Classify-to-extract tool: Use the encoded workflow pattern.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
A valid pipeline can still produce a quietly wrong answer
The rebuilt tools made construction understandable. They did not resolve every mistake in the outcome. A pipeline can run successfully with a bad extraction schema or an incomplete description of the intended use case. Arya’s example is a run over a hundred documents that misses a scan on page thirty. There need not be a crash or an explicit error to alert the user: successful execution can conceal unsuccessful document work.
Two kinds of uncertainty need different responses:
- Uncertainty in the output. Extraction returns confidence scores and bounding boxes, giving the system information about the result and its location in the document. Tools feed that information back to the model to help improve the extraction schema over time.
- Uncertainty in the task. An ambiguous field or unfamiliar document type calls for a question to the user. Choosing between two plausible readings silently can produce a coherent pipeline for the wrong interpretation.
The evaluation criteria changed alongside the interface. Agents failed evaluations for building on shaky assumptions, and harness guidance directed them to use ask-user-question tools available in Claude Code and other harnesses. Asking became rewarded behavior. The MCP guidance also required explanations of what the agent created and why, so the user could review the work rather than accept a success announcement.
A clarifying question closes the gap between the words in a request and the outcome the user intended. It supplies missing context before the assumption spreads into the schema or workflow, while giving the person responsible a chance to exercise judgment. This adds an interaction to the process, but that interaction can prevent the agent from confidently completing the wrong task.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Keep the agent’s reach within what the human can inspect
Opaque construction, silent wrong answers and agents that pass tests by hiding behavior share a common shape: the agent has more autonomy and access than the human can verify. Pipeline construction, schema generation and context gathering are attractive places to use agent intelligence because the human is nearby and can catch a mistake while it is still comparatively cheap to change.
The intended division of work gives the agent room to build and explain, while relying on Reducto for document parsing and extraction. Arya reports higher user satisfaction as the work became easier to see, and describes the document layer as providing accurate results for trusted parts of the pipeline. These are qualitative product claims here, without accuracy measurements or stated guarantee conditions; inspectable construction therefore remains a reason to review results, rather than a promise that every extraction is correct.
The harness is what makes this division usable. Tools, current state, validators, questions and explanations surround the model with the information and constraints needed to deliver work downstream. Model intelligence supplies the ability to reason through construction; the surrounding system makes that reasoning useful to someone who must own the result.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Turn overrides and questions into guidance for the next pipeline
Once the work was guided and inspectable, Reducto instrumented its use. MCP sessions logged prompts sent by the model, and team members exported Claude Code sessions. Those records exposed where humans overrode the agent, where confidence ran low and where the agent asked questions. Each signal identifies something useful about the interaction: an override reveals a decision the user rejected, while a question reveals context the agent needed before continuing.
That information flowed into the MCP’s longer-term guidance. Arya describes a self-improving loop per organization or user, where building more pipelines improved subsequent pipeline construction without the team rewriting guidance by hand. The recording does not explain the update algorithm or how proposed guidance changes were validated. The supported mechanism is a feedback loop through surrounding guidance, rather than a described model-weight training procedure.
How does one session influence the next? The cycle below shows the route through session records and persistent guidance. Human intervention becomes information the next attempt can use, so an interruption does more than repair the current workflow: it can help the system avoid repeating the same uncertainty.
Pipeline use feeds future pipeline guidance
Read the diagram as text
- Build a pipeline. The agent works within guided, inspectable capabilities.
- Human and agent interaction. Overrides, low confidence and clarifying questions.
- Session records. Logged MCP prompts and exported Claude Code sessions.
- Long-term MCP guidance. Feedback informs later work for the organization or user.
- Build a pipeline → Human and agent interaction: Use reveals decisions and uncertainty.
- Human and agent interaction → Session records: Capture the session.
- Session records → Long-term MCP guidance: Feed observations into guidance.
- Long-term MCP guidance → Build a pipeline: Guide subsequent pipeline construction.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Adoption meant people could own what the agent built
The sales team’s behavior supplied a practical signal that the redesign mattered. Arya had exposed the agent as Reducto tools without explicitly telling the team to use it for pipeline construction. People incorporated it into their preparation for customer calls: gather customer context from meeting notes or Slack, use the MCP to ask questions about the customer, then build a pipeline for that customer.
Compare that with the first team-wide rollout. In both cases, customer information initiated workflow construction. Initially, incomplete notes led to a confident result nobody could explain. After the redesign, people chose the tools themselves and trusted the result enough to show it to high-value customers. The observable change was ownership: a person could present the work as something they had built and understood. Arya reports that it paid off in sales calls, without giving a numerical sales result.
The ending revises the meaning of agent-first. Better models, faster inference and more connectors do not settle the design question. The agent operates alongside people who must answer for its work downstream. When it is confidently wrong, who discovers the mistake, and how quickly? Structured tools make construction understandable; uncertainty signals and questions make questionable decisions visible; instrumentation carries those lessons into future attempts. Those are the conditions under which people can start trusting an agent with real work.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Resources
Related talks
- Beating RL With Reflection: GEPA and Optimize Anything
Develops a complementary mechanism for learning from execution traces: reflection proposes changes to prompts, agent programs and skills, while evaluation determines which changes to retain.
Full transcript
Loading transcript…