Agent Skills, MCP, Prompts, and Function Calling: Understanding the Boundaries
Prompts, agent skills, MCP, and function calling address different aspects of an AI agent system: task instructions, reusable task knowledge, external integrations, and structured tool requests. This article explains their responsibilities, shows how they can work together in an order-analysis workflow, and outlines the engineering controls needed for reliable, secure execution.
1. The Key Distinction: They Solve Different Problems
Discussions of AI agent systems often involve four concepts: prompts, agent skills, the Model Context Protocol (MCP), and function calling.
These mechanisms can work together, but they are neither four competing solutions nor mandatory layers in a fixed architecture.
A more useful distinction is:
- Prompts communicate task objectives, context, constraints, and output requirements.
- Agent skills organize the knowledge, procedures, templates, and supporting resources needed for a category of tasks into reusable units.
- MCP provides a standardized protocol for connecting agent applications to external tools, resources, and reusable prompt templates.
- Function calling allows a model to produce structured tool-call requests, while the host application performs the actual execution.
A workplace analogy can help: a prompt is the task brief, a skill is the operating procedure and reference pack, MCP is the standard interface to external capabilities, and function calling is the action request submitted to an execution program.
The analogy is useful, but it does not replace technical definitions. In particular, requesting an action does not mean the model has executed it.
2. Prompts: Defining What to Do and How to Respond
Prompts are the basic instruction mechanism for interacting with a model. They can include task descriptions, role constraints, reference material, output formats, evaluation criteria, and examples.
For an order-anomaly analysis task, a prompt might say:
Identify anomalies in the supplied order records, focusing on duplicate orders, inconsistent amounts, and conflicting statuses. Separate confirmed anomalies from issues requiring verification. If information is insufficient, identify the missing fields rather than inventing facts.
This prompt defines the analytical objective, scope, and handling of uncertainty. It does not give the model access to an order database.
Prompts Do Not Grant Tool Permissions
Instructions such as “query the database,” “send a notification,” or “update an order” are natural-language requests. Whether those actions can occur depends on the tools exposed by the host application and the permissions enforced by the execution environment.
Prompts therefore address how behavior is expressed, not network connectivity, authentication, or authorization.
Even if a prompt says “read data only,” the system does not have a reliable read-only boundary if its execution layer still permits unrestricted writes. Security constraints must be enforced where actions are executed.
A Long Prompt Is Not Automatically a Skill
Putting every business rule into one prompt may work initially, but it becomes difficult to maintain as the system grows:
- Multiple tasks share the same instructions, making relevant rules difficult to load selectively.
- Business knowledge is copied across entry points, creating inconsistent versions after updates.
- Instructions and example data become mixed together, making it hard to identify what remains valid.
- Each request carries large amounts of irrelevant information, increasing context overhead.
- Without independent tests, maintainers cannot determine whether a process change affects other tasks.
Prompts can be part of a skill. The value of a skill, however, is not simply a longer prompt: it is a maintainable, reusable engineering unit for task-specific knowledge and methods.
3. Agent Skills: Packaging How a Category of Tasks Should Be Completed
An agent skill is a task-oriented capability package. It typically combines instructions, procedures, reference material, templates, and, where needed, supporting scripts around a defined objective.
Implementations can differ in directory structure, loading rules, and execution mechanisms. There is no reason to assume every system uses the same format. Their shared value is turning task knowledge from scattered conversational instructions into a managed, reusable asset.
Skills Include More Than Execution Steps
A practical skill should answer:
- When should it be used?
- What inputs does it require?
- Which tools or external resources does it depend on?
- What are the normal execution steps?
- How should missing data or tool failures be handled?
- What conditions indicate completion?
- Which actions require pausing for human confirmation?
For example, an order-anomaly analysis skill could contain:
Objective:Identify anomalies in order data and produce a verifiable report.Required inputs:Time range, analysis scope, and anomaly rules.Procedure:1. Check that the inputs are complete.2. Retrieve order data within the authorized scope.3. Identify potential anomalies using the defined rules.4. Perform additional checks on significant anomalies.5. Generate a report with evidence sources.Completion criteria:Every reported anomaly has a rule-based justificationand traceable supporting records.Exception handling:If a query fails, identify the unfinished work.If evidence is insufficient, mark the issue as requiring verification.Request human confirmation before changing an order status.
This is a neutral organizational example, not a configuration specification for a particular system.
Skills Do Not Always Need External Tools
Some skills can operate entirely on supplied material, such as document review, text classification, or report formatting. They may need neither MCP nor function calling.
Other skills require database queries, file processing, or access to business APIs. Those tasks need appropriate tool connections and execution mechanisms.
A skill describes task knowledge and methods; it does not mandate a particular protocol for connecting tools.
Skills Do Not Guarantee Strict Execution
A model may skip a step or incorrectly decide that completion criteria have been met. If a business process contains steps that must never be skipped, written skill instructions alone are usually insufficient.
For example, “verify payment status before issuing a refund” should also be an enforced condition in the execution program. For high-risk tasks, explicit state controls, rule checks, and human approval can keep critical constraints independent of model judgment.
4. MCP: Standardizing Connections to External Capabilities
MCP addresses how agent applications interact with external capability providers. It defines communication and capability-interaction rules that allow clients to discover and use tools, resources, and prompt templates exposed by servers.
In a typical arrangement:
- The host application manages model interactions, sessions, and overall execution logic.
- The client establishes the protocol connection to a server.
- The server exposes external capabilities such as tools and resources.
- The host decides which capabilities and results to present to the model.
The application, rather than the model itself, normally handles connections, authentication, and remote execution.
MCP Reduces Repeated Integration Work
If each agent application builds a separate integration approach for databases, file systems, and business APIs, substantial work is duplicated.
A standardized protocol can reduce that cost by providing a more consistent way to discover and use external capabilities. However, adopting a standard protocol does not automatically standardize all business semantics.
Parameter meanings, result formats, authorization scope, and error handling still need clear definitions. Clients and servers must also account for protocol versions, supported capabilities, and deployment differences.
MCP Does Not Define the Complete Business Workflow
Exposing a “query orders” tool does not tell the system how to perform order-anomaly analysis.
The same query tool could support customer-service investigations, business analysis, or data reconciliation. What to query, how to interpret the results, and when to perform additional checks still depend on prompts, skills, and host-application orchestration.
MCP Provides More Than Tools
Calling MCP a “toolbox” is intuitive but incomplete. Alongside executable tools, servers can expose resources that applications retrieve and reusable prompt templates.
Protocol support for a capability does not mean a model will automatically discover, load, or use it correctly in every situation. Actual behavior depends on client support, host policies, and how context is assembled.
5. Function Calling: Turning Action Intent into Structured Requests
Function calling generally means that a model uses tool descriptions to generate a structured request containing a tool name and arguments. The host application validates, authorizes, and executes the request, then returns the result to the model.
An illustrative request looks like this:
{"tool_name": "query_orders","arguments": {"start_date": "2026-11-01","end_date": "2026-11-30","status": "pending"}}
These fields and the tool name illustrate the structure only; they do not represent a specific API specification.
The typical flow is:
- The application supplies the task and available tool descriptions to the model.
- The model proposes a tool-call request.
- The application checks arguments, identity permissions, and business conditions.
- The execution program invokes the corresponding capability.
- The application returns the result to the model.
- The model continues its analysis or proposes another call.
Function calling is not a business solution exclusive to one vendor, nor is it a single standardized network transport protocol. Model APIs may represent structured tool calls differently.
Most importantly, a structurally valid request is not necessarily a correct action. Valid arguments can still specify the wrong time range, target an inappropriate object, or request an unauthorized operation.
6. Why a Strict Layered Architecture Can Be Misleading
Arranging function calling, MCP, and skills from bottom to top can help beginners distinguish their responsibilities. It becomes misleading when the diagram is treated as a mandatory dependency hierarchy.
Several combinations are valid:
| Scenario | Possible combination |
|---|---|
| Prepare a report from supplied material | A prompt, or a prompt plus a skill |
| Invoke a local calculation function | A prompt plus function calling |
| Query external data through a standard protocol | A prompt, function calling, and MCP |
| Perform complex business analysis | A prompt, a skill, tool calling, and external connections |
| Process a batch using fixed rules | Conventional program logic; a model may not be needed |
A common implementation translates tool descriptions from an MCP server into tool definitions supported by the model. The host then routes the model’s tool-call requests for execution. This is a common integration path, not the only possible architecture.
The more accurate view is that these mechanisms are related but independent design dimensions.
7. Example: Generating a Monthly Order-Anomaly Report
Suppose a user asks:
Analyze last month’s order anomalies and generate a report, but do not change any order statuses.
The task can be organized as follows.
The Prompt Defines the Current Task Boundaries
The prompt specifies the analysis period, report structure, and prohibition on status changes.
If “last month” depends on a business time zone or reporting convention, the system must resolve those boundaries rather than assume the model interprets them correctly.
The Skill Supplies a Reusable Analysis Method
The skill defines anomaly rules, verification steps, evidence requirements, and the report template.
For example, a suspected duplicate order should trigger checks of order identifiers, creation times, and relevant business relationship fields. Matching amounts alone are not sufficient evidence of duplication.
MCP Connects to Authorized Data Capabilities
If the system uses MCP, a server can expose order-query and status-reading capabilities.
The server should restrict accessible data according to identity and permissions rather than rely on the model to filter out sensitive records.
Function Calling Expresses Specific Query Actions
The model proposes query requests for the task. The host checks the time range, expected result size, and authorization conditions before execution.
If results are too large, the program can paginate them according to deterministic rules instead of placing every raw record into the model’s context.
The Execution Layer and Model Share Verification Responsibilities
The program handles counting, rule calculations, and data-completeness checks. The model explains anomalies, organizes the report, and communicates uncertainty.
The report should distinguish confirmed anomalies, suspected anomalies, and incomplete verification. Neither tool output nor model inference should automatically be treated as a verified conclusion.
8. Engineering Priorities for Implementation
Least Privilege Is More Reliable Than Written Constraints
If an analysis task only requires queries, expose read-only capabilities. Deletions, payments, and status changes should have separate authorization, explicit confirmation, and audit records.
A natural-language request alone should not grant the model permissions beyond the task’s scope.
External Content Must Not Automatically Become Instructions
Tool responses, file contents, and resource descriptions may contain untrusted instructions. Applications should treat them as data to analyze, not as permission to change system rules.
In particular, external content must not be allowed to induce information disclosure, expand the query scope, or trigger actions unrelated to the original task.
Tools Need Clear Business Contracts
Tool descriptions should explain their purpose, input conditions, result meanings, error types, and whether they produce side effects.
For write operations, the design should also account for repeated requests, unknown operation status after a timeout, and compensating actions.
A name and a list of parameters are usually insufficient for reliable tool use.
Skills Need Version Control and Regression Tests
Skills should record ownership, scope, and change history. Tests should cover not only successful cases but also missing inputs, tool failures, conflicting results, and insufficient permissions.
Evaluation should focus on task correctness, evidence completeness, and control of risky actions—not merely fluent output.
Observe Each Responsibility Separately
Record task inputs, skill versions, tool requests, authorization results, execution status, and final outputs, while masking sensitive data.
This makes it possible to distinguish ambiguous prompts, defective skill rules, incorrect tool selection, and external-service failures. Attributing every failure to “model instability” can conceal the actual engineering problem.
9. Choose Mechanisms by Problem, Not by Architectural Fashion
Prompts express tasks. Skills make task knowledge reusable. MCP standardizes connections to external capabilities. Function calling expresses structured action requests.
They can work together, but a system does not need all four, and no fixed hierarchy fits every use case.
For tasks involving only supplied text, start with a clear prompt. When similar tasks recur, package the reusable knowledge into a skill. When external actions are required, introduce controlled tool calling. When integrating multiple capabilities creates repeated work, consider a standardized connection protocol.
A reliable agent system is not defined by how many concepts it incorporates. It depends on clear responsibilities, constrained permissions, verifiable execution results, and failures that can be traced and handled.
