Skip to main content
Glama

Rent a Lium GPU pod

rent_pod

Rent a GPU pod on Lium with your API key and wait until it runs; returns the pod id and the ssh command. Spends money from your Lium balance: the pod is billed per second until remove_pod, also when idle. Give gpu (and count, optional max_price_per_gpu_hour and country) to let Lium pick the cheapest matching node, or node_id from search_gpus alone for that node. idempotency_key is required: if a call fails or times out, retry with the same key within 24 hours so it cannot rent twice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gpuNoGPU model, e.g. H100, RTX 4090; Lium picks the cheapest node that fits
nameNoPod name
countNoGPUs on one node (default: 1 with gpu, every free GPU with node_id)
countryNoTwo-letter country code (with gpu, not node_id)
node_idNoA node id from search_gpus, to rent that node
template_idNoFrom list_templates; default: Lium's PyTorch image for the node
wait_secondsNoHow long to wait for the pod to run (default 25, max 50)
ssh_public_keyNoOpenSSH public key to log in with (e.g. ~/.ssh/id_ed25519.pub); default: the keys saved on your Lium account
idempotency_keyYesA new unique string per rental (e.g. a UUID). Send the same key again within 24 hours to retry the same rental: it never rents twice
max_price_per_gpu_hourNoPrice cap in USD per GPU-hour (with gpu, not node_id)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / wait_seconds / default
      Previous value: -120New value: +25
    • changedInput schema / properties / wait_seconds / description
      Previous value: -"How long to wait for the pod to run (default 120)"New value: +"How long to wait for the pod to run (default 25, max 50)"
    • changedInput schema / properties / wait_seconds / maximum
      Previous value: -600New value: +50
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the financial side effect ('Spends money from your Lium balance'), per-second billing that continues while idle until remove_pod, and the mandatory idempotency key with its 24-hour retry window. These are exactly the high-stakes traits an agent needs before making an irreversible purchase.

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?

One dense paragraph that front-loads the action, then cost, then parameter modes, then the idempotency contract. No filler sentences; every clause carries operational weight.

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?

With no output schema, the description still names the return values (pod id, ssh command), covers cost, billing duration, idempotent retry, and both parameter modes. Nothing material to a correct invocation is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: it explains the gpu-mode vs node_id-mode split and that country and max_price_per_gpu_hour only apply with gpu, not node_id. It omits mode guidance for template_id, name, and ssh_public_key, which are left to the schema.

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 pod on Lium'), the blocking behavior ('wait until it runs'), and the return payload ('pod id and the ssh command'). It is clearly distinguishable from siblings like remove_pod, list_pods, and search_gpus.

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

Usage Guidelines5/5

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

Explicitly gives two mutually exclusive invocation paths ('give gpu ... or node_id from search_gpus alone'), routes the agent to sibling tools (search_gpus, list_templates), and prescribes the retry protocol with idempotency_key on failure/timeout. The when-to-use conditions are stated rather than inferred.

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.