From Tool Calling to Agent Collaboration: Boundaries and Practices of AI Agent Mechanisms
This article clarifies the boundaries and practical applications of different AI agent mechanisms, including Function Call, Tools, MCP, Skills, and A2A. It explains how these mechanisms operate at different layers—from model-level requests to inter-agent communication—and how they can be combined to build robust, controllable agent architectures. Readers will learn how to select the right level of complexity for their specific use cases while maintaining security, governance, and business logic validation.
1. Establishing the Right Understanding: They Are Not Interchangeable Alternatives
When discussing agent technology, a common misconception is to place Function Call, Tools, MCP, Skills, and A2A on a single evolutionary line, assuming that newer concepts will replace earlier mechanisms.
In reality, they focus on different layers:
- Function Call: A mechanism where the model proposes a call request in a structured format.
- Tools: Capabilities and their descriptions provided to the model for selection, executed by the runtime environment.
- MCP: A protocol that unifies the interaction method between agent applications and external tools, resources, or other context capabilities.
- Skills: Reusable capability packages that encapsulate the instructions, knowledge, steps, and optional scripts or resources required for a specific task.
- A2A: A communication protocol that supports capability discovery, task delegation, state exchange, and result delivery between agents.
These mechanisms can be used in combination. For example, an agent responsible for generating a business analysis report can load a report compilation Skill, access a data query tool via MCP, and then delegate professional analysis tasks to another agent via A2A. The specific tool call request might still be generated by the model through Function Call.
Understanding this layered relationship is more important than memorizing concept abbreviations.
2. Function Call: The Model Proposes, the Program Executes
2.1 Why Structured Calls Are Needed
In a pure conversational mode, the model primarily generates text or other forms of content; it cannot actually access weather data just by saying “I have checked the weather.”
To involve the model in actual business processes, a controlled channel must be established between the model’s output and the external execution environment:
- The application describes available capabilities to the model.
- The model selects capabilities based on user intent and generates parameters.
- The application validates the call request.
- The executor invokes the actual service or function.
- The application returns the execution result to the model.
- The model generates an answer based on this, or proposes the next call.
Therefore, the core of Function Call is not to let the model execute code directly, but to let the model produce a call intent that can be recognized and processed by the program.
2.2 How a Weather Query Works
Suppose the application provides a weather query capability, with a schematic definition as follows. Note that this uses a custom description structure, not a specific platform’s API format.
{"name": "get_weather","description": "Query weather information for a specified city","input_schema": {"type": "object","properties": {"city": {"type": "string","description": "City name"}},"required": ["city"]}}
When the user asks, “What is the weather like in Shanghai now?”, the model might return a call request like this:
{"name": "get_weather","arguments": {"city": "Shanghai"}}
Upon receiving the request, the application should not treat it directly as a trusted command, but must first confirm:
- Whether
get_weatherbelongs to the allowed tools; - Whether the current user is authorized to use this capability;
- Whether
citymeets the parameter requirements; - Whether the request exceeds frequency, time, or resource limits.
After validation passes, the executor queries the external data and returns the result to the model along with the corresponding call identifier. The model then organizes a natural language answer based on the actual query result.
The boundary in this process is very clear: The model is responsible for deciding “what is needed,” and the program is responsible for deciding “whether it is allowed” and “how to execute it.”
2.3 Prompt Constraints vs. API-Level Calls Are Not the Same
By prompting the model to output a specific format, a basic tool calling process can also be achieved. However, this approach is prone to issues like formatting errors, additional explanatory text, or missing fields.
Model APIs that support structured tool calls can usually express call requests using a specialized message structure, reducing the parsing burden. However, structured output only improves the expression method; it does not guarantee correct parameters, legal permissions, or safe business operations.
Even if the format fully meets the requirements, problems like “ambiguous city name,” “unreasonable time range,” or “calling an unauthorized capability” may still occur. Business validation cannot be omitted.
3. Tools: More Than Just a Function Name
Function Call describes the calling mechanism, while Tools describe the callable capabilities. The two are closely related but are not entirely equivalent.
A tool can correspond to a local function, or it can correspond to a remote service, database query, file operation, or business process. What the model sees is usually just the tool’s name, purpose, and input constraints; the actual implementation is encapsulated in the execution layer.
3.1 Tool Descriptions Directly Impact Selection Quality
If two tools are named query_data and process_data but lack accurate descriptions, the model will struggle to know when to use them.
A more effective tool description should explain:
- What problems it can solve;
- The meaning of input fields;
- Under what conditions it is applicable;
- Under what conditions it is not applicable;
- Whether it has side effects like writing, deleting, or sending;
- What judgments the returned result can support.
More tools are not necessarily better. A large number of tools with overlapping purposes or blurred boundaries will increase selection difficulty and occupy the model’s context. In practice, you can filter tools based on user permissions, business scenarios, and the current task, rather than exposing all capabilities at once.
3.2 Tool Calling Must Form a Controlled Closed Loop
Below is a simplified execution flow, presented as logical pseudocode:
Set maximum calling rounds and total execution budgetLoop:Request the model to generate the next step resultIf the model returns a tool call:For each call request:Validate tool name, parameters, and user permissionsDetermine if human confirmation is needed based on riskExecute the tool and record the resultAssociate the result with the original call requestAdd tool results to the contextContinue the loopIf the model returns a final answer:Check if there are sufficient results according to business requirementsIf end conditions are met, return the answerWhen exceeding rounds, time, or cost budget:Terminate execution and explain the current status
“No tool call” only means that the model did not request external capabilities in the current round; it does not necessarily prove that the task is complete.
For complex tasks, the decision to terminate should be based on explicit completion status, business acceptance conditions, result integrity, and budget limits. When operations involving payments, ticket submissions, or configuration modifications occur, a distinction should also be made between “the model thinks it’s done” and “the external system confirms completion.”
4. MCP: Unifying Access, Not Replacing Tool Calling
When multiple agent applications need to access the same data sources and business capabilities, developing adapters one by one creates repetitive work.
MCP (Model Context Protocol) primarily addresses this standardization of access and interaction. It allows applications to interact with capability providers according to a consistent protocol, rather than designing completely different communication methods for each external system.
4.1 Basic Roles and Capability Boundaries
A typical structure includes:
- Host Application: Carries model interaction, user interface, and business processes.
- Client: Establishes a protocol connection with the capability provider within the host.
- Server: Provides external capabilities such as tools, resources, or prompt templates.
Here, tools are usually used to execute actions or queries; resources provide readable context data; and prompt templates offer reusable interaction organization methods. Which capabilities are specifically supported still depends on the implementation and protocol version; you cannot assume every server has all capabilities.
The model does not necessarily directly understand or participate in MCP communication. A common practice is for the application to discover server tools, convert the tool descriptions into a format the model can use, and then pass the call requests generated by the model to the corresponding execution chain.
Therefore, MCP and Function Call are not in conflict:
Function Call solves how the model expresses the call intent, while MCP solves how the application accesses and calls external capabilities in a standard way.
4.2 Standardization Does Not Mean Unified Business Logic
MCP can reduce access layer differences, but it will not automatically solve all tool semantic issues.
Even if two services both provide a “query order” capability, they may have different fields, status definitions, permission requirements, and error handling methods. After the access protocol is unified, the application still needs to handle business semantics, data mapping, and permission boundaries.
Furthermore, MCP itself cannot replace tool implementations, nor can it guarantee reliable calls, authentic results, or data compliance. Production systems still require authentication and authorization, timeout control, logging and auditing, and necessary isolation measures.
5. Skills: Reusing Work Methods, Not Just Execution Entry Points
Skills may take different organizational forms in different implementations and should not be understood as a completely unified interface standard. A safer understanding is: A Skill is a set of reusable knowledge and operational norms organized around a specific task, optionally accompanied by scripts, templates, or reference materials.
5.1 Tools and Skills Solve Different Problems
Take generating a business analysis report as an example:
- The data query tool is responsible for obtaining metrics;
- The document generation tool is responsible for outputting files;
- The report compilation Skill is responsible for explaining how to interpret metrics, how to organize chapters, how to identify anomalies, and which conclusions must be supported by evidence.
Tools provide “actions that can be executed,” while Skills provide “methods to complete tasks.”
A Skill can call multiple tools, or it may only contain writing guidelines without involving external execution. Conversely, a tool can also be shared by multiple Skills.
5.2 Why On-Demand Loading Is Needed
Putting all business specifications, templates, and operational steps into every request will increase the context burden and let irrelevant content interfere with the current task.
A common practice is to first provide a brief description of the Skill, and then load detailed instructions and necessary resources after a relevant task is identified. This on-demand loading helps control the context size, but it does not guarantee that the model will always follow all steps correctly.
For processes requiring mandatory validation, you should not rely solely on textual requirements in the Skill. For example, when a financial report must meet field integrity and calculation consistency, the program should perform the check, rather than just telling the model “please check carefully.”
5.3 Skills Also Require Version and Security Management
The instructions included in a Skill may change model behavior; accompanying scripts may also affect the execution environment. Therefore, they should be subject to version control, source verification, and permission management.
It is especially important to clarify: loading a Skill does not mean allowing its accompanying content to execute arbitrarily. Script execution should go through a controlled entry point and have necessary measures like sandboxing, resource limits, or human approval.
6. A2A: Delegating Tasks to Another Agent
When a system involves multiple agents with different knowledge, permissions, and execution environments, ordinary tool interfaces alone may not be sufficient to express the collaboration process.
A2A (Agent-to-Agent communication protocol) focuses on capability discovery, task delegation, state exchange, and result delivery between agents.
6.1 Difference Between Tool Calling and Task Delegation
Ordinary tool calls usually revolve around explicit inputs and outputs, such as passing in an order ID and returning order details.
Tasks delegated to another agent may be more open-ended, for example:
“Analyze the main reasons for customer complaints in a certain category, propose improvement suggestions based on ticket records, and provide evidence.”
The agent receiving the task may need to break down the problem itself, call multiple tools, wait for data supplements, and finally return the analysis result. In this case, the caller needs not just a function return value, but possibly also task progress, requests for additional information, failure status, and the final deliverable.
6.2 Communication Protocols Do Not Equal Collaboration Strategies
A2A provides the protocol foundation needed for agent interaction, but it does not automatically decide how to split tasks, select collaborators, handle conflicts, or evaluate results.
These still belong to upper-layer orchestration and business design. For example, when two agents give contradictory conclusions, the system needs to define evidence priority, review processes, and the ultimate responsible party, rather than defaulting to trust simply because the result came from another agent.
Cross-agent collaboration should also limit delegation depth and execution budgets to avoid tasks circulating indefinitely, repeated execution, or cost overruns.
7. Combining These Mechanisms into a Clear Architecture
The system can be divided into the following layers based on responsibilities:
| Layer | Core Issue | Main Mechanism |
|---|---|---|
| Model Decision Layer | What capability is needed next | Function Call |
| Capability Description & Execution Layer | What actions exist, how to execute them with control | Tools |
| External Access Layer | How to uniformly connect tools and context sources | MCP |
| Task Knowledge Layer | How a certain type of work should be completed | Skills |
| Collaboration Communication Layer | How to delegate tasks to other agents | A2A |
| Governance Layer | Who can do what, how to verify and track | Permissions, Audit, Budget, Acceptance |
Taking “generating a monthly business report” as an example, the complete process could be:
- The main agent loads the report compilation Skill to determine the structure and metric definitions.
- It requests business data via tool calls.
- The application connects to relevant capability services via MCP to complete the data query.
- For the professional analysis section, it is delegated to an agent with the corresponding capabilities via A2A.
- The main agent integrates the data and analysis results.
- The program checks key metrics, source references, and document integrity.
- After user confirmation, the publishing or sending operation is executed.
Here, MCP and A2A handle connection issues in different directions; Skills provide the working methods; Tools carry the actual actions; and Function Call connects the model’s judgment with the execution entry point.
8. Implementation Selection: Prioritize Minimal Complexity That Meets Needs
If you are just adding a few stable capabilities to an application, clear tool descriptions and a reliable calling loop are usually sufficient. There is no need to introduce a multi-agent architecture from the start.
When multiple applications repeatedly access the same set of data and capabilities, consider using MCP to reduce adaptation costs.
When a certain type of task has reusable steps, templates, and professional specifications, you can consolidate experience through Skills to reduce repeatedly writing long prompts.
When a task needs to cross the capability boundaries of independent agents, and involves long-term execution, progress exchange, or complex result delivery, A2A becomes more valuable.
Ultimately, what should be measured is not how many technical concepts are used, but whether the system genuinely improves task success rates, maintainability, and controllability.
Regardless of which combination is chosen, you should adhere to three bottom lines: Model output is not an authorization credential, external results are not inherently trusted evidence, and a connected protocol does not mean the business task is complete. Only by combining these mechanisms with permission control, result validation, failure handling, and audit systems can agents move from “being able to call capabilities” to “being able to reliably complete work.”
