A harness assembles context, validates and executes tool calls, returns results to the model, and stops execution. A tool call is a proposed function call with arguments. Nothing has happened until the application executes it.
| Approach | Who selects the next step | Example |
|---|---|---|
| Workflow | A predefined route with branches | Validate invoice → extract fields → save |
| Agent | The model, using earlier action results | Investigate a failure and choose searches based on findings |
ReAct (Reasoning + Acting) alternates reasoning, actions and observations: results received from the environment. An observation informs the next step. This does not require exposing hidden reasoning to the user or necessarily fine-tuning a model.
A string containing someone else's invoice identifier (ID) can pass schema validation and fail authorization. A proposed transfer({amount:1000}) does not itself authorize a transfer.
search_report. The application executes an authorized search.reportId: R17. This is an observation, not a model-invented ID.R17.Sending depends on retrieval, so these steps cannot run simultaneously. Two independent reads may run in parallel within service limits. If a tool is unavailable, revise the plan within existing permissions or report the limitation; imaginary calls execute nothing.
Model Context Protocol (MCP) standardizes communication between an application and external servers. The host coordinates the application and creates client connections. A client maintains communication with a particular server.
| MCP capability | Meaning | Example |
|---|---|---|
| Tools | Callable actions | Find a report |
| Resources | Data addressed by URI (Uniform Resource Identifier) | Document contents |
| Prompts | Reusable message templates | A report-analysis template with arguments |
Connecting an MCP server does not grant permission to delete arbitrary files. Authorization remains a separate system responsibility.
A subagent receives a bounded task: a goal, relevant data, constraints and a verifiable output format. Database-schema analysis needs the schema and requirements, usually not the main agent's secrets. Delegation is justified when its benefit outweighs extra latency and cost.
Agreement between two agents is not independent verification when both use the same faulty source. Check the changed file, record or operation result. An eval harness is a separate use of the word: infrastructure that runs evaluation tasks and collects metrics.