Skip to main content
Glama

cloud_start_training_run

Train a model: start a training run on an approved dataset, paid upfront from Cloud credits for the hours you choose. Needs a key with the "spend" permission, max_usd and idempotency_key.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "computeApiKey": "<computeApiKey>",
      "dataset_id": "<dataset_id>",
      "base_model": "<base_model>",
      "gpu_plan_id": "<gpu_plan_id>",
      "budget_hours": "<budget_hours>",
      "max_usd": "<max_usd>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "cloud_start_training_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
recipeNoOptional training settings (lora_rank, lr, epochs, ...)
max_usdYesThe most you agree to pay, in US dollars. Refused before any charge if the price is higher.
base_modelYesBase model id from the training catalog
dataset_idYesApproved dataset id (uuid)
gpu_plan_idYesGPU id from the training catalog
budget_hoursYesHours to prepay (billed in whole hours)
computeApiKeyYesSingularity Cloud API key with the "spend" permission (cloud.x402compute.cc > Settings > API keys).
idempotency_keyYesA new unique id per purchase (8 to 128 letters, digits, . _ : -). Repeating a purchase with the SAME id never charges twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses that payment is taken upfront from Cloud credits, that billing is in chosen whole hours, that max_usd is a hard cap refused before charging, and that an idempotency key prevents double charges. It stops short of describing whether the run is synchronous or asynchronous and what happens to prepaid credits on failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly written sentences, front-loaded with the action and payment model, followed by the required credentials. Every clause carries useful information with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter transactional tool with a nested optional recipe and no output schema, the description covers the critical risks: spend authorization, credit prepayment, price cap, and idempotency. The main remaining gap is runtime behavior — whether the run returns immediately or must be polled via cloud_get_training_run — and what failure handling does to the prepaid amount.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already explains max_usd, budget_hours, computeApiKey permissions, and idempotency_key semantics. The description reinforces the authentication and payment parameters but adds no meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — 'start a training run' — and scopes it to 'an approved dataset', which clearly separates it from the read-oriented siblings cloud_get_training_run and cloud_list_training_runs. An agent can identify the action without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete prerequisites: a key with the 'spend' permission, plus max_usd and idempotency_key. It does not explicitly state when not to use it or name an alternative flow, but the operational context is clear enough to select the tool confidently.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources