> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/en-us/advanced-basic/developer-tools/trace.md).

# Call chain and developer mode

The call chain is used to view the model requests, tool calls, and MCP interactions that occur within a conversation or an Agent task. It is suitable for troubleshooting and performance analysis, and is not a feature that needs to be enabled for everyday chatting.

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2FaiNVHv3EH5SexjpstRUA%2Fclipboard.png?alt=media&amp;token=8ae9d676-20dd-4116-b90c-8c1018d8e26d" alt="从运行环境、认证网络到 Agent 绑定和调用链的 MCP 排错流程图"><figcaption><p>When troubleshooting MCP calls, first confirm the server and authentication, then use the call chain to determine whether the request has entered the Agent and tool execution stages.</p></figcaption></figure>

### How to enable

{% stepper %}
{% step %}

#### 1. Open \[Settings] → \[General]

Enable \[Developer Mode] in the \[Developer Mode] section.
{% endstep %}

{% step %}

#### 2. Restart Cherry Studio

Developer Mode takes effect after restart. Agent tasks that are running before the restart should have their status confirmed first.
{% endstep %}

{% step %}

#### 3. Reproduce the issue once

Resend the smallest test message, keeping only the necessary model and tools to reduce unrelated calls.
{% endstep %}

{% step %}

#### 4. Open the call chain

Go to \[Call Chain] in the right panel of the conversation or Agent, and select a node to view the input, output, time spent, and status. Agent tasks can also show the Agent name, action, and number of tool calls.
{% endstep %}
{% endstepper %}

### How to read common nodes

| Node            | Key things to check                             | FAQ                                                              |
| --------------- | ----------------------------------------------- | ---------------------------------------------------------------- |
| Model request   | Model, input, output, token, and status         | Provider error, context too long, empty output                   |
| Tool call       | Tool name, parameters, result                   | Parameter errors, waiting for permission, abnormal tool response |
| MCP call        | Service name, connection type, input and output | Server disconnect, authentication failure, remote error          |
| Agent execution | Agent, action, number of tools, and status      | Subtask failed, process did not finish                           |
| HTTP request    | Method, URL, status, and response               | Incorrect address, network, or authentication issues             |

{% hint style="danger" %}
The call chain may contain prompts, file contents, request headers, and tool parameters. Before sharing screenshots or exported information, you must remove API Keys, Authorization, cookies, email addresses, local paths, and business data.
{% endhint %}

### User case: MCP tool returns an empty result

First confirm on the MCP settings page that the server is working normally, then have the Agent call only one tool. The call chain shows that the request reached the server but the output is empty, which means the problem is more likely in the server-side data or parameters rather than the Agent not being bound; if there is no MCP node at all, go back to the Agent \[MCP] settings to check the binding.

<details>

<summary>Why can’t I see the call chain even after enabling it?</summary>

Make sure you have restarted the app, then initiate the request again after the restart. Historical messages created before enabling it will not automatically be filled in with call data.

</details>

<details>

<summary>Why can’t I see the call chain even after enabling it?</summary>

Make sure you have restarted the app, then initiate the request again after the restart. Historical messages created before enabling it will not automatically be filled in with call data.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.cherryai.com.cn/docs/en-us/advanced-basic/developer-tools/trace.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
