Execute

Case Study / Loop 03

Execute

The MCP protocol reaches out a hand into the physical world, turning instructions back into actions in the field.

Farm Operation Loop · Stage 3 | Case Studies
Sensing is the eye, decision-making is the brain, execution is the hand. No matter how smart the first two stages are, if the hand cannot reach out, the loop stops in the digital world. What execution must do is make AI decisions truly land in the mud.

The execution stage of agriculture has a pile of real-world complications. Integrated water and fertilizer machines come from different brands with different protocols; drones use flight control protocols; unmanned vehicles use navigation protocols; IoT devices from different vendors each have their own interfaces. Without a unified access layer, every new category of equipment requires a new set of adapter code — the system gets heavier and messier the more it grows. This is why MCP exists.

Why Execution is the Most Fragile Stage

Digital systems often fail not in the algorithm, but in the "last mile." Decision-making generates a beautiful prescription map, but no one on site knows how to operate the equipment; or the equipment can be operated, but the system cannot issue an instruction it understands; or the instruction is sent, but the result never comes back, and the ledger stays blank forever.

What execution must solve is turning "an instruction in the digital world" into "an action in the physical world," and then turning "a result in the physical world" into "a record in the digital world." Only when all three directions are connected is the loop truly closed.

MCP: The Tool Registry Layer of the Physical World

MCP (Model Context Protocol) is the unified access layer of the AgriBrain. It does two things: downward, it encapsulates the capabilities of different devices and protocols into standardized tool interfaces; upward, it lets the Agent call physical devices the way it calls functions, without needing to understand the underlying register addresses or proprietary protocols.

For an integrated water and fertilizer machine, for example, MCP encapsulates "open valve, set flow rate, set ratio, read water meter, read real-time EC/pH, close valve zone" into standardized tools. For a plant protection drone, MCP encapsulates "upload route, issue takeoff command, return flight trajectory, return spraying area" into standardized tools. For an unmanned vehicle, MCP encapsulates "load, navigate, unload, return position" into standardized tools. The Agent does not need to know whose device it is or what protocol it uses — it only needs to call them one by one according to the prescription map.

Image placeholder: MCP connection layer connecting downward to multiple categories of devices

Agent Orchestration: From Prescription to Instruction Stream

MCP provides the tools, and the Agent is responsible for orchestration. A single prescription map often corresponds to multiple devices, multiple actions, and multiple points in time. Take "apply a round of fruit-development fertilizer to Plot No. 3 Area A" as an example. What the Agent must do includes: call the plantation management interface to query the tree file and confirm that the plot is in the fruit-bunch development stage; call the supply chain system to verify potassium fertilizer inventory; call the IoT control system to dispatch the integrated water and fertilizer machine according to the valve-zone map to open the valve, set flow rate and ratio; close the valve zone after the operation, and read actual water and fertilizer consumption; finally create a farming record and write it back to the traceability database.

This sequence of actions is a standard execution flow for the Agent. If any step fails, the Agent can detect it and respond: when inventory is insufficient, trigger an emergency procurement process and suggest alternative batches; when valve-zone pressure is abnormal, suspend the task and feed it back to the LM to generate an alert; when the operation result deviates too much from the prescription, trigger a review. Execution is not "issue the instruction and walk away" — it is "continuous monitoring, exception response, and result recovery."

Image placeholder: Flow chart of the Agent dispatching multiple devices according to the prescription map

Three Main Categories of Execution Equipment

Integrated water and fertilizer machine. Receives soil moisture from the sensing layer and fertilization ratios from the prescription map, performing precision irrigation and variable-rate fertilization by valve zone. MCP feeds execution results back in real time — actual water consumption, fertilizer consumption, and irrigation duration are all written back to the ledger. In the Sabah palm plantation, this system has reduced water and fertilizer waste by about 30%.

Plant protection drone. Receives pest and disease warnings and pesticide recommendations from the decision layer, and performs swarm operations along designated routes. MCP connects the entire flow of route planning, takeoff, spraying, and feedback. After the operation, flight trajectory, actual spraying area, and pesticide dosage return to the system and directly update the production ledger.

Unmanned vehicle. Handles harvesting and transport, driving automatically along navigation routes from the plot to the collection point. MCP encapsulates loading, navigation, unloading, and position feedback into standardized actions, reducing reliance on manual handling.

Human-in-the-loop: The Manual Gate for High-Risk Actions

Execution is not about "the more fully automatic, the better." Routine farming tasks are executed automatically by the Agent, but for high-risk operations such as large-scale pesticide application, cross-plantation scheduling, and emergency work under abnormal weather, the system sets up a manual review mechanism. The Agent suspends the task before execution and pushes it to the agricultural FDE for confirmation; only after confirmation is it released.

This design is not a technical compromise but a business necessity. There are too many variables in the agricultural field — a single wrong pesticide application can affect an entire season's harvest, or even EUDR compliance. The value of a human in the loop is not to replace AI judgment, but to make the final confirmation at key nodes — AI is responsible for calculating accurately and quickly, and the human is responsible for the final sign-off.

Image placeholder: FDE confirming a high-risk operation task in the cockpit

Result Feedback and Physical Loop Closure

The mark of a completed execution is not "the instruction has been sent," but "the result has come back." MCP feeds back real-time data from every execution: actual consumption of the integrated water and fertilizer machine, the flight trajectory of the drone, the position record of the unmanned vehicle — all with timestamps and spatial coordinates, written into the AG Ontology.

This step is what truly closes the loop. Sensing provides evidence, decision-making generates prescriptions, execution produces results, and the results become input for the next round of sensing and decision-making. Data does not sit idle in the system — it continuously flows through the "sense — decide — execute — feedback" cycle. The more the loop runs, the thicker the AG Ontology becomes, the more accurate the next decision, and the more stable the execution.

From the digital world to the physical world, and from the physical world back to the digital world — this is one complete circle of the farm operation loop. Only when sensing, decision-making, and execution are connected can Dingsheng Yunzhi truly claim that it "lets AI work in the fields."