Skip to main content
Glama

Rent a GPU (spends balance)

create_rental
Destructive

Rent a GPU by quoting a template and reserving the machine in one step, holding budget_micro as a hard cap; returns rental_id, quote, and state. Requires spend enabled.

Instructions

Rent a GPU on AmpleRun: quotes the template on the offer and reserves the machine in one step, holding up to budget_micro from the account balance. budget_micro is required and is a hard cap: the rental is never charged more, and metering starts only once the machine is verified ready. Returns rental_id, state, the quote, fee_split and the idempotency_key used; retrying with the same idempotency_key never creates a second rental. get_rental reports state and access. Spends money. Write tool: refused unless the server was started with AMPLERUN_MCP_ALLOW_SPEND=1 (the default is read-only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetNoBalance to pay from. USDC when omitted.
offer_idYesoffer_id from search_offers.
templateYesTemplate slug such as "pytorch-cuda", or its id (UUID), from list_templates.
budget_microYesSpending cap in micro-units of the asset ("1000000" = 1 USDC). The rental is never charged more than this.
ssh_public_keyYesOne-line OpenSSH public key (the .pub file), e.g. "ssh-ed25519 AAAA... you@laptop". Installed for SSH access.
idempotency_keyNoUUID that makes retries safe. Generated when omitted and returned in the result.
duration_limit_sYesMaximum runtime in seconds (60 to 31536000), e.g. 7200 for two hours.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior5/5

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

Far exceeds the annotations: hard-cap guarantee that the rental is never charged above budget_micro, metering only starting once the machine is verified ready, retry safety via idempotency_key, and the explicit fact that the tool spends money and is refused unless the server started with AMPLERUN_MCP_ALLOW_SPEND=1. The destructiveHint=true annotation is corroborated rather than merely repeated.

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

Conciseness4/5

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

Dense and front-loaded: purpose first, then cost/idempotency behavior, then the spend gate. It is longer than strictly necessary (the return-field enumeration partly duplicates its own later statements) but every sentence carries real information.

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

Completeness5/5

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

For a write tool with no output schema, the description covers the return shape (rental_id, state, quote, fee_split, idempotency_key), the cost model, the idempotency contract, the auth prerequisite, and the follow-up sibling. An agent has everything needed to call it correctly.

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 documents all seven parameters including budget_micro's cap semantics and idempotency_key's retry behavior; the description largely restates these. Baseline 3 is appropriate since the description adds little parameter detail beyond what the schema carries.

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?

States a specific verb and resource ('Rent a GPU'), and further pins the semantics: quotes the template on the offer AND reserves the machine in one step. This distinguishes it from the sibling get_quote (quote only) and get_rental (observe only).

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?

Implicitly contrasts the one-step quote+reserve with the quote-only sibling and points to get_rental for state, and it explicitly states the spend gating condition (AMPLERUN_MCP_ALLOW_SPEND=1). It does not literally say 'use get_quote first if you only want a preview', so it stops short of a full when/when-not routing statement.

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