Skip to content

MCP schedule tools missing timeout_seconds, allowed_tools, and model parameters #85

Description

@vybe

Bug Description

The MCP server's create_agent_schedule and update_agent_schedule tools are missing several parameters that the backend API fully supports. Users cannot set timeout_seconds, allowed_tools, or model when creating or updating schedules via MCP.

Root Cause

The Zod schemas in the MCP tool definitions and the TypeScript interfaces in types.ts do not include these fields, even though the backend models (ScheduleCreate, ScheduleUpdate, ScheduleResponse) support them.

Affected Files

  • src/mcp-server/src/tools/schedules.ts — tool parameter schemas missing fields
  • src/mcp-server/src/types.tsSchedule, ScheduleCreate, ScheduleUpdate interfaces missing fields

What's Missing

Parameter Backend Support MCP Tool Support
timeout_seconds ✅ (default 900)
allowed_tools
model

Impact

  • Users cannot set custom execution timeouts for schedules via MCP (stuck with default 15 min)
  • Users cannot restrict which tools a scheduled execution can use via MCP
  • Users cannot override the model per schedule via MCP
  • Workaround: Use the REST API directly instead of MCP

Expected Fix

  1. Add timeout_seconds, allowed_tools, and model to the Zod schemas in create_agent_schedule and update_agent_schedule tool definitions
  2. Add the same fields to the TypeScript interfaces in types.ts
  3. Rebuild the MCP server

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions