Skip to content

Commit a36537d

Browse files
t3dotggclaude
andcommitted
fix(server): keep thread list tool text inside the context budget
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 43ef3a1 commit a36537d

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const CreateThreadsTool = Tool.make("create_threads", {
222222

223223
const ThreadListTool = Tool.make("t3_thread_list", {
224224
description:
225-
"List threads in a project, newest first. Omit `projectId` for yours, or pass `allProjects`. Filter by status, title, settled, or snoozed. Page with the cursor.",
225+
"List threads newest first, in one project or with `allProjects`. Page with `cursor`.",
226226
parameters: OrchestratorMcpThreadListInput,
227227
success: OrchestratorMcpThreadListResult,
228228
failure: OrchestratorMcpFailure,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"claudeSystemAppendBytes": 5135,
33
"codexAdditionalContextBytes": 5687,
4-
"mcpToolListJsonBytes": 45861
4+
"mcpToolListJsonBytes": 45842
55
}

‎packages/contracts/src/orchestratorMcp.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,7 @@ export const OrchestratorMcpEnvironmentTarget = Schema.optional(
330330
export const OrchestratorMcpThreadListInput = Schema.Struct({
331331
environmentId: OrchestratorMcpEnvironmentTarget,
332332
projectId: OrchestratorMcpProjectTarget,
333-
allProjects: Schema.optional(
334-
Schema.Boolean.annotate({ description: "List every project's threads. Ignores `projectId`." }),
335-
),
333+
allProjects: Schema.optional(Schema.Boolean),
336334
statuses: Schema.optional(
337335
Schema.Array(OrchestratorMcpThreadStatus).check(Schema.isMaxLength(10)),
338336
),

0 commit comments

Comments
 (0)