Skip to main content
Glama

Rent the GPU and start the workload

create_instance
Destructive

Deploys a GPU instance from a Vast.ai offer, launches the container, downloads weights, and sets an automatic teardown deadline. Requires user confirmation after showing the cost estimate.

Instructions

Rents the offer, starts the container, downloads the weights, and registers the instance for automatic teardown. Requires confirm=true, and you must show the user the cost estimate first. Every instance gets a hard deadline; there is no way to create one that runs forever. Returns JSON: {ok, message, next_tool, next_args, ...tool-specific fields}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoSkip the affordability check
labelNo
confirmYesMust be true. The user has seen the estimate and agreed.
disk_gbNo
offer_idNoFrom recommend_plan; omitted means plan again and take the best
templateYes
idle_minutesNoDestroy this long after the render queue goes quiet. Default 15. null disables it.
work_minutesNo
interruptibleNoBid for an interruptible instance. Roughly 3-5x cheaper, but the host can reclaim it mid-render; the instance is then stopped (not destroyed) and its disk survives.
allow_unverifiedNo
bid_usd_per_hourNoBid price; defaults to just above the offer minimum.
teardown_minutesNoHard wall: the reaper destroys the instance at this age no matter what. Default 120.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesfalse only when the tool itself failed (bad input, missing key, API error).
messageYesHuman-readable summary to relay to the user.
next_argsNoSuggested arguments for next_tool.
next_toolNoSuggested next tool, or null when nothing else is needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Even though destructiveHint is already true, the description adds materially new and non-obvious behaviors: it downloads weights, registers the instance for automatic teardown, and guarantees a hard deadline. It also discloses the confirmation gate and cost-estimate requirement. There is no contradiction with the annotations.

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?

Three sentences, front-loaded with the core side effectsches. Each sentence carries distinct information: the operation, the confirmation requirement, the deadline guarantee, and the return envelope. No filler or repetition.

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 a 12-parameter, destructive, paid operation, the description packs the critical lifecycle facts and the return format. The schema covers many parameter details and the output schema handles return values. It would be slightly more complete if it explicitly routed the agent to the cost-estimate prerequisite, but it is already sufficient for correct invocation.

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?

The description only reinforces confirm=true, which the schema already documents with 'Must be true.' It adds no explanation for force, template, disk_gb, work_minutes, or allow_unverified. With schema description coverage at 58%, the description neither harms parameter understanding nor compensates for the undocumented parameters beyond what the schema provides.

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 opens with a concrete action chain—rent, start container, download weights, register for teardown—and matches the title's 'Rent the GPU and start the workload.' This clearly distinguishes it from sibling monitor/destroy tools like get_instance or destroy_instance.

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 clearly states a mandatory precondition: the user must see a cost estimate and confirm=true is required. It also gives a when-not signal: no instance can be created that runs forever, so this tool is unsuitable for unbounded sessions. It does not explicitly name estimate_deployment or recommend_plan as the chained prerequisite tools, so it stops short of a 5.

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