Skip to main content
Glama

cancel_job

Stop a running or queued fine-tuning job to prevent further GPU usage charges while accounting for already consumed resources.

Instructions

Cancel a running or queued fine-tuning job. The job will be charged for any GPU time already used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesJob ID to cancel

Implementation Reference

  • The API client method that performs the network request to cancel a job.
    async cancelJob(jobId: string): Promise<any> {
      return this.request("POST", `/api/v1/jobs/${jobId}/cancel`);
    }
  • The MCP tool handler that invokes the API client's cancelJob method when the "cancel_job" tool is called.
    case "cancel_job":
      result = await client.cancelJob(args!.job_id as string);
      break;
  • src/mcp.ts:164-175 (registration)
    The declaration/registration of the "cancel_job" tool, including its input schema.
    {
      name: "cancel_job",
      description:
        "Cancel a running or queued fine-tuning job. The job will be charged for any GPU time already used.",
      inputSchema: {
        type: "object" as const,
        properties: {
          job_id: { type: "string", description: "Job ID to cancel" },
        },
        required: ["job_id"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cerebrixos-org/tuning-engines-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server