# 第八章 工具调用与能力扩展

大语言模型的能力有边界——它无法直接访问实时数据、执行代码或操作外部系统。**工具调用**（Tool Calling / Function Calling）机制打破了这一限制，让模型能够调用外部工具来扩展能力。

本章会探讨工具调用的机制、工具设计原则、执行与结果处理，以及 MCP 协议等工具标准化方案。工具调用是构建强大 AI 应用和智能体的基础能力。

## 本章内容

* [8.1 函数调用机制](/context_engineering_guide/di-san-bu-fen-jin-jie-ji-shu-yu-jia-gou/08_tools/8.1_function_calling.md)
* [8.2 工具定义与设计](/context_engineering_guide/di-san-bu-fen-jin-jie-ji-shu-yu-jia-gou/08_tools/8.2_tool_design.md)
* [8.3 工具执行与结果处理](/context_engineering_guide/di-san-bu-fen-jin-jie-ji-shu-yu-jia-gou/08_tools/8.3_tool_execution.md)
* [8.4 模型上下文协议与工具标准化](/context_engineering_guide/di-san-bu-fen-jin-jie-ji-shu-yu-jia-gou/08_tools/8.4_mcp_protocol.md)
* [本章小结](/context_engineering_guide/di-san-bu-fen-jin-jie-ji-shu-yu-jia-gou/08_tools/summary.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yeasy.gitbook.io/context_engineering_guide/di-san-bu-fen-jin-jie-ji-shu-yu-jia-gou/08_tools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
