Skip to content

Commit 1b31fb0

Browse files
fix(server): keep the PR tools within main's agent context budget
Trim redundant wording from the list, link and unlink PR tool descriptions so the new list_thread_pull_requests parameters fit main's MCP tool list budget (48094 bytes, main 48099). Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 78db5d0 commit 1b31fb0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/server/src/mcp/toolkits/pullRequests/tools.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ const LinkPullRequestTool = Tool.make("link_pull_request", {
257257

258258
const LinkPullRequestsTool = Tool.make("link_pull_requests", {
259259
description:
260-
"Link several PRs to a thread in one call. Use it instead of one `link_pull_request` per PR. URLs that are not PRs come back in `invalidUrls`.",
260+
"Link several PRs to a thread. Use it instead of one `link_pull_request` per PR. URLs that are not PRs come back in `invalidUrls`.",
261261
parameters: Schema.Struct({
262262
environmentId: OrchestratorMcpEnvironmentTarget,
263263
threadId: Schema.optional(ThreadId.annotate({ description: "Thread. Default: this thread." })),
@@ -289,7 +289,7 @@ const UnlinkPullRequestTool = Tool.make("unlink_pull_request", {
289289

290290
const UnlinkPullRequestsTool = Tool.make("unlink_pull_requests", {
291291
description:
292-
"Unlink every PR on a thread whose last known state is in `states`, in one call. Use it instead of one `unlink_pull_request` per PR. PRs with no known state stay linked.",
292+
"Unlink a thread's PRs whose last known state is in `states`. Use it instead of one `unlink_pull_request` per PR. PRs with no known state stay linked.",
293293
parameters: Schema.Struct({
294294
environmentId: OrchestratorMcpEnvironmentTarget,
295295
threadId: Schema.optional(ThreadId.annotate({ description: "Thread. Default: this thread." })),
@@ -307,7 +307,7 @@ const UnlinkPullRequestsTool = Tool.make("unlink_pull_requests", {
307307

308308
const ListThreadPullRequestsTool = Tool.make("list_thread_pull_requests", {
309309
description:
310-
"List PRs linked to a thread, with last known state and stack order (bottom to top). Call only when you need that list. Never as an end-of-work check.",
310+
"List a thread's PRs, with last known state and stack order (bottom to top). Not an end-of-work check.",
311311
parameters: Schema.Struct({
312312
environmentId: OrchestratorMcpEnvironmentTarget,
313313
threadId: Schema.optional(ThreadId.annotate({ description: "Thread. Default: this thread." })),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"claudeSystemAppendBytes": 5597,
33
"codexAdditionalContextBytes": 7327,
4-
"mcpToolListJsonBytes": 48173
4+
"mcpToolListJsonBytes": 48094
55
}

0 commit comments

Comments
 (0)