Skip to main content
Glama

instance_create

Create a GPU Notebook instance from catalog settings to run workloads, then monitor until ready and delete it when done to stop hourly credit use.

Instructions

创建 GPU Notebook 实例(每账户同时仅 1 个)。参数来自 catalog_list: env=环境/镜像,pod_type=资源池,resource_template=规格。

⚠️ 实例按小时消耗 credits(ready 后 1–2 分钟内扣首小时),用完即删; 不用时务必 instance_delete。use_pvc=true 挂载持久 /workspace(销毁后保留)。 ssh=true(默认)需先 instance_add_key 上传公钥,之后才能用 instance_exec 等工具。 wait=true 阻塞至 ready(通常 <1 分钟,大镜像数分钟);本地等待超时不代表创建失败, 用 instance_status 跟进。重试创建请带相同 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": {
      "env": "<env>",
      "pod_type": "<pod_type>",
      "resource_template": "<resource_template>"
    },
    "name": "instance_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
envYes
sshNo
waitNo
use_pvcNo
pod_typeYes
idempotency_keyNo
resource_templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.9/5.0
Behavior5/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 so: hourly credit consumption with first-hour deduction timing, the one-instance-per-account limit, persistence semantics of use_pvc=true (/workspace survives destruction), blocking behavior of wait=true with realistic durations, and the caveat that a local wait timeout is not a creation failure.

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?

Front-loaded with purpose and scope, then parameter meaning, then a warning block of operational constraints — every sentence carries distinct information and none is redundant. It is dense and semicolon-packed, which slightly hurts scanability but not substance.

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 mutation tool with seven parameters, no annotations, and no output schema, this covers cost, deletion obligation, persistence, auth prerequisite, blocking/timeout behavior, and idempotent retry — the full set of things an agent needs to invoke it safely.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it accounts for all seven parameters: env/pod_type/resource_template meanings plus their catalog_list origin, use_pvc, ssh, wait, and the auto-generated idempotency_key retry rule.

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+resource ("创建 GPU Notebook 实例") with an explicit scope constraint (每账户同时仅 1 个) and points to catalog_list as the source of the three required values. An agent can distinguish this from instance_delete/instance_status/instance_exec purely from the text.

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?

Gives explicit when/when-not and alternatives: prereq instance_add_key before ssh-based use, follow-up via instance_status on wait timeout, cleanup via instance_delete, and retry via the same idempotency_key. Nothing is left to inference about sequencing.

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