Paper deep dive
MCPDisCo: Seesaw-Mitigated Tuning for MCP-Native Agents
Kounianhua Du, Jianxing Liu, Shuai Shao, Ke Li, Xing Sun, Weinan Zhang
Intelligence
Status: not_run | Model: - | Prompt: - | Confidence: 0%
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:The Model Context Protocol provides a shared interaction substrate for the agentic web, allowing heterogeneous services to expose capabilities through a standardized interface. Learning to use this ecosystem entails a hierarchy of capabilities: tool-format skills, server-level transfer, and cross-server composition. We present MCPDisCo, an ecosystem-scale reinforcement learning framework for MCP-native agents. Using a Thought-Markov Decision Process (Thought-MDP), the framework explicitly represents internal reasoning alongside routing, execution, and termination and trains on real-server, long-horizon interactions spanning 70 MCP servers and 527 tools across six domains. We study the reasoning--tool seesaw, a joint-learning failure mode in which improvement in one objective can accompany deterioration in the other. To mitigate potential interference, MCPDisCo combines token-masked reward attribution with bidirectional gradient surgery: the former separates direct supervision for reasoning and action spans, while the latter removes conflicting components from both objective gradients in shared parameters. MCPDisCo achieves higher success with fewer chain-of-thought tokens. On the out-of-distribution MCP-Atlas and the GAIA benchmark, MCPDisCo maintains monotone gains, confirming that the learned behavior generalizes beyond the training server distribution and broader agentic tasks. Model weight and implementation are available.
Tags
Links
- Source: https://arxiv.org/abs/2610.14956v1
- Canonical: https://arxiv.org/abs/2610.14956v1
Trouble viewing inline? Open PDF directly â
Full Text
47,563 characters extracted from source content.
Expand or collapse full text
MCPDisCo: Seesaw-Mitigated Tuning for MCP-Native Agents Kounianhua Du Affiliation: Shanghai Jiao Tong University Email: kounianhuadu@sjtu.edu.cn Jianxing Liu Affiliation: Shanghai Jiao Tong University Email: flweb3ranni@sjtu.edu.cn Shuai Shao Affiliation: Shanghai Jiao Tong University Email: shaoshuai.ederson@sjtu.edu.cn Ke Li Affiliation: Tencent.Shanghai, China Email: wnzhang@sjtu.edu.cn Xing Sun Affiliation: Tencent.Shanghai, China Email: tristanli@tencent.com Weinan Zhang Affiliation: Shanghai Jiao Tong University Email: winfredsun@tencent.com Abstract The Model Context Protocol (MCP) provides a shared interaction substrate for the agentic web, allowing heterogeneous services to expose capabilities through a standardized interface. Learning to use this ecosystem entails a hierarchy of capabilities: tool-format skills, server-level transfer, and cross-server composition. We present MCPDisCo, an ecosystem-scale reinforcement learning framework for MCP-native agents. Using a Thought-Markov Decision Process (Thought-MDP), the framework explicitly represents internal reasoning alongside routing, execution, and termination, and trains on real-server, long-horizon interactions spanning 70 MCP servers and 527 tools across six domains. We study the reasoningâtool seesaw, a joint-learning failure mode in which improvement in one objective can accompany deterioration in the other. To mitigate potential interference, MCPDisCo combines token-masked reward attribution with bidirectional gradient surgery: the former separates direct supervision for reasoning and action spans, while the latter removes conflicting components from both objective gradients in shared parameters. MCPDisCo achieves higher success with fewer chain-of-thought tokens. On the out-of-distribution MCP-Atlas and GAIA benchmark, MCPDisCo maintains monotone gains, confirming that the learned behavior generalizes beyond the training server distribution and broader agentic tasks. Model weight and implementation are available. 11 1 https://anonymous.4open.science/r/MCPDisCo/README.md. 1 Introduction Large language models (LLMs) are increasingly deployed as agents that retrieve information, invoke tools, and coordinate external services to complete user tasks (Schick et al., 2023; Yao et al., 2023; Qin et al., 2024). As these tasks extend across applications, effective agency requires more than generating a valid function call. An agent must identify relevant capabilities, determine how to use them, and adapt its plan to intermediate observations. Supporting these behaviors across heterogeneous services requires both a common interaction interface and policies that generalize beyond familiar tools and workflows. The Model Context Protocol (MCP) (Anthropic, 2024) provides a standardized clientâserver interface through which external services expose their capabilities to agents. We position MCP as a shared interaction substrate for the agentic web: a common foundation on which independently developed capabilities can be accessed and combined into task-oriented workflows. By separating protocol-level integration from the underlying service implementation, MCP reduces the need for bespoke connectors. Combined with server discovery and agent-side orchestration, it enables agents to locate relevant capabilities and compose their use across services. Its significance therefore extends beyond standardizing individual tool calls to supporting an extensible environment for agentic interaction. This perspective motivates a hierarchy of generalizable capabilities: tool-format skills, server-level transfer, and cross-server composition. MCP interaction data covers the queryâserverâtool chain, embedding tool invocation within server discovery, capability selection, and execution feedback. Conventional tool calling is thus a component of this richer interaction structure. This motivates an asymmetric generalization hypothesis: learning from MCP interactions can support conventional tool-use tasks, whereas training on individual tool calls alone need not teach the server-level decisions required for MCP tasks. Moreover, standardized server interfaces allow capabilities to be wrapped and recombined into diverse workflows. Real-server, long-horizon data can exploit this flexibility to expose agents to complex task compositions and sustained, observation-conditioned decision making. The hierarchy offers a structural basis for transfer, rather than a guarantee that MCP training will outperform other training regimes on every downstream task. Recent work has begun to develop the evaluation and data infrastructure for MCP-native learning. LiveMCPBench (Mo et al., 2025) and MCP-Atlas (Bandi et al., 2026) evaluate agents using real MCP servers, while MCP-Flow (Wang et al., 2026) constructs large-scale MCP training data and studies supervised tool learning. These efforts establish important foundations, but learning to coordinate reasoning, discovery, and execution over extended interactions also raises an optimization question: how should an agent jointly improve its reasoning and tool-use behavior? We investigate this question through reinforcement learning (RL) on real-server, long-horizon MCP tasks, complementing existing benchmark and data-centric efforts. Reasoning and tool use are complementary at inference time, but their training objectives need not improve together. We refer to a trade-off in which progress on one objective is accompanied by deterioration on the other as the reasoningâtool seesaw. Related work also studies reasoningâtool interference in agentic RL (Li et al., 2026). Two forms of coupling are relevant in our setting. First, assigning a combined reward to every generated token gives reasoning and action spans the same direct supervision, despite their distinct roles. Second, even separately attributed rewards update shared parameters and can induce opposing gradient directions. Gradient interference is a potential mechanism underlying the seesaw, rather than equivalent to the behavioral trade-off itself. Addressing these two forms of coupling requires interventions at both the token-attribution and parameter-update levels. We introduce MCPDisCo, an ecosystem-scale RL framework for MCP-native agents. We instantiate a Thought-Markov Decision Process (Thought-MDP) that explicitly represents internal reasoning alongside routing, execution, and termination. This formulation supports reasoning-enabled interaction, in which the agent deliberates over available capabilities and uses returned observations to guide subsequent actions. Training uses real-server, long-horizon tasks spanning 70 heterogeneous MCP servers and 527 tools across six domains. To mitigate reasoningâtool interference, we combine token-masked reward attribution, which separately supervises reasoning and action spans, with bidirectional gradient surgery, which removes conflicting components from both objective gradients. Neither objective is a privileged anchor. The resulting framework targets task-relevant, coherent reasoning alongside correct tool use, without introducing an explicit reasoning-length penalty. Experiments show that MCPDisCo increases LiveMCPBench task success from 15.79% to 26.32% while reducing average chain-of-thought tokens by 5.6% relative to the untuned backbone. Component ablations and gradient diagnostics examine the effects of masking and surgery on task performance and optimization interference. On MCP-Atlas, MCPDisCo outperforms the untuned backbone and the evaluated tool-tuned models in both accuracy and mean coverage, supporting transfer to unseen servers. In GAIA (Mialon et al., 2024), it outperforms ToolACE-8B and Hammer-7B at Levels 1 and 2, while improvement over the untuned backbone is restricted to Level 1. These cross-benchmark results are consistent with the proposed transfer asymmetry: MCP-native learning supports broader agentic tasks, whereas conventional tool-call tuning alone remains insufficient for strong MCP performance. They do not, however, isolate the effects of data hierarchy from those of the training algorithm. Our contributions are fourfold: ⢠Positioning MCP as the substrate of the agentic web and showing the generalization hierarchy. We connect MCPâs standardized interface to a generalization hierarchy spanning tool-format skills, server-level transfer, and cross-server composition. The queryâserverâtool structure motivates asymmetric transfer between MCP-native and conventional tool-use learning, while flexible capability composition supports complex agentic workflows. We examine this perspective through evaluations on MCP-native and broader agentic benchmarks (Section 4.3). ⢠Reasoning-enabled Thought-MDP and ecosystem-scale MCP-native RL. We instantiate a Thought-MDP framework that explicitly supports reasoning alongside routing, execution, and termination, and develop MCPDisCo for RL tuning on real-server, long-horizon tasks spanning 70 servers, 527 tools, and six domains. The resulting policy improves task success over the untuned backbone and evaluated tool-tuned models on LiveMCPBench and transfers to unseen MCP servers. ⢠Identification of reasoningâtool seesaw and corresponding interference mitigation design. We characterize the reasoning tool seesaw as a joint-learning failure mode and investigate disentangled token mask along with gradient surgery as the potential mechanism. Token-masked reward attribution separates direct supervision for reasoning and action tokens, while bidirectional gradient surgery mitigates residual interference through shared parameters. Experiments and ablations show that the full framework achieves higher task success with shorter reasoning than the untuned backbone and that each component contributes (Section 4.3). ⢠Open resources for the community. We release 8,000 training samples curated from over 200,000 candidates through a synthesize-and-recheck pipeline, together with training code and model weights, to support reproducible research on MCP-native learning, reasoningâtool interference, and generalizable agentic interaction. 2 Related Work Tool-augmented language models extend text generation through external computation and environment interaction. Toolformer (Schick et al., 2023) learns API use by generating candidate tool calls and retaining those that improve subsequent token prediction. ReAct (Yao et al., 2023) interleaves reasoning, actions, and observations, enabling models to update their plans using environmental feedback. ToolLLM (Qin et al., 2024) combines instruction tuning over 16,464 real-world APIs with tool retrieval and search-based solution generation, evaluating generalization to unseen tools, unseen categories, and an external API benchmark. The Model Context Protocol (Anthropic, 2024; Model Context Protocol, 2025) standardizes clientâserver interfaces for exposing capabilities and invoking tools. Server registries and community directories support the distribution and discovery of these capabilities. The official MCP Registry (Model Context Protocol, ) exposes standardized server metadata through a public API for downstream discovery services. Smithery (Smithery, ) combines a searchable server registry with tooling for publishing servers and configuring client connections, while MCP.so (MCP.so, ) organizes community-contributed servers through searchable listings, categories, and integration information. These collections make implementations spanning search, databases, developer tools, and other services easier to discover and reuse. MCP-Zero (Fei et al., 2025) develops active tool discovery through capability requests, hierarchical semantic routing, and iterative toolset expansion. MCP-Flow (Wang et al., 2026) constructs large-scale instructionâcall data and execution trajectories for supervised training and retrieval augmentation, with evaluations on unseen tools, unseen servers, and downstream agent tasks. Several benchmarks examine interaction with real MCP services. LiveMCPBench (Mo et al., 2025) covers 70 servers and 527 tools across six domains and introduces a ReAct-based agent with routing, execution, and response actions in a partially observable environment. MCP-Universe (Luo et al., 2025) evaluates realistic tasks across multiple domains using execution-based evaluators, while MCP-Atlas (Bandi et al., 2026) emphasizes multi-step, cross-server workflows, tool selection among distractors, and claim-level assessment. MCP also provides a common environment interface for agent-training infrastructure. RLFactory (Chai et al., 2025) decouples tool execution from policy training through MCP-based tool registration, asynchronous invocation, and flexible reward computation. OpenPipeâs ART supports an MCP training pipeline that generates scenarios from tool descriptions, collects interaction trajectories, and applies RULER feedback for policy optimization (OpenPipe, ). MCP-Universe RL (Luo et al., 2026) provides isolated environment provisioning, lifecycle management, and staged rollout orchestration, while integrating existing RL backends for policy updates. These systems illustrate how heterogeneous tools and task environments can be exposed through a shared interface and integrated into reusable training pipelines for multi-step workflows. ATLAS (Gupta et al., 2026) studies reinforcement fine-tuning for small language models operating in large MCP toolspaces. It combines incremental server and tool loading with programmatic tool orchestration to control context growth, and uses task-specific rubrics to provide structured training feedback. 3 Methodology 3.1 Thought-MDP Agent Logic Figure 4 illustrates the MCP-native interaction loop. Conventional tool calling selects a tool schema and generates its arguments. MCP additionally exposes a server-discovery layer: the agent routes a query to relevant server-wrapped capabilities, invokes their tools, and uses the returned observations to decide what to do next. The resulting policy must coordinate internal reasoning with external actions rather than generate a single function call from a fixed inventory. Figure 1: Overview of MCPDisCo. We formalize this process as a Thought-MDP, â¨,,p,r,Îł,,,p⊠,A,p,r,Îł,T,C,p_T . An environment state sâs contains the user query, interaction history, and tool observations. The external action space A comprises three choices: Route, which retrieves relevant MCP servers or tools; Execute, which invokes a selected tool with JSON-formatted arguments; and Terminate, which returns a final response. The transition function p:ĂâÎâĄ()p:SĂAâ (S) incorporates action outcomes into the context, while r:Ăââr:SĂA and Îłâ[0,1)Îłâ[0,1) specify external reward and discounting. The additional thought state tât records explicit internal reasoning. Thought actions câc generate reasoning tokens without directly changing the environment, and p:ĂâÎâĄ()p_T:SĂTĂCâ (T) describes their evolution. A shared policy parameterized by θ generates both thought and external-action tokens. For a query q, its interaction trajectory is Ď=(â¨si,ti,ai,oiâŠ)i=1K,Kâ¤L,Ď= ( s_i,t_i,a_i,o_i )_i=1^K, K⤠L, where L is the interaction limit, oio_i is the observation associated with action aia_i, and ti=(zi,1,âŚ,zi,Li)t_i=(z_i,1,âŚ,z_i,L_i) is the reasoning span preceding that action. For termination, no further tool observation is required. This distinction between thought and action spans provides the basis for separate reward attribution. 3.2 Reward Components We use two reward families: one scores the relevance and coherence of explicit reasoning, and the other scores the formatting and correctness of external actions. L1: Reasoning quality reward. The reasoning output is parsed for an explicit planning structure following the Harmony format (OpenAI, 2025): r1preamble=[STRUCT()=â¨preamble,analysis,actionâŠ],r_1^preamble=I\! [STRUCT(z)= ,analysis,action ], (1) where z denotes the reasoning tokens for the query. The content reward combines relevance density and inter-sentence coherence. Relevance density. KeyBERT extracts task-specific keywords from the input query to form a vocabulary VrelV_rel. For the reasoning text TreasoningT_reasoning, we compute Drel=âtâTreasoningâĄ(tâVrel)|Treasoning|.D_rel= _tâ T_reasoningI(tâ V_rel)|T_reasoning|. (2) This lexical proxy rewards task-related content relative to reasoning length rather than rewarding length itself. Coherence score. We split the reasoning into N sentences and append matched query keywords to each sentence before encoding it with a pretrained sentence embedding model (Reimers and Gurevych, 2019). With sentence embeddings e1,âŚ,eNe_1,âŚ,e_N, the coherence score is Scoh=1Nâ1ââi=1Nâ1cosâĄ(ei,ei+1)+12.S_coh= 1N-1 _i=1^N-1 (e_i,e_i+1)+12. (3) The combined reasoning reward is Rreasoning=Drel+ÎťâScoh,R_reasoning=D_rel+Îť S_coh, (4) where Îť controls the coherence contribution. Keyword overlap and embedding continuity provide inexpensive shaping signals, but neither directly verifies logical correctness. L2: Tool syntax and correctness reward. The action reward is Rtool=Rformat+RcorrectR_tool=R_format+R_correct. The format term rewards syntactically valid JSON, while the correctness term evaluates routing or execution against reference tool-call information. Execution. For an execution action, the heuristic score is Hexec= H_exec= Rformat+sbase+sreq+ssrv+stool R_format+s_base+s_req+s_srv+s_tool (5) +IoUkeys+Nvalâ_âmatch. +IoU_keys+N_val\_match. Here, sbases_base and sreqs_req reward a parameter dictionary and the presence of required keys; ssrvs_srv and stools_tool reward the correct server and tool; IoUkeysIoU_keys measures overlap between predicted and reference argument keys; and Nvalâ_âmatchN_val\_match counts exactly matched argument values. The correctness reward is rescaled according to the number of reference arguments: Rcorrectexec=6â(Hexec2+|Agt|)â3.R_correct^exec=6 ( H_exec2+|A_gt| )-3. (6) Routing. A routing action is scored by the validity of its search query and whether its results recall the reference server and tool: Hroute= H_route= Rformat+sbase+squery R_format+s_base+s_query (7) +ssrvâ_âmatch+stoolâ_âmatch, +s_srv\_match+s_tool\_match, where the last two terms indicate successful recall. The corresponding correctness reward is Rcorrectroute=6â(Hroute3)â2.R_correct^route=6 ( H_route3 )-2. (8) Severe formatting errors or missing required parameters incur penalties, such as â2.0-2.0 or â3.0-3.0. A well-formed final answer that successfully concludes the task receives a modest terminal shaping reward. Thus, although denoted RtoolR_tool, this family also covers termination behavior. Reward hyperparameters are given in Appendix A. 3.3 Seesaw-Mitigated Tuning Separate reward definitions do not by themselves prevent interference during joint optimization. We address this problem at two levels: token masking separates direct reward attribution, and bidirectional gradient surgery removes opposing components from the resulting shared-parameter updates. 3.3.1 The ReasoningâTool Seesaw Reasoning and tool use are complementary at inference time, but their training objectives need not improve together. We call an optimization trade-off in which progress on one objective is accompanied by deterioration on the other the reasoningâtool seesaw. This is a failure mode of joint learning, not an inherent incompatibility between the two capabilities. A straightforward baseline, integrated rewarding, optimizes the scalar sum Rjoint=Rreasoning+RtoolR_joint=R_reasoning+R_tool. Aggregate improvement can then conceal deterioration in an individual component. Two forms of coupling are relevant. First, assigning the summed reward to all generated tokens gives reasoning and action tokens the same direct supervision despite their different roles. Second, even after separating these token-level signals, both streams update shared model parameters and can induce opposing directions. We distinguish the behavioral trade-off from its possible optimization mechanism: a negative inner product between objective gradients indicates local interference, but does not alone establish that the two behavioral metrics move in opposite directions during training. 3.3.2 Token-Masked Disentangled Reward Let y1:My_1:M be the generated token sequence, hth_t the decoding history, and AtR,AtTA_t^R,A_t^T the advantages estimated from the reasoning and action reward families, respectively. We write the reward-driven policy-gradient terms below; the common RL optimization and reference-policy regularization settings are described in Appendix A. Under integrated attribution, âθJint=âĄ[ât=1MâθâlogâĎθâ(ytâŁht)â(AtR+AtT)]. _θJ_int=E\! [ _t=1^M _θ _θ(y_t h_t)(A_t^R+A_t^T) ]. (9) Instead, define disjoint masks mtR,mtTâ0,1m_t^R,m_t^Tâ\0,1\ with mtRâmtT=0m_t^Rm_t^T=0. The reasoning mask selects explicit thought spans. The action mask selects generated external-action tokens, including routing and execution calls, JSON arguments, and final-answer tokens receiving terminal shaping. User inputs and tool observations are not generated action tokens. The masked gradient is âθJmask= _θJ_mask= âĄ[ât=1MmtRââθâlogâĄĎθâ(ytâŁht)âAtR]âgR+âĄ[ât=1MmtTââθâlogâĄĎθâ(ytâŁht)âAtT]âgT. E\! [ _t=1^Mm_t^R _θ _θ(y_t h_t)A_t^R ]_g_R+ E\! [ _t=1^Mm_t^T _θ _θ(y_t h_t)A_t^T ]_g_T. (10) This removes direct cross-stream reward attribution: tool rewards no longer directly weight reasoning-token likelihoods, and reasoning rewards no longer directly weight action-token likelihoods. It does not make the two capabilities independent, since action generation conditions on preceding reasoning and both streams share parameters. 3.3.3 Gradient Surgery Let gRg_R and gTg_T now denote minibatch estimates of the components in Equation 10, using the gradient-ascent convention. When gRâ¤âgT<0g_R g_T<0, an infinitesimal step along either component is a descent direction for the other local objective. Following the projection principle of PCGrad (Yu et al., 2020), we remove the conflicting component from both gradients: g~R g_R =gRâgRâ¤âgTâgTâ22âgT,gRâ¤âgT<0,gR,otherwise, = casesg_R- g_R g_T\|g_T\|_2^2g_T,&g_R g_T<0,\\[5.0pt] g_R,&otherwise, cases (11) g~T g_T =gTâgTâ¤âgRâgRâ22âgR,gRâ¤âgT<0,gT,otherwise, = casesg_T- g_T g_R\|g_R\|_2^2g_R,&g_R g_T<0,\\[5.0pt] g_T,&otherwise, cases gupdate g_update =g~R+g~T. = g_R+ g_T. Both projections use the original gradients, not a sequentially modified pair. A zero gradient cannot satisfy the negative-inner-product condition and is left unchanged. The rule is symmetric: neither reasoning nor tool use is a privileged anchor. On conflicting steps, g~Râ¤âgT=0 g_R g_T=0 and g~Tâ¤âgR=0 g_T g_R=0 in exact arithmetic. These identities describe the local geometry of the reward-gradient intervention; they do not guarantee monotone improvement under finite optimizer steps, regularization, or stochastic estimation, nor do they require future unprojected gradients to remain compatible. When the original gradients are compatible, both are preserved. Together, masking and surgery address distinct sources of interference without introducing an explicit length penalty. The reasoning reward encourages relevance and coherence, while the action reward encourages valid and correct execution. Whether this combination yields more successful tasks with less verbose reasoning is an empirical question evaluated in Section 4.3, rather than a consequence guaranteed by gradient projection. 4 Experiments 4.1 Setup Benchmark. We evaluate our method on LiveMCPBench (Mo et al., 2025), a comprehensive evaluation framework designed to assess MCP-native agents in real-world scenarios, encompassing 70 MCP servers and 527 tools. The benchmark covers 95 diverse daily tasks across six domains: Office, Leisure, Travel, LifeStyle, Finance, and Shopping. For OOD test, we test the trained model on MCP-Atlas (Bandi et al., 2026) and GAIA (Mialon et al., 2024). Training Data. We synthesize and filter 8,0008,000+ samples out of 200,000200,000+ samples pool for training. Evaluation Metrics. We adopt three metrics to measure both reasoning behavior and task-level performance: (1) Avg. CoT Tokens: the average number of chain-of-thought tokens generated per query, reflecting reasoning verbosity; (2) Avg. Chain: the average number of tool-calling steps per trajectory, reflecting planning depth; and (3) Success Rate: the proportion of tasks successfully completed, as the primary performance indicator. Devices. Training was done using a 8*A6000 device. Resources from Shanghai Innovation Center 22 2 https://w.sii.edu.cn/ were also used. 4.2 Research Questions Our evaluation addresses three research questions: ⢠(RQ1) Effectiveness. Does ecosystem-scale training on real-server, long-horizon interactions under the Thought-MDP framework improve MCP-native task success over the base policy and existing tool-tuned models? ⢠(RQ2) Optimization mechanisms. How do token-masked reward attribution and bidirectional gradient surgery affect reasoningâtool interference, task success, and reasoning verbosity? ⢠(RQ3) Generalization and composition. To what extent does the learned policy transfer to unseen MCP servers and broader agentic tasks, and can it flexibly compose capabilities across servers in response to intermediate observations? 4.3 Results Table 1: Comparison of task-level performance on LiveMCP. (Qwen3-4B) Domain Base MCPDisCo (-surgery) MCPDisCo (-mask) MCPDisCo Avg. CoT Tokens Avg. Chain Success Rate (%) Avg. CoT Tokens Avg. Chain Success Rate (%) Avg. CoT Tokens Avg. Chain Success Rate (%) Avg. CoT Tokens Avg. Chain Success Rate (%) Office 2048.26 10 22.58 2389.58 12.32 25.81 2369.65 11.26 16.13 1803.39 14.52 25.81 Leisure 933.64 5.07 14.29 1686.07 9.93 35.71 1585.14 9.21 35.71 1349.21 8.93 21.43 Travel 2815.92 9.67 8.33 2690.33 13 8.33 2948.92 11.17 16.67 2715.58 17.17 50 LifeStyle 1616.4 8.6 13.33 1812.73 10.67 26.67 1868.2 10.6 40 1331.17 12.13 13.33 Finance 1733.37 9.14 7.14 2212.07 13.79 7.14 2626.71 13.29 21.43 1665.29 16.29 21.43 Shopping 945.89 5.67 22.22 973.44 7.22 22.22 985.44 6.33 22.22 818.67 8.11 33.33 Overall 1761.97 8.47 15.79 2072.49 11.53 22.11 2154.78 10.67 24.21 1663.53 13.31 26.32 Table 2: Performance under different modes. Method Avg. Chain Success Rate (%) Base Reasoning Off 11.85 14.74 Reasoning On 8.47 15.79 MCPDisCo Reasoning Off 8.29 16.84 Reasoning On 13.31 26.32 Table 3: Performance on LiveMCP Model Avg. CoT Tokens Avg. Chain Success Rate (%) Base 1761.97 8.47 15.79 ToolACE-8B 0 9.08 8.42 Hammer-7B 255.67 12.05 12.63 MCPDisCo 1663.53 13.31 26.32 (a) Gradient-angle trajectories between the reasoning and tool policy gradients. (b) The cumulative negative-cosine integral. Figure 2: Illustrations of the seesaw effect. Main Result (RQ1) Table 1 reports the task-level performance of the base agent the agents trained with different rewarding. Overall, reinforcement learning with MCPDisCo improves the success rate from 15.79% to 26.32%, corresponding to an absolute gain of 10.53 percentage points compared to the base model without tuning. This result indicates that MCP-native tool use benefits substantially from the explicit optimization and disentanglement of routing, execution, and termination behaviors. Seesaw-Mitigation (RQ2) In Figure 2a, all three trajectories fluctuate near the orthogonality boundary. Integrated rewarding exhibits the largest isolated excursion into the conflict region, while the masked configurations show smaller excursions. The pattern is consistent with intermittent shared-parameter interference, rather than a sustained interval in which one behavioral capability necessarily deteriorates as the other improves. Figure 2b provides a complementary view. Both masked configurations end the displayed window below integrated rewarding in cumulative angular conflict. The full method accumulates less conflict than masking alone through much of the early and middle portion of the window, but rises above masking alone near the end. Thus, the displayed curves do not support a claim that adding surgery monotonically lowers accumulated conflict throughout training or yields the lowest final value. Its pointwise projection rule and the evolution of gradients encountered along a training trajectory are distinct: if the curves record gradients before projection, future negative alignment remains compatible with applying surgery at each update. The measurement stage must be established before interpreting these curves as a direct check of the projection itself. Reasoning Density and Token Efficiency (RQ2) A central prediction of the seesaw analysis in Section 3.3.1 is that disentangled rewarding should not merely trade quality for quantity in the reasoning stream, but should raise reasoning densityâthe amount of task-relevant content per tokenâthereby enabling shorter chain-of-thought at equal or higher success. The results in Table 1 confirm this prediction along three orthogonal axes: ⢠Shorter CoT than the untuned baseline. Disentangled rewarding reduces average CoT tokens to 1663.531663.53, below the 1761.971761.97 produced by the untuned base agent. This is unusual: RL fine-tuning for reasoning typically inflates CoT length (as does our own integrated-rewarding baseline, which reaches 2154.782154.78). MCPDisCo is the only configuration that improves success while shrinking the reasoning budget. ⢠Deeper tool interaction. Simultaneously, the average tool-call chain grows from 8.478.47 to 13.3113.31. Tokens are being reallocated from redundant reasoning into productive tool invocationsâconsistent with the mechanism proposed in Section 3.3.1: separating credit for RreasoningR_reasoning and RtoolR_tool lets the policy stop over-verbalizing in service of a shared scalar. ⢠Efficiency Ă effectiveness. Combining the two, MCPDisCo delivers a 10.5310.53-point success-rate lift (15.79%â26.32%15.79\%â 26.32\%) using 5.6%5.6\% fewer CoT tokens than the base model, giving a strictly better operating point on the (tokens, success) frontier than either the base or the integrated-rewarding variant. Figure 3 decomposes this behavior across the six LiveMCPBench domains. The clear majority of domains lie in the âfewer tokens, higher successâ quadrant under disentanglement, corroborating that the aggregate efficiency gain is not driven by a single outlier domain. Figure 3: Per-domain change in average CoT tokens vs. change in success rate. Out-of-Distribution Generalization (RQ3) To probe whether the learned reasoningâtool interaction policyâtransfers beyond the training server distribution, we evaluate on MCP-Atlas (Bandi et al., 2026), a benchmark whose server population is disjoint from LiveMCPBench, and a general agent benchmark GAIA (Mialon et al., 2024). Results are summarized in Table 5 and Table 5, from which we can see that the learned policy generalizes to unseen servers and broader agentic tasks. Table 4: OOD test on MCP-Atlas Model ACC Mean Coverage Base 0.0186 0.1165 ToolACE-8B 0.0268 0.1258 Hammer-7B 0.0205 0.1194 MCPDisCo 0.0404 0.1360 Table 5: OOD test on GAIA Model L1 L2 Base 0.1320 0.1050 ToolACE-8B 0.0430 0.0230 Hammer-7B 0.0750 0.0470 MCPDisCo 0.1510 0.0700 Moreover, MCPDisCo shows superior performance on the competing benchmarks over tool-calling models ToolACE-8b Liu et al. (2025) and Hammer-7B Lin et al. (2024), further demonstrating the capability of MCPDisCo. We illustrate this generalization hierachy as below: MCP-native hierarchy Query q â Server routing discover/select s â Tool calling choose tool + JSON args â Observation compose next step Rank I: tool-format skill Rank I: server-level transfer Rank I: MCP-native composition Flat function-call data teaches schema matching, JSON syntax, and argument filling for a known tool. MCP maps a query to a server wrapper before the ordinary tool call; new APIs can be exposed as servers without changing agent code. A trajectory chains Route/Execute/Terminate over observations, composing tools from multiple servers to solve complex tasks. Figure 4: Hierarchy behind MCP-native generalization. Ordinary tool-call tuning covers the lower tool-format layer; MCP adds a server-routing and wrapping layer, enabling flexible, composable functions and a higher generalization rank than flat function calling. Overall, our real-world, hierarchical (query -> server -> tool), long-horizon (>10 interaction turns) agent data, together with our disentangled and reasoning-focused tuning algorithm, makes the resulting tuned model generalizable for wide agent tasks. OOD tests on common and untuned benchmarks validate the conclusion. We therefore position MCP as a shared interaction substrate for the agentic web, where capabilities exposed by heterogeneous servers can be discovered, invoked, and composed into extended workflows. Realizing this potential requires policies that generalize beyond individual tools and fixed task compositions. To this end, MCPDisCo learns from real-server, long-horizon MCP interaction data organized around a hierarchy of tool-format skills, server-level capabilities, and cross-server compositions. This structure exposes reusable capabilities at multiple levels, while flexible task composition places them in diverse workflows requiring sustained, observation-conditioned coordination. 5 Conclusion We presented MCPDisCo, an ecosystem-scale RL framework that positions MCP as a shared interaction substrate for the agentic web. Under a Thought-MDP formulation, MCPDisCo learns to coordinate reasoning, server discovery, and tool execution through real-server, long-horizon interactions. The resulting training data spans a capability hierarchy from tool-format skills to server-level transfer and cross-server composition, enabling flexible construction of complex tasks beyond fixed tool inventories. Improved performance on unseen servers in MCP-Atlas and transfer to broader agentic tasks in GAIA support the generalization potential of this approach. These findings suggest that MCP provides not only interface standardization but also a compositional foundation for learning reusable interaction policies. To address the reasoningâtool seesaw, MCPDisCo combines token-masked reward attribution with bidirectional gradient surgery, mitigating interference at both the token and shared-parameter levels. On LiveMCPBench, the full method improves success from 15.79% to 26.32% while reducing average chain-of-thought tokens by 5.6% relative to the untuned base. Ablations support the complementary benefits of the two mechanisms, and gradient diagnostics provide evidence of optimization interference without implying its complete elimination. Together, these results highlight the value of combining hierarchical MCP interaction data with interference-aware optimization to develop agents that discover, invoke, and recombine capabilities across the agentic web. We release training data, code, and model weights to support further research. Reproducibility statement Complete optimization, rollout, infrastructure, and evaluation settings are provided in Appendix A. We also provide anonymous code and model artifacts in the supplementary material. Because the reported live-server runs are expensive and server behavior can change over time, we explicitly identify single-run reporting and live-infrastructure variability as limitations. Ethics statement Training and evaluating agents against live MCP servers creates privacy, security, and unintended-side-effect risks. Our experiments use benchmark tasks and vetted servers, avoid private user data, cap interaction length, and treat tool outputs as untrusted observations. Released trajectories should be screened for credentials and personally identifiable information, and deployment should use least-privilege credentials, sandboxing, human confirmation for consequential actions, and auditable execution logs. AI use statement Generative AI tools were used to assist with language editing, literature discovery, and LaTeX-format migration. All technical claims, citations, equations, experimental values, and generated edits were reviewed by the authors, who take responsibility for the final content. No AI-generated experimental result is presented as an observed result. References Anthropic (2024) Anthropic Introducing the Model Context Protocol. Anthropic. External Links: Link Cited by: §1, §2. Bandi et al. (2026) C. Bandi, R. Dumitru, B. Hertzberg, D. Agarwal, G. Boo, T. Polakam, S. Hassaan, J. Da, H. Kim, V. Gupta, M. Sharma, A. Park, M. Dimakis, E. G. H. Montoya, D. Rambado, I. Salazar, R. Cruz, M. Rezaei, C. Rane, B. Levin, D. Y. Zhang, B. Kenstler, and B. Liu MCP-Atlas: A Large-Scale Benchmark for Tool-Use Competency with Real MCP Servers. arXiv preprint arXiv:2602.00933. External Links: Link Cited by: §1, §2, §4.1, §4.3. Chai et al. (2025) J. Chai, G. Yin, Z. Xu, C. Yue, Y. Jia, S. Xia, X. Wang, J. Jiang, X. Li, C. Dong, H. He, and W. Lin RLFactory: A Plug-and-Play Reinforcement Learning Post-Training Framework for LLM Multi-Turn Tool-Use. arXiv preprint arXiv:2509.06980. External Links: Link Cited by: §2. Fei et al. (2025) X. Fei, X. Zheng, and H. Feng MCP-Zero: Active Tool Discovery for Autonomous LLM Agents. arXiv preprint arXiv:2506.01056. External Links: Link Cited by: §2. Gupta et al. (2026) K. Gupta, P. Vajreshwari, Y. Pandya, R. Magazine, A. Nambi, and A. Awadallah Scaling Agentic Capabilities, Not Context: Efficient Reinforcement Finetuning for Large Toolspaces. arXiv preprint arXiv:2603.06713. External Links: Link Cited by: §2. Li et al. (2026) Y. Li, M. Yi, X. Li, J. Fan, F. Jiang, B. Chen, P. Li, J. Song, and T. Zhang Reasoning and Tool-use Compete in Agentic RL: From Quantifying Interference to Disentangled Tuning. arXiv preprint arXiv:2602.00994. External Links: Link Cited by: §1. Lin et al. (2024) Q. Lin, M. Wen, Q. Peng, G. Nie, J. Liao, J. Wang, X. Mo, J. Zhou, C. Cheng, Y. Zhao, J. Wang, and W. Zhang Hammer: Robust Function-Calling for On-Device Language Models via Function Masking. arXiv preprint arXiv:2410.04587. External Links: Link Cited by: §4.3. Liu et al. (2025) W. Liu, X. Huang, X. Zeng, X. Hao, S. Yu, D. Li, S. Wang, W. Gan, Z. Liu, Y. Yu, Z. Wang, Y. Wang, W. Ning, Y. Hou, B. Wang, C. Wu, X. Wang, Y. Liu, Y. Wang, D. Tang, D. Tu, L. Shang, X. Jiang, R. Tang, D. Lian, Q. Liu, and E. Chen ToolACE: Winning the Points of LLM Function Calling. In International Conference on Learning Representations, p. 41359â41381. External Links: Link Cited by: §4.3. Luo et al. (2025) Z. Luo, Z. Shen, W. Yang, Z. Zhao, P. Jwalapuram, A. Saha, D. Sahoo, S. Savarese, C. Xiong, and J. Li MCP-Universe: Benchmarking Large Language Models with Real-World Model Context Protocol Servers. arXiv preprint arXiv:2508.14704. External Links: Link Cited by: §2. Luo et al. (2026) Z. Luo, Y. Yang, X. Jian, Z. Shi, X. Lin, J. H. Liew, S. Savarese, and J. Li MCP-Universe RL: A Framework for Training MCP Tool-Use Agents via Reinforcement Learning. arXiv preprint arXiv:2608.22167. External Links: Link Cited by: §2. [11] MCP.so MCP.so: MCP Servers, Clients and AI Tools. Note: Accessed 2026-10-09 External Links: Link Cited by: §2. Mialon et al. (2024) G. Mialon, C. Fourrier, T. Wolf, Y. LeCun, and T. Scialom GAIA: a benchmark for general AI assistants. In International Conference on Learning Representations, p. 9025â9049. External Links: Link Cited by: §1, §4.1, §4.3. Mo et al. (2025) G. Mo, W. Zhong, J. Chen, Q. Yuan, X. Chen, Y. Lu, H. Lin, B. He, X. Han, and L. Sun LiveMCPBench: Can Agents Navigate an Ocean of MCP Tools?. arXiv preprint arXiv:2508.01780. External Links: Link Cited by: §1, §2, §4.1. [14] Model Context Protocol MCP Registry Aggregators. Note: MCP DocumentationAccessed 2026-10-09 External Links: Link Cited by: §2. Model Context Protocol (2025) Model Context Protocol Model Context Protocol specification: tools. Note: Specification version 2025-06-18; accessed 2026-10-06 External Links: Link Cited by: §2. OpenAI (2025) OpenAI gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925. External Links: Link Cited by: §3.2. [17] OpenPipe MCPâ˘RL: Training Agents to Use MCP Servers. Note: ART DocumentationAccessed 2026-10-09 External Links: Link Cited by: §2. Qin et al. (2024) Y. Qin, S. Liang, Y. Ye, K. Zhu, L. Yan, Y. Lu, Y. Lin, X. Cong, X. Tang, B. Qian, S. Zhao, L. Hong, R. Tian, R. Xie, J. Zhou, M. Gerstein, D. Li, Z. Liu, and M. Sun ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs. In The Twelfth International Conference on Learning Representations, External Links: Link Cited by: §1, §2. Reimers and Gurevych (2019) N. Reimers and I. Gurevych Sentence-BERT: sentence embeddings using siamese BERT-networks. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), p. 3982â3992. External Links: Document, Link Cited by: Appendix A, §3.2. Schick et al. (2023) T. Schick, J. Dwivedi-Yu, R. DessĂŹ, R. Raileanu, M. Lomeli, E. Hambro, L. Zettlemoyer, N. Cancedda, and T. Scialom Toolformer: language models can teach themselves to use tools. In Advances in Neural Information Processing Systems, Vol. 36, p. 68539â68551. External Links: Link Cited by: §1, §2. Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, and D. Guo DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300. External Links: Link Cited by: Appendix A. [22] Smithery Smithery: MCP Server Registry and CLI. Note: Accessed 2026-10-09 External Links: Link Cited by: §2. Wang et al. (2026) W. Wang, P. Niu, Z. Xu, Z. Chen, J. Du, Y. Du, X. Pang, K. Huang, Y. Wang, Q. Yan, and S. Chen MCP-flow: facilitating LLM agents to master real-world, diverse and scaling MCP tools. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 5087â5116. External Links: Document, Link Cited by: §1, §2. Yao et al. (2023) S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao ReAct: synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), External Links: Link Cited by: §1, §2. Yu et al. (2020) T. Yu, S. Kumar, A. Gupta, S. Levine, K. Hausman, and C. Finn Gradient surgery for multi-task learning. In Advances in Neural Information Processing Systems, Vol. 33, p. 5824â5836. External Links: Link Cited by: §3.3.3. Appendix A Implementation Details Backbone and RL algorithm. All MCPDisCo variants and the untuned baseline start from the same publicly released checkpoint, Qwen3-4B. The RL fine-tuning objective is optimized with a GRPO (Shao et al., 2024)-style policy-gradient update in which the KL to a frozen reference policy is added to the loss as a soft constraint. The advantage estimator is a group-relative baseline: for each prompt we roll out G=8G=8 trajectories in parallel and take the group-mean reward as the value baseline, which sidesteps the need for a separate critic head. Optimization. We use AdamW with β1=0.9,β2=0.95 _1=0.9, _2=0.95, weight decay 0.010.01, a peak learning rate of 1Ă10â61Ă 10^-6, and a cosine schedule with 5%5\% linear warmup. The global batch size is 3232 prompts (i.e., 32ĂG=25632Ă G=256 trajectories per update) and we train for 512512 policy-update steps, which corresponds to roughly one and a half epochs over the 8,0008,000-sample training set. The KL coefficient to the reference policy is βKL=1Ă10â3 _KL=1Ă 10^-3. All variants use the same optimizer and schedule. Reward hyperparameters. The reasoning reward weight is Îť=0.5Îť=0.5 (Eq. 4 of the main paper), balancing DrelD_rel and ScohS_coh. Sentence embeddings for ScohS_coh are computed with the all-MiniLM-L6-v2 encoder (Reimers and Gurevych, 2019); task keywords for DrelD_rel are extracted with KeyBERT (top-1010 n-grams, nâ1,2n\!â\!\1,2\). For the tool syntax reward, the format base is Rformat=1R_format\!=\!1, and the additive bonuses sbase,sreq,ssrv,stools_base,s_req,s_srv,s_tool are each set to 11; severe formatting errors receive a â2.0-2.0 penalty and missing required keys receive a â3.0-3.0 penalty (main paper, §3.3). Rollout and decoding. Rollouts use sampling with temperature 0.90.9 and topâ-âp=0.95top-p\!=\!0.95; the per-trajectory token budget is 81928192 tokens, of which up to 40964096 may be consumed by chain-of-thought. Each trajectory has a hard cap of 2020 tool-invocation steps to bound MCP-server exposure per query. Tool servers are pinned to the same 70-server pool used at evaluation to ensure a consistent action distribution. Infrastructure and runtime. Training is performed on a single node with 8Ă8Ă NVIDIA A600-80GB GPUs. Rollouts are sharded across the GPUs and dispatch to MCP servers over a local network. A full 512512-step run takes approximately 3636 hours end-to-end, with roughly 70%70\% of wall-clock spent on MCP tool invocations rather than gradient updates. Evaluation protocol. All numbers in Tables 1 and 3 are computed at greedy decoding (temperature 00) on the official LiveMCPBench task splits and the MCP-Atlas, GAIA OOD split, with a 2020-step tool-invocation cap and a 81928192-token generation budget matching the training setup. The Success Rate is defined by the benchmarkâs official judge; Avg. CoT Tokens and Avg. Chain are computed only over completed trajectories.