integer('id')->description('ID of the milestone to retrieve.')->required(); } /** * Handle the tool request. */ public function handle(array $arguments): ToolResult { $id = (int) ($arguments['id'] ?? 0); $ticket = $this->ticketsService->getTicket($id); if (! $ticket) { return ToolResult::error("Milestone with ID {$id} not found."); } return ToolResult::text(Str::toMarkdown($ticket)."\n"); } }