Skip to main content
Glama

Get an instance

get_instance
Read-onlyIdempotent

One machine now: state (PENDING or PROVISIONING while it boots, which is free; RUNNING when ssh_command works; then TERMINATED or FAILED), price per hour, ssh_command, removed_by, any notice from its host (host_notice and host_notice_at, host_down_since), its open ports (each port inside the machine and the public url it answers at) and, once it ended, ended_reason (evicted when its host took it back). After rent_gpu, call it every 30-60 seconds until RUNNING. Free; changes nothing.

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": {
      "instance_id": "<instance_id>"
    },
    "name": "get_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
instance_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds real behavioral context: the state lifecycle (PENDING/PROVISIONING are free, RUNNING means ssh_command works), host eviction via ended_reason, and 'Free; changes nothing'. It stops short of describing behavior for an invalid or expired instance_id.

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?

Every clause carries information, particularly the enumerated return fields that substitute for the missing output schema. However, it is delivered as one long run-on sentence with parenthetical nesting, which makes it harder to scan than a short structured list would be.

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?

With no output schema, the description usefully enumerates what comes back and explains state values, host notices, ports and ended_reason. Combined with polling guidance and the free/no-side-effect note, an agent has nearly everything needed, missing only the instance_id source and error behavior.

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 single required parameter instance_id has no schema description (0% coverage) and the description never states its format or where to obtain it, only implying it follows from rent_gpu. With just one parameter and an implicit source, this is adequate but leaves a gap the schema does not fill.

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

Purpose4/5

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

The description makes clear this returns a snapshot of a single machine ('One machine now') along with its state, price, ssh_command, ports and end reason. The resource and returned content are specific, though the verb is implicit ('One machine now' rather than 'Retrieves') and it never explicitly contrasts with list_instances.

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 when-to-use guidance: 'After rent_gpu, call it every 30-60 seconds until RUNNING', including the polling cadence and the stopping condition. It does not name an alternative such as list_instances for enumerating multiple machines, but the single-machine framing makes the distinction reasonably evident.

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