@runpod/mcp-server 4.0.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -0
- package/README.md +6 -19
- package/dist/http.cjs +1197 -254
- package/dist/http.cjs.map +1 -1
- package/dist/http.mjs +1199 -254
- package/dist/http.mjs.map +1 -1
- package/dist/stdio.cjs +1197 -254
- package/dist/stdio.cjs.map +1 -1
- package/dist/stdio.mjs +1199 -254
- package/dist/stdio.mjs.map +1 -1
- package/package.json +3 -3
package/dist/stdio.cjs
CHANGED
|
@@ -975,7 +975,7 @@ var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
|
975
975
|
|
|
976
976
|
// src/server.ts
|
|
977
977
|
var SERVER_NAME = "Runpod API Server";
|
|
978
|
-
var SERVER_VERSION = true ? "4.
|
|
978
|
+
var SERVER_VERSION = true ? "4.2.0" : "dev";
|
|
979
979
|
|
|
980
980
|
// src/specgen/server.ts
|
|
981
981
|
var import_server3 = require("@modelcontextprotocol/sdk/server/index.js");
|
|
@@ -1222,11 +1222,17 @@ var generatedTools = [
|
|
|
1222
1222
|
{
|
|
1223
1223
|
name: "create-cluster",
|
|
1224
1224
|
operationId: "createCluster",
|
|
1225
|
-
description: "Create an instant cluster (multiple pods with high-speed interconnect). BILLABLE from creation for every pod in the cluster: state the total hourly price
|
|
1225
|
+
description: "Create an instant cluster (multiple pods with high-speed interconnect). BILLABLE from creation for every pod in the cluster: it rents compute.podCount identical pods at once, each with compute.gpuCountPerPod GPUs of compute.gpuTypeId \u2014 state the hourly price for the total GPU count (podCount * gpuCountPerPod, priced from the catalog tools) and create only after the user's explicit go on that quoted shape and total hourly price. Verify GPU stock first via the catalog tools. The compute shape and type are fixed at creation; only the name can be changed later. The container configuration applies to every pod, and templateId is the only private-image path \u2014 a bare registry property is rejected. Delete with delete-cluster when finished.",
|
|
1226
1226
|
method: "POST",
|
|
1227
1227
|
path: "/v2/clusters",
|
|
1228
1228
|
params: [],
|
|
1229
1229
|
hasBody: true,
|
|
1230
|
+
annotations: {
|
|
1231
|
+
readOnlyHint: false,
|
|
1232
|
+
destructiveHint: false,
|
|
1233
|
+
idempotentHint: false,
|
|
1234
|
+
openWorldHint: true
|
|
1235
|
+
},
|
|
1230
1236
|
inputSchema: {
|
|
1231
1237
|
type: "object",
|
|
1232
1238
|
properties: {
|
|
@@ -1238,12 +1244,34 @@ var generatedTools = [
|
|
|
1238
1244
|
$defs: {
|
|
1239
1245
|
BaseContainerConfig: {
|
|
1240
1246
|
type: "object",
|
|
1241
|
-
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support
|
|
1247
|
+
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support a direct registry credential (clusters \u2014 there the registry credential arrives via a pod template, see CreateClusterRequest.templateId).\n",
|
|
1242
1248
|
properties: {
|
|
1243
1249
|
args: {
|
|
1244
1250
|
type: "string",
|
|
1245
|
-
description: "
|
|
1246
|
-
examples: [
|
|
1251
|
+
description: 'The container\'s command, as a single raw string. This is the field `entrypoint` and `cmd` encode into, exposed in its stored form.\n\nTwo shapes are accepted. A bare shell string is treated as CMD and split into arguments, which is what the console\'s "Container start command" field writes. A JSON object of the form `{"entrypoint":[...],"cmd":[...]}` sets either or both explicitly.\n\nResponses always return both representations: `args` exactly as stored, plus the deconstructed `entrypoint` and `cmd`. Supplying `args` together with `entrypoint` or `cmd` is allowed only when they describe the same command, so a read-modify-write client can send back everything it received. Send `""` to clear, omit to leave unchanged.\n',
|
|
1252
|
+
examples: [
|
|
1253
|
+
"--model meta-llama/Llama-3-8B --max-model-len 8192",
|
|
1254
|
+
'{"entrypoint":["/bin/bash","-c"],"cmd":["python -u main.py"]}',
|
|
1255
|
+
""
|
|
1256
|
+
]
|
|
1257
|
+
},
|
|
1258
|
+
cmd: {
|
|
1259
|
+
type: "array",
|
|
1260
|
+
items: {
|
|
1261
|
+
type: "string"
|
|
1262
|
+
},
|
|
1263
|
+
description: "Container CMD in exec form. When the image defines an ENTRYPOINT, this is the argument list passed to it. Encoded into the `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
1264
|
+
examples: [
|
|
1265
|
+
["--model", "meta-llama/Llama-3-8B", "--max-model-len", "8192"]
|
|
1266
|
+
]
|
|
1267
|
+
},
|
|
1268
|
+
entrypoint: {
|
|
1269
|
+
type: "array",
|
|
1270
|
+
items: {
|
|
1271
|
+
type: "string"
|
|
1272
|
+
},
|
|
1273
|
+
description: "Container ENTRYPOINT in exec form, overriding the image's own. Encoded into `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
1274
|
+
examples: [["/bin/bash", "-c"]]
|
|
1247
1275
|
},
|
|
1248
1276
|
disk: {
|
|
1249
1277
|
type: "integer",
|
|
@@ -1319,7 +1347,7 @@ var generatedTools = [
|
|
|
1319
1347
|
{
|
|
1320
1348
|
type: "object",
|
|
1321
1349
|
required: ["name", "type", "compute"],
|
|
1322
|
-
description: "Request body for creating a cluster. `compute` defines the\nhomogeneous pod shape; the container configuration (image, env, ports,\n\u2026) applies to every pod
|
|
1350
|
+
description: "Request body for creating a cluster. `compute` defines the\nhomogeneous pod shape; the container configuration (image, env, ports,\n\u2026) applies to every pod. Pass `templateId` to provision every member\npod from a pod template instead of inline container fields \u2014 the\ntemplate also supplies the container registry credential, the only\nprivate-image path for clusters (a bare `registry` property on this\nbody is rejected).\n",
|
|
1323
1351
|
properties: {
|
|
1324
1352
|
compute: {
|
|
1325
1353
|
$ref: "#/$defs/ClusterCompute"
|
|
@@ -1332,6 +1360,12 @@ var generatedTools = [
|
|
|
1332
1360
|
type: {
|
|
1333
1361
|
$ref: "#/$defs/ClusterType"
|
|
1334
1362
|
},
|
|
1363
|
+
templateId: {
|
|
1364
|
+
type: "string",
|
|
1365
|
+
minLength: 1,
|
|
1366
|
+
description: "ID of a pod template to provision every member pod from. The\ntemplate supplies the container settings (image, args, disk,\nenv, ports) and the container registry credential for private\nimages \u2014 the only private-image path for clusters. Mutually\nexclusive with `image`, `args`, `entrypoint`, `cmd`, `disk`,\n`env`, `ports`, and `mounts` (rejected with 400). The cluster\nretains the link: the `template` response field is set. Must be\na non-serverless pod template accessible to the caller.\n",
|
|
1367
|
+
examples: ["30zmvf89kd"]
|
|
1368
|
+
},
|
|
1335
1369
|
dataCenterIds: {
|
|
1336
1370
|
type: "array",
|
|
1337
1371
|
items: {
|
|
@@ -1423,6 +1457,12 @@ var generatedTools = [
|
|
|
1423
1457
|
path: "/v2/registries/delegations",
|
|
1424
1458
|
params: [],
|
|
1425
1459
|
hasBody: true,
|
|
1460
|
+
annotations: {
|
|
1461
|
+
readOnlyHint: false,
|
|
1462
|
+
destructiveHint: false,
|
|
1463
|
+
idempotentHint: false,
|
|
1464
|
+
openWorldHint: true
|
|
1465
|
+
},
|
|
1426
1466
|
inputSchema: {
|
|
1427
1467
|
type: "object",
|
|
1428
1468
|
properties: {
|
|
@@ -1457,11 +1497,17 @@ var generatedTools = [
|
|
|
1457
1497
|
{
|
|
1458
1498
|
name: "create-endpoint",
|
|
1459
1499
|
operationId: "createEndpoint",
|
|
1460
|
-
description: "Create a serverless endpoint. BILLABLE: state the
|
|
1500
|
+
description: "Create a serverless endpoint. BILLABLE: state the worker's hourly price (from the catalog tools) before creating. Worker hardware is one of two choices: the gpu object (gpu.pools takes serverless pool ids from the catalog, e.g. ADA_24, never display names; gpu.count sets GPUs per worker) or the cpu array of CPU flavor configurations for a CPU endpoint. type and scaling are required and fix the request-routing model. Workers cold-start on the first job: expect minutes, poll with get-job-status wait.",
|
|
1461
1501
|
method: "POST",
|
|
1462
1502
|
path: "/v2/serverless",
|
|
1463
1503
|
params: [],
|
|
1464
1504
|
hasBody: true,
|
|
1505
|
+
annotations: {
|
|
1506
|
+
readOnlyHint: false,
|
|
1507
|
+
destructiveHint: false,
|
|
1508
|
+
idempotentHint: false,
|
|
1509
|
+
openWorldHint: true
|
|
1510
|
+
},
|
|
1465
1511
|
inputSchema: {
|
|
1466
1512
|
type: "object",
|
|
1467
1513
|
properties: {
|
|
@@ -1473,12 +1519,34 @@ var generatedTools = [
|
|
|
1473
1519
|
$defs: {
|
|
1474
1520
|
BaseContainerConfig: {
|
|
1475
1521
|
type: "object",
|
|
1476
|
-
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support
|
|
1522
|
+
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support a direct registry credential (clusters \u2014 there the registry credential arrives via a pod template, see CreateClusterRequest.templateId).\n",
|
|
1477
1523
|
properties: {
|
|
1478
1524
|
args: {
|
|
1479
1525
|
type: "string",
|
|
1480
|
-
description: "
|
|
1481
|
-
examples: [
|
|
1526
|
+
description: 'The container\'s command, as a single raw string. This is the field `entrypoint` and `cmd` encode into, exposed in its stored form.\n\nTwo shapes are accepted. A bare shell string is treated as CMD and split into arguments, which is what the console\'s "Container start command" field writes. A JSON object of the form `{"entrypoint":[...],"cmd":[...]}` sets either or both explicitly.\n\nResponses always return both representations: `args` exactly as stored, plus the deconstructed `entrypoint` and `cmd`. Supplying `args` together with `entrypoint` or `cmd` is allowed only when they describe the same command, so a read-modify-write client can send back everything it received. Send `""` to clear, omit to leave unchanged.\n',
|
|
1527
|
+
examples: [
|
|
1528
|
+
"--model meta-llama/Llama-3-8B --max-model-len 8192",
|
|
1529
|
+
'{"entrypoint":["/bin/bash","-c"],"cmd":["python -u main.py"]}',
|
|
1530
|
+
""
|
|
1531
|
+
]
|
|
1532
|
+
},
|
|
1533
|
+
cmd: {
|
|
1534
|
+
type: "array",
|
|
1535
|
+
items: {
|
|
1536
|
+
type: "string"
|
|
1537
|
+
},
|
|
1538
|
+
description: "Container CMD in exec form. When the image defines an ENTRYPOINT, this is the argument list passed to it. Encoded into the `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
1539
|
+
examples: [
|
|
1540
|
+
["--model", "meta-llama/Llama-3-8B", "--max-model-len", "8192"]
|
|
1541
|
+
]
|
|
1542
|
+
},
|
|
1543
|
+
entrypoint: {
|
|
1544
|
+
type: "array",
|
|
1545
|
+
items: {
|
|
1546
|
+
type: "string"
|
|
1547
|
+
},
|
|
1548
|
+
description: "Container ENTRYPOINT in exec form, overriding the image's own. Encoded into `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
1549
|
+
examples: [["/bin/bash", "-c"]]
|
|
1482
1550
|
},
|
|
1483
1551
|
disk: {
|
|
1484
1552
|
type: "integer",
|
|
@@ -1537,7 +1605,7 @@ var generatedTools = [
|
|
|
1537
1605
|
pools: {
|
|
1538
1606
|
type: "array",
|
|
1539
1607
|
minItems: 1,
|
|
1540
|
-
description:
|
|
1608
|
+
description: 'Serverless GPU pool IDs (as returned by `GET /v2/catalog/gpus` in\n`pool`). Workers are placed on whichever listed pool has capacity.\nNarrow a pool down to specific cards with `excludedTypes`.\n\nOn `PATCH`, `pools` and `excludedTypes` are one selection and are\nreplaced together, so sending `pools` by itself **clears the\nexclusions**. Two cases:\n\n- **Changing pools, keeping exclusions** \u2014 send both fields in one\n request: `{"gpu": {"pools": ["ADA_24"], "excludedTypes":\n ["NVIDIA L40"]}}`. `GET` the endpoint first to read the current\n `excludedTypes` and resend the ones that still apply to the new\n pools; an exclusion naming a type outside `pools` is a 400.\n- **Changing only `count` or a CUDA constraint** \u2014 omit `pools`:\n `{"gpu": {"minCudaVersion": "12.4"}}`. The pool list and the\n exclusions are both left exactly as they are.\n\n`excludedTypes` documents the full rule.\n',
|
|
1541
1609
|
items: {
|
|
1542
1610
|
type: "string"
|
|
1543
1611
|
},
|
|
@@ -1841,6 +1909,12 @@ var generatedTools = [
|
|
|
1841
1909
|
path: "/v2/network-volumes",
|
|
1842
1910
|
params: [],
|
|
1843
1911
|
hasBody: true,
|
|
1912
|
+
annotations: {
|
|
1913
|
+
readOnlyHint: false,
|
|
1914
|
+
destructiveHint: false,
|
|
1915
|
+
idempotentHint: false,
|
|
1916
|
+
openWorldHint: true
|
|
1917
|
+
},
|
|
1844
1918
|
inputSchema: {
|
|
1845
1919
|
type: "object",
|
|
1846
1920
|
properties: {
|
|
@@ -1900,6 +1974,12 @@ var generatedTools = [
|
|
|
1900
1974
|
path: "/v2/pods",
|
|
1901
1975
|
params: [],
|
|
1902
1976
|
hasBody: true,
|
|
1977
|
+
annotations: {
|
|
1978
|
+
readOnlyHint: false,
|
|
1979
|
+
destructiveHint: false,
|
|
1980
|
+
idempotentHint: false,
|
|
1981
|
+
openWorldHint: true
|
|
1982
|
+
},
|
|
1903
1983
|
inputSchema: {
|
|
1904
1984
|
type: "object",
|
|
1905
1985
|
properties: {
|
|
@@ -1911,12 +1991,34 @@ var generatedTools = [
|
|
|
1911
1991
|
$defs: {
|
|
1912
1992
|
BaseContainerConfig: {
|
|
1913
1993
|
type: "object",
|
|
1914
|
-
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support
|
|
1994
|
+
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support a direct registry credential (clusters \u2014 there the registry credential arrives via a pod template, see CreateClusterRequest.templateId).\n",
|
|
1915
1995
|
properties: {
|
|
1916
1996
|
args: {
|
|
1917
1997
|
type: "string",
|
|
1918
|
-
description: "
|
|
1919
|
-
examples: [
|
|
1998
|
+
description: 'The container\'s command, as a single raw string. This is the field `entrypoint` and `cmd` encode into, exposed in its stored form.\n\nTwo shapes are accepted. A bare shell string is treated as CMD and split into arguments, which is what the console\'s "Container start command" field writes. A JSON object of the form `{"entrypoint":[...],"cmd":[...]}` sets either or both explicitly.\n\nResponses always return both representations: `args` exactly as stored, plus the deconstructed `entrypoint` and `cmd`. Supplying `args` together with `entrypoint` or `cmd` is allowed only when they describe the same command, so a read-modify-write client can send back everything it received. Send `""` to clear, omit to leave unchanged.\n',
|
|
1999
|
+
examples: [
|
|
2000
|
+
"--model meta-llama/Llama-3-8B --max-model-len 8192",
|
|
2001
|
+
'{"entrypoint":["/bin/bash","-c"],"cmd":["python -u main.py"]}',
|
|
2002
|
+
""
|
|
2003
|
+
]
|
|
2004
|
+
},
|
|
2005
|
+
cmd: {
|
|
2006
|
+
type: "array",
|
|
2007
|
+
items: {
|
|
2008
|
+
type: "string"
|
|
2009
|
+
},
|
|
2010
|
+
description: "Container CMD in exec form. When the image defines an ENTRYPOINT, this is the argument list passed to it. Encoded into the `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
2011
|
+
examples: [
|
|
2012
|
+
["--model", "meta-llama/Llama-3-8B", "--max-model-len", "8192"]
|
|
2013
|
+
]
|
|
2014
|
+
},
|
|
2015
|
+
entrypoint: {
|
|
2016
|
+
type: "array",
|
|
2017
|
+
items: {
|
|
2018
|
+
type: "string"
|
|
2019
|
+
},
|
|
2020
|
+
description: "Container ENTRYPOINT in exec form, overriding the image's own. Encoded into `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
2021
|
+
examples: [["/bin/bash", "-c"]]
|
|
1920
2022
|
},
|
|
1921
2023
|
disk: {
|
|
1922
2024
|
type: "integer",
|
|
@@ -2202,6 +2304,12 @@ var generatedTools = [
|
|
|
2202
2304
|
path: "/v2/registries",
|
|
2203
2305
|
params: [],
|
|
2204
2306
|
hasBody: true,
|
|
2307
|
+
annotations: {
|
|
2308
|
+
readOnlyHint: false,
|
|
2309
|
+
destructiveHint: false,
|
|
2310
|
+
idempotentHint: false,
|
|
2311
|
+
openWorldHint: true
|
|
2312
|
+
},
|
|
2205
2313
|
inputSchema: {
|
|
2206
2314
|
type: "object",
|
|
2207
2315
|
properties: {
|
|
@@ -2219,16 +2327,19 @@ var generatedTools = [
|
|
|
2219
2327
|
name: {
|
|
2220
2328
|
type: "string",
|
|
2221
2329
|
minLength: 1,
|
|
2330
|
+
maxLength: 191,
|
|
2222
2331
|
examples: ["my-private-registry"]
|
|
2223
2332
|
},
|
|
2224
2333
|
password: {
|
|
2225
2334
|
type: "string",
|
|
2226
2335
|
minLength: 1,
|
|
2336
|
+
maxLength: 16384,
|
|
2227
2337
|
description: "Registry password (write-only, not returned in responses)"
|
|
2228
2338
|
},
|
|
2229
2339
|
username: {
|
|
2230
2340
|
type: "string",
|
|
2231
2341
|
minLength: 1,
|
|
2342
|
+
maxLength: 191,
|
|
2232
2343
|
description: "Registry username (write-only, not returned in responses)"
|
|
2233
2344
|
}
|
|
2234
2345
|
}
|
|
@@ -2236,6 +2347,59 @@ var generatedTools = [
|
|
|
2236
2347
|
}
|
|
2237
2348
|
}
|
|
2238
2349
|
},
|
|
2350
|
+
{
|
|
2351
|
+
name: "create-secret",
|
|
2352
|
+
operationId: "createSecret",
|
|
2353
|
+
description: "Create a secret. Stores a new account-scoped encrypted string. `name` must be unique across the account's secrets and is immutable; `value` is write-only and can never be read back through the API. Use the secret from pods, serverless endpoints, and templates by setting an environment variable's value to `{{ RUNPOD_SECRET_<name> }}` \u2014 Runpod substitutes the stored value when the pod or worker boots. Returns `201` with the created secret's metadata, or `409` when the name is already taken.",
|
|
2354
|
+
method: "POST",
|
|
2355
|
+
path: "/v2/account/secrets",
|
|
2356
|
+
params: [],
|
|
2357
|
+
hasBody: true,
|
|
2358
|
+
annotations: {
|
|
2359
|
+
readOnlyHint: false,
|
|
2360
|
+
destructiveHint: false,
|
|
2361
|
+
idempotentHint: false,
|
|
2362
|
+
openWorldHint: true
|
|
2363
|
+
},
|
|
2364
|
+
inputSchema: {
|
|
2365
|
+
type: "object",
|
|
2366
|
+
properties: {
|
|
2367
|
+
body: {
|
|
2368
|
+
$ref: "#/$defs/CreateSecretRequest"
|
|
2369
|
+
}
|
|
2370
|
+
},
|
|
2371
|
+
required: ["body"],
|
|
2372
|
+
$defs: {
|
|
2373
|
+
CreateSecretRequest: {
|
|
2374
|
+
type: "object",
|
|
2375
|
+
additionalProperties: false,
|
|
2376
|
+
required: ["name", "value"],
|
|
2377
|
+
properties: {
|
|
2378
|
+
name: {
|
|
2379
|
+
type: "string",
|
|
2380
|
+
minLength: 1,
|
|
2381
|
+
maxLength: 191,
|
|
2382
|
+
pattern: "^[a-zA-Z_][a-zA-Z0-9_.\\-/]*$",
|
|
2383
|
+
description: "Unique name for the secret \u2014 referenced from environment variables as `{{ RUNPOD_SECRET_<name> }}`; immutable after creation. Maximum 191 characters, must start with a letter or underscore, and may contain letters, digits, and `_.-/`. Names beginning with the reserved prefix `RUNPOD` are rejected (case-insensitive).",
|
|
2384
|
+
examples: ["hf-token"]
|
|
2385
|
+
},
|
|
2386
|
+
value: {
|
|
2387
|
+
type: "string",
|
|
2388
|
+
minLength: 1,
|
|
2389
|
+
maxLength: 16777216,
|
|
2390
|
+
description: "The secret value. Write-only \u2014 never returned by the API. Must be smaller than 16 MiB of UTF-8 text (strictly under 16,777,216 bytes)."
|
|
2391
|
+
},
|
|
2392
|
+
description: {
|
|
2393
|
+
type: "string",
|
|
2394
|
+
maxLength: 65535,
|
|
2395
|
+
description: "Optional human-readable description, at most 65,535 bytes of UTF-8 text.",
|
|
2396
|
+
examples: ["Hugging Face read token"]
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
},
|
|
2239
2403
|
{
|
|
2240
2404
|
name: "create-template",
|
|
2241
2405
|
operationId: "createTemplate",
|
|
@@ -2244,6 +2408,12 @@ var generatedTools = [
|
|
|
2244
2408
|
path: "/v2/templates",
|
|
2245
2409
|
params: [],
|
|
2246
2410
|
hasBody: true,
|
|
2411
|
+
annotations: {
|
|
2412
|
+
readOnlyHint: false,
|
|
2413
|
+
destructiveHint: false,
|
|
2414
|
+
idempotentHint: false,
|
|
2415
|
+
openWorldHint: true
|
|
2416
|
+
},
|
|
2247
2417
|
inputSchema: {
|
|
2248
2418
|
type: "object",
|
|
2249
2419
|
properties: {
|
|
@@ -2255,12 +2425,34 @@ var generatedTools = [
|
|
|
2255
2425
|
$defs: {
|
|
2256
2426
|
BaseContainerConfig: {
|
|
2257
2427
|
type: "object",
|
|
2258
|
-
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support
|
|
2428
|
+
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support a direct registry credential (clusters \u2014 there the registry credential arrives via a pod template, see CreateClusterRequest.templateId).\n",
|
|
2259
2429
|
properties: {
|
|
2260
2430
|
args: {
|
|
2261
2431
|
type: "string",
|
|
2262
|
-
description: "
|
|
2263
|
-
examples: [
|
|
2432
|
+
description: 'The container\'s command, as a single raw string. This is the field `entrypoint` and `cmd` encode into, exposed in its stored form.\n\nTwo shapes are accepted. A bare shell string is treated as CMD and split into arguments, which is what the console\'s "Container start command" field writes. A JSON object of the form `{"entrypoint":[...],"cmd":[...]}` sets either or both explicitly.\n\nResponses always return both representations: `args` exactly as stored, plus the deconstructed `entrypoint` and `cmd`. Supplying `args` together with `entrypoint` or `cmd` is allowed only when they describe the same command, so a read-modify-write client can send back everything it received. Send `""` to clear, omit to leave unchanged.\n',
|
|
2433
|
+
examples: [
|
|
2434
|
+
"--model meta-llama/Llama-3-8B --max-model-len 8192",
|
|
2435
|
+
'{"entrypoint":["/bin/bash","-c"],"cmd":["python -u main.py"]}',
|
|
2436
|
+
""
|
|
2437
|
+
]
|
|
2438
|
+
},
|
|
2439
|
+
cmd: {
|
|
2440
|
+
type: "array",
|
|
2441
|
+
items: {
|
|
2442
|
+
type: "string"
|
|
2443
|
+
},
|
|
2444
|
+
description: "Container CMD in exec form. When the image defines an ENTRYPOINT, this is the argument list passed to it. Encoded into the `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
2445
|
+
examples: [
|
|
2446
|
+
["--model", "meta-llama/Llama-3-8B", "--max-model-len", "8192"]
|
|
2447
|
+
]
|
|
2448
|
+
},
|
|
2449
|
+
entrypoint: {
|
|
2450
|
+
type: "array",
|
|
2451
|
+
items: {
|
|
2452
|
+
type: "string"
|
|
2453
|
+
},
|
|
2454
|
+
description: "Container ENTRYPOINT in exec form, overriding the image's own. Encoded into `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
2455
|
+
examples: [["/bin/bash", "-c"]]
|
|
2264
2456
|
},
|
|
2265
2457
|
disk: {
|
|
2266
2458
|
type: "integer",
|
|
@@ -2413,7 +2605,7 @@ var generatedTools = [
|
|
|
2413
2605
|
{
|
|
2414
2606
|
name: "delete-cluster",
|
|
2415
2607
|
operationId: "deleteCluster",
|
|
2416
|
-
description: "Delete a cluster.
|
|
2608
|
+
description: "Delete a cluster permanently: it terminates every member pod. Verify the id with get-cluster, and list-cluster-pods for what the delete takes down, before deleting; delete only clusters your own tool calls created in this conversation, or the one the user asked you to delete by id \u2014 a name found by listing is not attribution.",
|
|
2417
2609
|
method: "DELETE",
|
|
2418
2610
|
path: "/v2/clusters/{id}",
|
|
2419
2611
|
params: [
|
|
@@ -2423,6 +2615,12 @@ var generatedTools = [
|
|
|
2423
2615
|
}
|
|
2424
2616
|
],
|
|
2425
2617
|
hasBody: false,
|
|
2618
|
+
annotations: {
|
|
2619
|
+
readOnlyHint: false,
|
|
2620
|
+
destructiveHint: true,
|
|
2621
|
+
idempotentHint: true,
|
|
2622
|
+
openWorldHint: true
|
|
2623
|
+
},
|
|
2426
2624
|
inputSchema: {
|
|
2427
2625
|
type: "object",
|
|
2428
2626
|
properties: {
|
|
@@ -2437,7 +2635,7 @@ var generatedTools = [
|
|
|
2437
2635
|
{
|
|
2438
2636
|
name: "delete-endpoint",
|
|
2439
2637
|
operationId: "deleteEndpoint",
|
|
2440
|
-
description: "Delete a serverless endpoint permanently and immediately. Verify the id belongs to the intended endpoint (get-endpoint) before deleting; delete only endpoints your own tool calls created in this conversation \u2014 a name is not attribution.",
|
|
2638
|
+
description: "Delete a serverless endpoint permanently and immediately. Verify the id belongs to the intended endpoint (get-endpoint) before deleting; delete only endpoints your own tool calls created in this conversation, or the one the user asked you to delete by id \u2014 a name found by listing is not attribution.",
|
|
2441
2639
|
method: "DELETE",
|
|
2442
2640
|
path: "/v2/serverless/{id}",
|
|
2443
2641
|
params: [
|
|
@@ -2447,6 +2645,12 @@ var generatedTools = [
|
|
|
2447
2645
|
}
|
|
2448
2646
|
],
|
|
2449
2647
|
hasBody: false,
|
|
2648
|
+
annotations: {
|
|
2649
|
+
readOnlyHint: false,
|
|
2650
|
+
destructiveHint: true,
|
|
2651
|
+
idempotentHint: true,
|
|
2652
|
+
openWorldHint: true
|
|
2653
|
+
},
|
|
2450
2654
|
inputSchema: {
|
|
2451
2655
|
type: "object",
|
|
2452
2656
|
properties: {
|
|
@@ -2471,6 +2675,12 @@ var generatedTools = [
|
|
|
2471
2675
|
}
|
|
2472
2676
|
],
|
|
2473
2677
|
hasBody: false,
|
|
2678
|
+
annotations: {
|
|
2679
|
+
readOnlyHint: false,
|
|
2680
|
+
destructiveHint: true,
|
|
2681
|
+
idempotentHint: true,
|
|
2682
|
+
openWorldHint: true
|
|
2683
|
+
},
|
|
2474
2684
|
inputSchema: {
|
|
2475
2685
|
type: "object",
|
|
2476
2686
|
properties: {
|
|
@@ -2485,7 +2695,7 @@ var generatedTools = [
|
|
|
2485
2695
|
{
|
|
2486
2696
|
name: "delete-pod",
|
|
2487
2697
|
operationId: "deletePod",
|
|
2488
|
-
description: "Terminate a pod permanently \u2014 its container disk is lost. Distinguish from stopping (pod-action stop) which releases the GPU but keeps volume data. Verify the id with get-pod first; terminate only pods your own tool calls created in this conversation \u2014 a name is not attribution.",
|
|
2698
|
+
description: "Terminate a pod permanently \u2014 its container disk is lost. Distinguish from stopping (pod-action stop) which releases the GPU but keeps volume data. Verify the id with get-pod first; terminate only pods your own tool calls created in this conversation, or the one the user asked you to terminate by id \u2014 a name found by listing is not attribution.",
|
|
2489
2699
|
method: "DELETE",
|
|
2490
2700
|
path: "/v2/pods/{id}",
|
|
2491
2701
|
params: [
|
|
@@ -2495,6 +2705,12 @@ var generatedTools = [
|
|
|
2495
2705
|
}
|
|
2496
2706
|
],
|
|
2497
2707
|
hasBody: false,
|
|
2708
|
+
annotations: {
|
|
2709
|
+
readOnlyHint: false,
|
|
2710
|
+
destructiveHint: true,
|
|
2711
|
+
idempotentHint: true,
|
|
2712
|
+
openWorldHint: true
|
|
2713
|
+
},
|
|
2498
2714
|
inputSchema: {
|
|
2499
2715
|
type: "object",
|
|
2500
2716
|
properties: {
|
|
@@ -2519,6 +2735,12 @@ var generatedTools = [
|
|
|
2519
2735
|
}
|
|
2520
2736
|
],
|
|
2521
2737
|
hasBody: false,
|
|
2738
|
+
annotations: {
|
|
2739
|
+
readOnlyHint: false,
|
|
2740
|
+
destructiveHint: true,
|
|
2741
|
+
idempotentHint: true,
|
|
2742
|
+
openWorldHint: true
|
|
2743
|
+
},
|
|
2522
2744
|
inputSchema: {
|
|
2523
2745
|
type: "object",
|
|
2524
2746
|
properties: {
|
|
@@ -2529,6 +2751,36 @@ var generatedTools = [
|
|
|
2529
2751
|
required: ["id"]
|
|
2530
2752
|
}
|
|
2531
2753
|
},
|
|
2754
|
+
{
|
|
2755
|
+
name: "delete-secret",
|
|
2756
|
+
operationId: "deleteSecret",
|
|
2757
|
+
description: "Delete a secret permanently. Environment variables referencing its name ({{ RUNPOD_SECRET_<name> }}) stop resolving at the next pod or worker boot; running instances keep the value they started with. Verify the id with get-secret first; delete only secrets your own tool calls created in this conversation, or the one the user asked you to delete by id \u2014 a name found by listing is not attribution.",
|
|
2758
|
+
method: "DELETE",
|
|
2759
|
+
path: "/v2/account/secrets/{id}",
|
|
2760
|
+
params: [
|
|
2761
|
+
{
|
|
2762
|
+
name: "id",
|
|
2763
|
+
location: "path"
|
|
2764
|
+
}
|
|
2765
|
+
],
|
|
2766
|
+
hasBody: false,
|
|
2767
|
+
annotations: {
|
|
2768
|
+
readOnlyHint: false,
|
|
2769
|
+
destructiveHint: true,
|
|
2770
|
+
idempotentHint: true,
|
|
2771
|
+
openWorldHint: true
|
|
2772
|
+
},
|
|
2773
|
+
inputSchema: {
|
|
2774
|
+
type: "object",
|
|
2775
|
+
properties: {
|
|
2776
|
+
id: {
|
|
2777
|
+
type: "string",
|
|
2778
|
+
description: "Secret identifier"
|
|
2779
|
+
}
|
|
2780
|
+
},
|
|
2781
|
+
required: ["id"]
|
|
2782
|
+
}
|
|
2783
|
+
},
|
|
2532
2784
|
{
|
|
2533
2785
|
name: "delete-template",
|
|
2534
2786
|
operationId: "deleteTemplate",
|
|
@@ -2542,6 +2794,12 @@ var generatedTools = [
|
|
|
2542
2794
|
}
|
|
2543
2795
|
],
|
|
2544
2796
|
hasBody: false,
|
|
2797
|
+
annotations: {
|
|
2798
|
+
readOnlyHint: false,
|
|
2799
|
+
destructiveHint: true,
|
|
2800
|
+
idempotentHint: true,
|
|
2801
|
+
openWorldHint: true
|
|
2802
|
+
},
|
|
2545
2803
|
inputSchema: {
|
|
2546
2804
|
type: "object",
|
|
2547
2805
|
properties: {
|
|
@@ -2565,6 +2823,12 @@ var generatedTools = [
|
|
|
2565
2823
|
}
|
|
2566
2824
|
],
|
|
2567
2825
|
hasBody: false,
|
|
2826
|
+
annotations: {
|
|
2827
|
+
readOnlyHint: true,
|
|
2828
|
+
destructiveHint: false,
|
|
2829
|
+
idempotentHint: true,
|
|
2830
|
+
openWorldHint: true
|
|
2831
|
+
},
|
|
2568
2832
|
inputSchema: {
|
|
2569
2833
|
type: "object",
|
|
2570
2834
|
properties: {
|
|
@@ -2603,6 +2867,12 @@ var generatedTools = [
|
|
|
2603
2867
|
}
|
|
2604
2868
|
],
|
|
2605
2869
|
hasBody: false,
|
|
2870
|
+
annotations: {
|
|
2871
|
+
readOnlyHint: true,
|
|
2872
|
+
destructiveHint: false,
|
|
2873
|
+
idempotentHint: true,
|
|
2874
|
+
openWorldHint: true
|
|
2875
|
+
},
|
|
2606
2876
|
inputSchema: {
|
|
2607
2877
|
type: "object",
|
|
2608
2878
|
properties: {
|
|
@@ -2664,6 +2934,12 @@ var generatedTools = [
|
|
|
2664
2934
|
}
|
|
2665
2935
|
],
|
|
2666
2936
|
hasBody: false,
|
|
2937
|
+
annotations: {
|
|
2938
|
+
readOnlyHint: true,
|
|
2939
|
+
destructiveHint: false,
|
|
2940
|
+
idempotentHint: true,
|
|
2941
|
+
openWorldHint: true
|
|
2942
|
+
},
|
|
2667
2943
|
inputSchema: {
|
|
2668
2944
|
type: "object",
|
|
2669
2945
|
properties: {
|
|
@@ -2702,6 +2978,12 @@ var generatedTools = [
|
|
|
2702
2978
|
}
|
|
2703
2979
|
],
|
|
2704
2980
|
hasBody: false,
|
|
2981
|
+
annotations: {
|
|
2982
|
+
readOnlyHint: true,
|
|
2983
|
+
destructiveHint: false,
|
|
2984
|
+
idempotentHint: true,
|
|
2985
|
+
openWorldHint: true
|
|
2986
|
+
},
|
|
2705
2987
|
inputSchema: {
|
|
2706
2988
|
type: "object",
|
|
2707
2989
|
properties: {
|
|
@@ -2716,7 +2998,7 @@ var generatedTools = [
|
|
|
2716
2998
|
{
|
|
2717
2999
|
name: "get-endpoint-build",
|
|
2718
3000
|
operationId: "getEndpointBuild",
|
|
2719
|
-
description: "Get a serverless endpoint build. Returns one of the endpoint's GitHub builds by id, regardless of age \u2014
|
|
3001
|
+
description: "Get a serverless endpoint build. Returns one of the endpoint's GitHub builds by id, regardless of age \u2014 no need to page through `GET /v2/serverless/{id}/builds` to reach it.",
|
|
2720
3002
|
method: "GET",
|
|
2721
3003
|
path: "/v2/serverless/{id}/builds/{buildId}",
|
|
2722
3004
|
params: [
|
|
@@ -2730,6 +3012,12 @@ var generatedTools = [
|
|
|
2730
3012
|
}
|
|
2731
3013
|
],
|
|
2732
3014
|
hasBody: false,
|
|
3015
|
+
annotations: {
|
|
3016
|
+
readOnlyHint: true,
|
|
3017
|
+
destructiveHint: false,
|
|
3018
|
+
idempotentHint: true,
|
|
3019
|
+
openWorldHint: true
|
|
3020
|
+
},
|
|
2733
3021
|
inputSchema: {
|
|
2734
3022
|
type: "object",
|
|
2735
3023
|
properties: {
|
|
@@ -2790,6 +3078,12 @@ var generatedTools = [
|
|
|
2790
3078
|
}
|
|
2791
3079
|
],
|
|
2792
3080
|
hasBody: false,
|
|
3081
|
+
annotations: {
|
|
3082
|
+
readOnlyHint: true,
|
|
3083
|
+
destructiveHint: false,
|
|
3084
|
+
idempotentHint: true,
|
|
3085
|
+
openWorldHint: true
|
|
3086
|
+
},
|
|
2793
3087
|
inputSchema: {
|
|
2794
3088
|
type: "object",
|
|
2795
3089
|
properties: {
|
|
@@ -2876,6 +3170,12 @@ var generatedTools = [
|
|
|
2876
3170
|
}
|
|
2877
3171
|
],
|
|
2878
3172
|
hasBody: false,
|
|
3173
|
+
annotations: {
|
|
3174
|
+
readOnlyHint: true,
|
|
3175
|
+
destructiveHint: false,
|
|
3176
|
+
idempotentHint: true,
|
|
3177
|
+
openWorldHint: true
|
|
3178
|
+
},
|
|
2879
3179
|
inputSchema: {
|
|
2880
3180
|
type: "object",
|
|
2881
3181
|
properties: {
|
|
@@ -2900,6 +3200,12 @@ var generatedTools = [
|
|
|
2900
3200
|
}
|
|
2901
3201
|
],
|
|
2902
3202
|
hasBody: false,
|
|
3203
|
+
annotations: {
|
|
3204
|
+
readOnlyHint: true,
|
|
3205
|
+
destructiveHint: false,
|
|
3206
|
+
idempotentHint: true,
|
|
3207
|
+
openWorldHint: true
|
|
3208
|
+
},
|
|
2903
3209
|
inputSchema: {
|
|
2904
3210
|
type: "object",
|
|
2905
3211
|
properties: {
|
|
@@ -2924,6 +3230,12 @@ var generatedTools = [
|
|
|
2924
3230
|
}
|
|
2925
3231
|
],
|
|
2926
3232
|
hasBody: false,
|
|
3233
|
+
annotations: {
|
|
3234
|
+
readOnlyHint: true,
|
|
3235
|
+
destructiveHint: false,
|
|
3236
|
+
idempotentHint: true,
|
|
3237
|
+
openWorldHint: true
|
|
3238
|
+
},
|
|
2927
3239
|
inputSchema: {
|
|
2928
3240
|
type: "object",
|
|
2929
3241
|
properties: {
|
|
@@ -2934,6 +3246,36 @@ var generatedTools = [
|
|
|
2934
3246
|
required: ["id"]
|
|
2935
3247
|
}
|
|
2936
3248
|
},
|
|
3249
|
+
{
|
|
3250
|
+
name: "get-secret",
|
|
3251
|
+
operationId: "getSecret",
|
|
3252
|
+
description: "Get a secret. Returns a single secret's metadata by ID. The value is write-only and never returned.",
|
|
3253
|
+
method: "GET",
|
|
3254
|
+
path: "/v2/account/secrets/{id}",
|
|
3255
|
+
params: [
|
|
3256
|
+
{
|
|
3257
|
+
name: "id",
|
|
3258
|
+
location: "path"
|
|
3259
|
+
}
|
|
3260
|
+
],
|
|
3261
|
+
hasBody: false,
|
|
3262
|
+
annotations: {
|
|
3263
|
+
readOnlyHint: true,
|
|
3264
|
+
destructiveHint: false,
|
|
3265
|
+
idempotentHint: true,
|
|
3266
|
+
openWorldHint: true
|
|
3267
|
+
},
|
|
3268
|
+
inputSchema: {
|
|
3269
|
+
type: "object",
|
|
3270
|
+
properties: {
|
|
3271
|
+
id: {
|
|
3272
|
+
type: "string",
|
|
3273
|
+
description: "Secret identifier"
|
|
3274
|
+
}
|
|
3275
|
+
},
|
|
3276
|
+
required: ["id"]
|
|
3277
|
+
}
|
|
3278
|
+
},
|
|
2937
3279
|
{
|
|
2938
3280
|
name: "get-ssh-keys",
|
|
2939
3281
|
operationId: "getSshKeys",
|
|
@@ -2942,6 +3284,12 @@ var generatedTools = [
|
|
|
2942
3284
|
path: "/v2/account/ssh-keys",
|
|
2943
3285
|
params: [],
|
|
2944
3286
|
hasBody: false,
|
|
3287
|
+
annotations: {
|
|
3288
|
+
readOnlyHint: true,
|
|
3289
|
+
destructiveHint: false,
|
|
3290
|
+
idempotentHint: true,
|
|
3291
|
+
openWorldHint: true
|
|
3292
|
+
},
|
|
2945
3293
|
inputSchema: {
|
|
2946
3294
|
type: "object",
|
|
2947
3295
|
properties: {}
|
|
@@ -2960,6 +3308,12 @@ var generatedTools = [
|
|
|
2960
3308
|
}
|
|
2961
3309
|
],
|
|
2962
3310
|
hasBody: false,
|
|
3311
|
+
annotations: {
|
|
3312
|
+
readOnlyHint: true,
|
|
3313
|
+
destructiveHint: false,
|
|
3314
|
+
idempotentHint: true,
|
|
3315
|
+
openWorldHint: true
|
|
3316
|
+
},
|
|
2963
3317
|
inputSchema: {
|
|
2964
3318
|
type: "object",
|
|
2965
3319
|
properties: {
|
|
@@ -2995,6 +3349,12 @@ var generatedTools = [
|
|
|
2995
3349
|
}
|
|
2996
3350
|
],
|
|
2997
3351
|
hasBody: false,
|
|
3352
|
+
annotations: {
|
|
3353
|
+
readOnlyHint: true,
|
|
3354
|
+
destructiveHint: false,
|
|
3355
|
+
idempotentHint: true,
|
|
3356
|
+
openWorldHint: true
|
|
3357
|
+
},
|
|
2998
3358
|
inputSchema: {
|
|
2999
3359
|
type: "object",
|
|
3000
3360
|
properties: {
|
|
@@ -3065,6 +3425,12 @@ var generatedTools = [
|
|
|
3065
3425
|
}
|
|
3066
3426
|
],
|
|
3067
3427
|
hasBody: false,
|
|
3428
|
+
annotations: {
|
|
3429
|
+
readOnlyHint: true,
|
|
3430
|
+
destructiveHint: false,
|
|
3431
|
+
idempotentHint: true,
|
|
3432
|
+
openWorldHint: true
|
|
3433
|
+
},
|
|
3068
3434
|
inputSchema: {
|
|
3069
3435
|
type: "object",
|
|
3070
3436
|
properties: {
|
|
@@ -3123,6 +3489,12 @@ var generatedTools = [
|
|
|
3123
3489
|
}
|
|
3124
3490
|
],
|
|
3125
3491
|
hasBody: false,
|
|
3492
|
+
annotations: {
|
|
3493
|
+
readOnlyHint: true,
|
|
3494
|
+
destructiveHint: false,
|
|
3495
|
+
idempotentHint: true,
|
|
3496
|
+
openWorldHint: true
|
|
3497
|
+
},
|
|
3126
3498
|
inputSchema: {
|
|
3127
3499
|
type: "object",
|
|
3128
3500
|
properties: {
|
|
@@ -3142,6 +3514,12 @@ var generatedTools = [
|
|
|
3142
3514
|
path: "/v2/clusters",
|
|
3143
3515
|
params: [],
|
|
3144
3516
|
hasBody: false,
|
|
3517
|
+
annotations: {
|
|
3518
|
+
readOnlyHint: true,
|
|
3519
|
+
destructiveHint: false,
|
|
3520
|
+
idempotentHint: true,
|
|
3521
|
+
openWorldHint: true
|
|
3522
|
+
},
|
|
3145
3523
|
inputSchema: {
|
|
3146
3524
|
type: "object",
|
|
3147
3525
|
properties: {}
|
|
@@ -3170,6 +3548,12 @@ var generatedTools = [
|
|
|
3170
3548
|
}
|
|
3171
3549
|
],
|
|
3172
3550
|
hasBody: false,
|
|
3551
|
+
annotations: {
|
|
3552
|
+
readOnlyHint: true,
|
|
3553
|
+
destructiveHint: false,
|
|
3554
|
+
idempotentHint: true,
|
|
3555
|
+
openWorldHint: true
|
|
3556
|
+
},
|
|
3173
3557
|
inputSchema: {
|
|
3174
3558
|
type: "object",
|
|
3175
3559
|
properties: {
|
|
@@ -3242,6 +3626,12 @@ var generatedTools = [
|
|
|
3242
3626
|
}
|
|
3243
3627
|
],
|
|
3244
3628
|
hasBody: false,
|
|
3629
|
+
annotations: {
|
|
3630
|
+
readOnlyHint: true,
|
|
3631
|
+
destructiveHint: false,
|
|
3632
|
+
idempotentHint: true,
|
|
3633
|
+
openWorldHint: true
|
|
3634
|
+
},
|
|
3245
3635
|
inputSchema: {
|
|
3246
3636
|
type: "object",
|
|
3247
3637
|
properties: {
|
|
@@ -3338,6 +3728,12 @@ var generatedTools = [
|
|
|
3338
3728
|
path: "/v2/registries/delegations",
|
|
3339
3729
|
params: [],
|
|
3340
3730
|
hasBody: false,
|
|
3731
|
+
annotations: {
|
|
3732
|
+
readOnlyHint: true,
|
|
3733
|
+
destructiveHint: false,
|
|
3734
|
+
idempotentHint: true,
|
|
3735
|
+
openWorldHint: true
|
|
3736
|
+
},
|
|
3341
3737
|
inputSchema: {
|
|
3342
3738
|
type: "object",
|
|
3343
3739
|
properties: {}
|
|
@@ -3368,6 +3764,12 @@ var generatedTools = [
|
|
|
3368
3764
|
}
|
|
3369
3765
|
],
|
|
3370
3766
|
hasBody: false,
|
|
3767
|
+
annotations: {
|
|
3768
|
+
readOnlyHint: true,
|
|
3769
|
+
destructiveHint: false,
|
|
3770
|
+
idempotentHint: true,
|
|
3771
|
+
openWorldHint: true
|
|
3772
|
+
},
|
|
3371
3773
|
inputSchema: {
|
|
3372
3774
|
type: "object",
|
|
3373
3775
|
properties: {
|
|
@@ -3412,22 +3814,47 @@ var generatedTools = [
|
|
|
3412
3814
|
{
|
|
3413
3815
|
name: "list-endpoint-builds",
|
|
3414
3816
|
operationId: "listEndpointBuilds",
|
|
3415
|
-
description: "List serverless endpoint builds. Returns the endpoint's GitHub build history, newest first (Runpod GitHub-build integration)
|
|
3817
|
+
description: "List serverless endpoint builds. Returns the endpoint's GitHub build history, newest first (Runpod GitHub-build integration), cursor-paginated; an omitted `limit` defaults to 100, so a bare request returns at most the 100 most recent builds. Any build can also be fetched by id via `GET /v2/serverless/{id}/builds/{buildId}`. Stream a build's logs via `/v2/serverless/{id}/builds/{buildId}/logs`.",
|
|
3416
3818
|
method: "GET",
|
|
3417
3819
|
path: "/v2/serverless/{id}/builds",
|
|
3418
3820
|
params: [
|
|
3419
3821
|
{
|
|
3420
3822
|
name: "id",
|
|
3421
3823
|
location: "path"
|
|
3824
|
+
},
|
|
3825
|
+
{
|
|
3826
|
+
name: "cursor",
|
|
3827
|
+
location: "query"
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
name: "limit",
|
|
3831
|
+
location: "query"
|
|
3422
3832
|
}
|
|
3423
3833
|
],
|
|
3424
3834
|
hasBody: false,
|
|
3835
|
+
annotations: {
|
|
3836
|
+
readOnlyHint: true,
|
|
3837
|
+
destructiveHint: false,
|
|
3838
|
+
idempotentHint: true,
|
|
3839
|
+
openWorldHint: true
|
|
3840
|
+
},
|
|
3425
3841
|
inputSchema: {
|
|
3426
3842
|
type: "object",
|
|
3427
3843
|
properties: {
|
|
3428
3844
|
id: {
|
|
3429
3845
|
type: "string",
|
|
3430
3846
|
description: "Serverless endpoint identifier"
|
|
3847
|
+
},
|
|
3848
|
+
cursor: {
|
|
3849
|
+
type: "string",
|
|
3850
|
+
minLength: 1,
|
|
3851
|
+
description: "Opaque resume cursor \u2014 pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.\n"
|
|
3852
|
+
},
|
|
3853
|
+
limit: {
|
|
3854
|
+
type: "integer",
|
|
3855
|
+
minimum: 1,
|
|
3856
|
+
maximum: 100,
|
|
3857
|
+
description: "Page size, 1\u2013100. Defaults to 100 when omitted."
|
|
3431
3858
|
}
|
|
3432
3859
|
},
|
|
3433
3860
|
required: ["id"]
|
|
@@ -3436,22 +3863,47 @@ var generatedTools = [
|
|
|
3436
3863
|
{
|
|
3437
3864
|
name: "list-endpoint-releases",
|
|
3438
3865
|
operationId: "listEndpointReleases",
|
|
3439
|
-
description: "List serverless endpoint releases. Returns the endpoint's release history (newest first) plus a rollout summary of how many workers are running the current version. Each release is a versioned configuration snapshot with a `diff` of what changed; build-driven releases carry a `buildId` (fetch build detail via the builds sub-routes).",
|
|
3866
|
+
description: "List serverless endpoint releases. Returns the endpoint's release history (newest first) plus a rollout summary of how many workers are running the current version. Each release is a versioned configuration snapshot with a `diff` of what changed; build-driven releases carry a `buildId` (fetch build detail via the builds sub-routes). Releases are cursor-paginated newest-first; an omitted `limit` defaults to 1000. The rollout summary always describes the endpoint's current state, independent of the page requested.",
|
|
3440
3867
|
method: "GET",
|
|
3441
3868
|
path: "/v2/serverless/{id}/releases",
|
|
3442
3869
|
params: [
|
|
3443
3870
|
{
|
|
3444
3871
|
name: "id",
|
|
3445
3872
|
location: "path"
|
|
3873
|
+
},
|
|
3874
|
+
{
|
|
3875
|
+
name: "cursor",
|
|
3876
|
+
location: "query"
|
|
3877
|
+
},
|
|
3878
|
+
{
|
|
3879
|
+
name: "limit",
|
|
3880
|
+
location: "query"
|
|
3446
3881
|
}
|
|
3447
3882
|
],
|
|
3448
3883
|
hasBody: false,
|
|
3884
|
+
annotations: {
|
|
3885
|
+
readOnlyHint: true,
|
|
3886
|
+
destructiveHint: false,
|
|
3887
|
+
idempotentHint: true,
|
|
3888
|
+
openWorldHint: true
|
|
3889
|
+
},
|
|
3449
3890
|
inputSchema: {
|
|
3450
3891
|
type: "object",
|
|
3451
3892
|
properties: {
|
|
3452
3893
|
id: {
|
|
3453
3894
|
type: "string",
|
|
3454
3895
|
description: "Serverless endpoint identifier"
|
|
3896
|
+
},
|
|
3897
|
+
cursor: {
|
|
3898
|
+
type: "string",
|
|
3899
|
+
minLength: 1,
|
|
3900
|
+
description: "Opaque resume cursor \u2014 pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.\n"
|
|
3901
|
+
},
|
|
3902
|
+
limit: {
|
|
3903
|
+
type: "integer",
|
|
3904
|
+
minimum: 1,
|
|
3905
|
+
maximum: 1e3,
|
|
3906
|
+
description: "Page size, 1\u20131000. Defaults to 1000 when omitted."
|
|
3455
3907
|
}
|
|
3456
3908
|
},
|
|
3457
3909
|
required: ["id"]
|
|
@@ -3470,6 +3922,12 @@ var generatedTools = [
|
|
|
3470
3922
|
}
|
|
3471
3923
|
],
|
|
3472
3924
|
hasBody: false,
|
|
3925
|
+
annotations: {
|
|
3926
|
+
readOnlyHint: true,
|
|
3927
|
+
destructiveHint: false,
|
|
3928
|
+
idempotentHint: true,
|
|
3929
|
+
openWorldHint: true
|
|
3930
|
+
},
|
|
3473
3931
|
inputSchema: {
|
|
3474
3932
|
type: "object",
|
|
3475
3933
|
properties: {
|
|
@@ -3522,6 +3980,12 @@ var generatedTools = [
|
|
|
3522
3980
|
}
|
|
3523
3981
|
],
|
|
3524
3982
|
hasBody: false,
|
|
3983
|
+
annotations: {
|
|
3984
|
+
readOnlyHint: true,
|
|
3985
|
+
destructiveHint: false,
|
|
3986
|
+
idempotentHint: true,
|
|
3987
|
+
openWorldHint: true
|
|
3988
|
+
},
|
|
3525
3989
|
inputSchema: {
|
|
3526
3990
|
type: "object",
|
|
3527
3991
|
properties: {
|
|
@@ -3620,6 +4084,12 @@ var generatedTools = [
|
|
|
3620
4084
|
}
|
|
3621
4085
|
],
|
|
3622
4086
|
hasBody: false,
|
|
4087
|
+
annotations: {
|
|
4088
|
+
readOnlyHint: true,
|
|
4089
|
+
destructiveHint: false,
|
|
4090
|
+
idempotentHint: true,
|
|
4091
|
+
openWorldHint: true
|
|
4092
|
+
},
|
|
3623
4093
|
inputSchema: {
|
|
3624
4094
|
type: "object",
|
|
3625
4095
|
properties: {
|
|
@@ -3673,6 +4143,12 @@ var generatedTools = [
|
|
|
3673
4143
|
path: "/v2/network-volumes",
|
|
3674
4144
|
params: [],
|
|
3675
4145
|
hasBody: false,
|
|
4146
|
+
annotations: {
|
|
4147
|
+
readOnlyHint: true,
|
|
4148
|
+
destructiveHint: false,
|
|
4149
|
+
idempotentHint: true,
|
|
4150
|
+
openWorldHint: true
|
|
4151
|
+
},
|
|
3676
4152
|
inputSchema: {
|
|
3677
4153
|
type: "object",
|
|
3678
4154
|
properties: {}
|
|
@@ -3707,6 +4183,12 @@ var generatedTools = [
|
|
|
3707
4183
|
}
|
|
3708
4184
|
],
|
|
3709
4185
|
hasBody: false,
|
|
4186
|
+
annotations: {
|
|
4187
|
+
readOnlyHint: true,
|
|
4188
|
+
destructiveHint: false,
|
|
4189
|
+
idempotentHint: true,
|
|
4190
|
+
openWorldHint: true
|
|
4191
|
+
},
|
|
3710
4192
|
inputSchema: {
|
|
3711
4193
|
type: "object",
|
|
3712
4194
|
properties: {
|
|
@@ -3755,16 +4237,30 @@ var generatedTools = [
|
|
|
3755
4237
|
{
|
|
3756
4238
|
name: "list-pods",
|
|
3757
4239
|
operationId: "listPods",
|
|
3758
|
-
description: "List pods. Returns pods owned by the authenticated user. Cluster member pods are excluded by default; set `includeClusterPods=true` to include them (each carries a non-null `cluster` membership block).",
|
|
4240
|
+
description: "List pods. Returns pods owned by the authenticated user. Cluster member pods are excluded by default; set `includeClusterPods=true` to include them (each carries a non-null `cluster` membership block). Results are cursor-paginated newest-first; an omitted `limit` defaults to 1000. When cluster member pods are excluded, the exclusion applies to each page after it is cut, so a page may hold fewer than `limit` pods \u2014 follow `pagination.nextCursor` until `hasNextPage` is false rather than counting items.",
|
|
3759
4241
|
method: "GET",
|
|
3760
4242
|
path: "/v2/pods",
|
|
3761
4243
|
params: [
|
|
3762
4244
|
{
|
|
3763
4245
|
name: "includeClusterPods",
|
|
3764
4246
|
location: "query"
|
|
4247
|
+
},
|
|
4248
|
+
{
|
|
4249
|
+
name: "cursor",
|
|
4250
|
+
location: "query"
|
|
4251
|
+
},
|
|
4252
|
+
{
|
|
4253
|
+
name: "limit",
|
|
4254
|
+
location: "query"
|
|
3765
4255
|
}
|
|
3766
4256
|
],
|
|
3767
4257
|
hasBody: false,
|
|
4258
|
+
annotations: {
|
|
4259
|
+
readOnlyHint: true,
|
|
4260
|
+
destructiveHint: false,
|
|
4261
|
+
idempotentHint: true,
|
|
4262
|
+
openWorldHint: true
|
|
4263
|
+
},
|
|
3768
4264
|
inputSchema: {
|
|
3769
4265
|
type: "object",
|
|
3770
4266
|
properties: {
|
|
@@ -3772,6 +4268,17 @@ var generatedTools = [
|
|
|
3772
4268
|
type: "boolean",
|
|
3773
4269
|
default: false,
|
|
3774
4270
|
description: "Include cluster member pods in the result. Defaults to false."
|
|
4271
|
+
},
|
|
4272
|
+
cursor: {
|
|
4273
|
+
type: "string",
|
|
4274
|
+
minLength: 1,
|
|
4275
|
+
description: "Opaque resume cursor \u2014 pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.\n"
|
|
4276
|
+
},
|
|
4277
|
+
limit: {
|
|
4278
|
+
type: "integer",
|
|
4279
|
+
minimum: 1,
|
|
4280
|
+
maximum: 1e3,
|
|
4281
|
+
description: "Page size, 1\u20131000. Defaults to 1000 when omitted."
|
|
3775
4282
|
}
|
|
3776
4283
|
}
|
|
3777
4284
|
}
|
|
@@ -3779,7 +4286,7 @@ var generatedTools = [
|
|
|
3779
4286
|
{
|
|
3780
4287
|
name: "list-public-templates",
|
|
3781
4288
|
operationId: "listPublicTemplates",
|
|
3782
|
-
description: "List public templates. Returns the public template catalog. `source` selects which slice: `official` (the default) is Runpod-curated templates, `verified` is community templates Runpod has verified, and `community` is everything else other users have shared publicly. Both pod and serverless templates appear \u2014 use each entry's `serverless` flag to tell them apart. `registry` is always null for templates you don't own. Your own templates (public or private) are managed under `/v2/templates`; fetch any individual template \u2014 catalog or owned \u2014 via `/v2/templates/{id}`. At most 100 templates are returned.
|
|
4289
|
+
description: "List public templates. Returns the public template catalog. `source` selects which slice: `official` (the default) is Runpod-curated templates, `verified` is community templates Runpod has verified, and `community` is everything else other users have shared publicly. Both pod and serverless templates appear \u2014 use each entry's `serverless` flag to tell them apart. `registry` is always null for templates you don't own. Your own templates (public or private) are managed under `/v2/templates`; fetch any individual template \u2014 catalog or owned \u2014 via `/v2/templates/{id}`. At most 100 templates are returned. Cursor pagination is not yet supported here; `pagination` is always the exhausted marker (`nextCursor: null`, `hasNextPage: false`).",
|
|
3783
4290
|
method: "GET",
|
|
3784
4291
|
path: "/v2/catalog/templates",
|
|
3785
4292
|
params: [
|
|
@@ -3789,6 +4296,12 @@ var generatedTools = [
|
|
|
3789
4296
|
}
|
|
3790
4297
|
],
|
|
3791
4298
|
hasBody: false,
|
|
4299
|
+
annotations: {
|
|
4300
|
+
readOnlyHint: true,
|
|
4301
|
+
destructiveHint: false,
|
|
4302
|
+
idempotentHint: true,
|
|
4303
|
+
openWorldHint: true
|
|
4304
|
+
},
|
|
3792
4305
|
inputSchema: {
|
|
3793
4306
|
type: "object",
|
|
3794
4307
|
properties: {
|
|
@@ -3809,11 +4322,46 @@ var generatedTools = [
|
|
|
3809
4322
|
path: "/v2/registries",
|
|
3810
4323
|
params: [],
|
|
3811
4324
|
hasBody: false,
|
|
4325
|
+
annotations: {
|
|
4326
|
+
readOnlyHint: true,
|
|
4327
|
+
destructiveHint: false,
|
|
4328
|
+
idempotentHint: true,
|
|
4329
|
+
openWorldHint: true
|
|
4330
|
+
},
|
|
3812
4331
|
inputSchema: {
|
|
3813
4332
|
type: "object",
|
|
3814
4333
|
properties: {}
|
|
3815
4334
|
}
|
|
3816
4335
|
},
|
|
4336
|
+
{
|
|
4337
|
+
name: "list-secrets",
|
|
4338
|
+
operationId: "listSecrets",
|
|
4339
|
+
description: "List secrets. Returns the account's secrets \u2014 encrypted strings referenced from pod, serverless, and template environment variables with the `{{ RUNPOD_SECRET_<name> }}` placeholder syntax, substituted with the secret's value when the pod or worker boots. Secret values are write-only and are never returned.",
|
|
4340
|
+
method: "GET",
|
|
4341
|
+
path: "/v2/account/secrets",
|
|
4342
|
+
params: [
|
|
4343
|
+
{
|
|
4344
|
+
name: "name",
|
|
4345
|
+
location: "query"
|
|
4346
|
+
}
|
|
4347
|
+
],
|
|
4348
|
+
hasBody: false,
|
|
4349
|
+
annotations: {
|
|
4350
|
+
readOnlyHint: true,
|
|
4351
|
+
destructiveHint: false,
|
|
4352
|
+
idempotentHint: true,
|
|
4353
|
+
openWorldHint: true
|
|
4354
|
+
},
|
|
4355
|
+
inputSchema: {
|
|
4356
|
+
type: "object",
|
|
4357
|
+
properties: {
|
|
4358
|
+
name: {
|
|
4359
|
+
type: "string",
|
|
4360
|
+
description: "When provided, returns only the secret with this name (case-insensitive)."
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
}
|
|
4364
|
+
},
|
|
3817
4365
|
{
|
|
3818
4366
|
name: "list-serverless-billing",
|
|
3819
4367
|
operationId: "listServerlessBilling",
|
|
@@ -3843,6 +4391,12 @@ var generatedTools = [
|
|
|
3843
4391
|
}
|
|
3844
4392
|
],
|
|
3845
4393
|
hasBody: false,
|
|
4394
|
+
annotations: {
|
|
4395
|
+
readOnlyHint: true,
|
|
4396
|
+
destructiveHint: false,
|
|
4397
|
+
idempotentHint: true,
|
|
4398
|
+
openWorldHint: true
|
|
4399
|
+
},
|
|
3846
4400
|
inputSchema: {
|
|
3847
4401
|
type: "object",
|
|
3848
4402
|
properties: {
|
|
@@ -3901,6 +4455,12 @@ var generatedTools = [
|
|
|
3901
4455
|
}
|
|
3902
4456
|
],
|
|
3903
4457
|
hasBody: true,
|
|
4458
|
+
annotations: {
|
|
4459
|
+
readOnlyHint: false,
|
|
4460
|
+
destructiveHint: true,
|
|
4461
|
+
idempotentHint: false,
|
|
4462
|
+
openWorldHint: true
|
|
4463
|
+
},
|
|
3904
4464
|
inputSchema: {
|
|
3905
4465
|
type: "object",
|
|
3906
4466
|
properties: {
|
|
@@ -3944,6 +4504,12 @@ var generatedTools = [
|
|
|
3944
4504
|
}
|
|
3945
4505
|
],
|
|
3946
4506
|
hasBody: false,
|
|
4507
|
+
annotations: {
|
|
4508
|
+
readOnlyHint: false,
|
|
4509
|
+
destructiveHint: true,
|
|
4510
|
+
idempotentHint: true,
|
|
4511
|
+
openWorldHint: true
|
|
4512
|
+
},
|
|
3947
4513
|
inputSchema: {
|
|
3948
4514
|
type: "object",
|
|
3949
4515
|
properties: {
|
|
@@ -3967,6 +4533,12 @@ var generatedTools = [
|
|
|
3967
4533
|
}
|
|
3968
4534
|
],
|
|
3969
4535
|
hasBody: true,
|
|
4536
|
+
annotations: {
|
|
4537
|
+
readOnlyHint: false,
|
|
4538
|
+
destructiveHint: false,
|
|
4539
|
+
idempotentHint: false,
|
|
4540
|
+
openWorldHint: true
|
|
4541
|
+
},
|
|
3970
4542
|
inputSchema: {
|
|
3971
4543
|
type: "object",
|
|
3972
4544
|
properties: {
|
|
@@ -3999,7 +4571,7 @@ var generatedTools = [
|
|
|
3999
4571
|
{
|
|
4000
4572
|
name: "update-endpoint",
|
|
4001
4573
|
operationId: "updateEndpoint",
|
|
4002
|
-
description: "Partially update a serverless endpoint (PATCH): only fields present in the body change, omitted ones are untouched. DESTRUCTIVE GOTCHA:
|
|
4574
|
+
description: "Partially update a serverless endpoint (PATCH): only fields present in the body change, omitted ones are untouched, with one exception. DESTRUCTIVE GOTCHA: gpu.pools and gpu.excludedTypes are a single selection, so sending pools without excludedTypes clears any exclusions pinned elsewhere (the console or set-endpoint-gpus) \u2014 read the endpoint first with get-endpoint and resend excludedTypes if you still want them. An exclusion naming a type outside pools returns 400. A CUDA-only or count-only change does not need pools at all, so omit it unless you mean to replace the selection. Mutable fields: name, gpu, cpu, workers (min/max/idleTimeout), scaling (type plus queueDelay or requestCount), dataCenterIds, networkVolumes, timeout, flashboot, and the container settings (image, args, disk, ports, env, registry). cpu completely replaces a CPU endpoint's flavor selection. Compute family is immutable: gpu on a CPU endpoint, cpu on a GPU one, or both, returns 400. Effect timing differs by field \u2014 workers/scaling/timeout reach the autoscaler promptly, while container changes (image, env) cut a new release that rolls out as workers cycle, so in-flight workers keep the previous version. Track rollout with list-endpoint-releases.",
|
|
4003
4575
|
method: "PATCH",
|
|
4004
4576
|
path: "/v2/serverless/{id}",
|
|
4005
4577
|
params: [
|
|
@@ -4009,6 +4581,12 @@ var generatedTools = [
|
|
|
4009
4581
|
}
|
|
4010
4582
|
],
|
|
4011
4583
|
hasBody: true,
|
|
4584
|
+
annotations: {
|
|
4585
|
+
readOnlyHint: false,
|
|
4586
|
+
destructiveHint: false,
|
|
4587
|
+
idempotentHint: false,
|
|
4588
|
+
openWorldHint: true
|
|
4589
|
+
},
|
|
4012
4590
|
inputSchema: {
|
|
4013
4591
|
type: "object",
|
|
4014
4592
|
properties: {
|
|
@@ -4024,12 +4602,34 @@ var generatedTools = [
|
|
|
4024
4602
|
$defs: {
|
|
4025
4603
|
BaseContainerConfig: {
|
|
4026
4604
|
type: "object",
|
|
4027
|
-
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support
|
|
4605
|
+
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support a direct registry credential (clusters \u2014 there the registry credential arrives via a pod template, see CreateClusterRequest.templateId).\n",
|
|
4028
4606
|
properties: {
|
|
4029
4607
|
args: {
|
|
4030
4608
|
type: "string",
|
|
4031
|
-
description: "
|
|
4032
|
-
examples: [
|
|
4609
|
+
description: 'The container\'s command, as a single raw string. This is the field `entrypoint` and `cmd` encode into, exposed in its stored form.\n\nTwo shapes are accepted. A bare shell string is treated as CMD and split into arguments, which is what the console\'s "Container start command" field writes. A JSON object of the form `{"entrypoint":[...],"cmd":[...]}` sets either or both explicitly.\n\nResponses always return both representations: `args` exactly as stored, plus the deconstructed `entrypoint` and `cmd`. Supplying `args` together with `entrypoint` or `cmd` is allowed only when they describe the same command, so a read-modify-write client can send back everything it received. Send `""` to clear, omit to leave unchanged.\n',
|
|
4610
|
+
examples: [
|
|
4611
|
+
"--model meta-llama/Llama-3-8B --max-model-len 8192",
|
|
4612
|
+
'{"entrypoint":["/bin/bash","-c"],"cmd":["python -u main.py"]}',
|
|
4613
|
+
""
|
|
4614
|
+
]
|
|
4615
|
+
},
|
|
4616
|
+
cmd: {
|
|
4617
|
+
type: "array",
|
|
4618
|
+
items: {
|
|
4619
|
+
type: "string"
|
|
4620
|
+
},
|
|
4621
|
+
description: "Container CMD in exec form. When the image defines an ENTRYPOINT, this is the argument list passed to it. Encoded into the `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
4622
|
+
examples: [
|
|
4623
|
+
["--model", "meta-llama/Llama-3-8B", "--max-model-len", "8192"]
|
|
4624
|
+
]
|
|
4625
|
+
},
|
|
4626
|
+
entrypoint: {
|
|
4627
|
+
type: "array",
|
|
4628
|
+
items: {
|
|
4629
|
+
type: "string"
|
|
4630
|
+
},
|
|
4631
|
+
description: "Container ENTRYPOINT in exec form, overriding the image's own. Encoded into `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
4632
|
+
examples: [["/bin/bash", "-c"]]
|
|
4033
4633
|
},
|
|
4034
4634
|
disk: {
|
|
4035
4635
|
type: "integer",
|
|
@@ -4088,7 +4688,7 @@ var generatedTools = [
|
|
|
4088
4688
|
pools: {
|
|
4089
4689
|
type: "array",
|
|
4090
4690
|
minItems: 1,
|
|
4091
|
-
description:
|
|
4691
|
+
description: 'Serverless GPU pool IDs (as returned by `GET /v2/catalog/gpus` in\n`pool`). Workers are placed on whichever listed pool has capacity.\nNarrow a pool down to specific cards with `excludedTypes`.\n\nOn `PATCH`, `pools` and `excludedTypes` are one selection and are\nreplaced together, so sending `pools` by itself **clears the\nexclusions**. Two cases:\n\n- **Changing pools, keeping exclusions** \u2014 send both fields in one\n request: `{"gpu": {"pools": ["ADA_24"], "excludedTypes":\n ["NVIDIA L40"]}}`. `GET` the endpoint first to read the current\n `excludedTypes` and resend the ones that still apply to the new\n pools; an exclusion naming a type outside `pools` is a 400.\n- **Changing only `count` or a CUDA constraint** \u2014 omit `pools`:\n `{"gpu": {"minCudaVersion": "12.4"}}`. The pool list and the\n exclusions are both left exactly as they are.\n\n`excludedTypes` documents the full rule.\n',
|
|
4092
4692
|
items: {
|
|
4093
4693
|
type: "string"
|
|
4094
4694
|
},
|
|
@@ -4333,6 +4933,12 @@ var generatedTools = [
|
|
|
4333
4933
|
}
|
|
4334
4934
|
],
|
|
4335
4935
|
hasBody: true,
|
|
4936
|
+
annotations: {
|
|
4937
|
+
readOnlyHint: false,
|
|
4938
|
+
destructiveHint: false,
|
|
4939
|
+
idempotentHint: false,
|
|
4940
|
+
openWorldHint: true
|
|
4941
|
+
},
|
|
4336
4942
|
inputSchema: {
|
|
4337
4943
|
type: "object",
|
|
4338
4944
|
properties: {
|
|
@@ -4383,6 +4989,12 @@ var generatedTools = [
|
|
|
4383
4989
|
}
|
|
4384
4990
|
],
|
|
4385
4991
|
hasBody: true,
|
|
4992
|
+
annotations: {
|
|
4993
|
+
readOnlyHint: false,
|
|
4994
|
+
destructiveHint: false,
|
|
4995
|
+
idempotentHint: false,
|
|
4996
|
+
openWorldHint: true
|
|
4997
|
+
},
|
|
4386
4998
|
inputSchema: {
|
|
4387
4999
|
type: "object",
|
|
4388
5000
|
properties: {
|
|
@@ -4398,12 +5010,34 @@ var generatedTools = [
|
|
|
4398
5010
|
$defs: {
|
|
4399
5011
|
BaseContainerConfig: {
|
|
4400
5012
|
type: "object",
|
|
4401
|
-
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support
|
|
5013
|
+
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support a direct registry credential (clusters \u2014 there the registry credential arrives via a pod template, see CreateClusterRequest.templateId).\n",
|
|
4402
5014
|
properties: {
|
|
4403
5015
|
args: {
|
|
4404
5016
|
type: "string",
|
|
4405
|
-
description: "
|
|
4406
|
-
examples: [
|
|
5017
|
+
description: 'The container\'s command, as a single raw string. This is the field `entrypoint` and `cmd` encode into, exposed in its stored form.\n\nTwo shapes are accepted. A bare shell string is treated as CMD and split into arguments, which is what the console\'s "Container start command" field writes. A JSON object of the form `{"entrypoint":[...],"cmd":[...]}` sets either or both explicitly.\n\nResponses always return both representations: `args` exactly as stored, plus the deconstructed `entrypoint` and `cmd`. Supplying `args` together with `entrypoint` or `cmd` is allowed only when they describe the same command, so a read-modify-write client can send back everything it received. Send `""` to clear, omit to leave unchanged.\n',
|
|
5018
|
+
examples: [
|
|
5019
|
+
"--model meta-llama/Llama-3-8B --max-model-len 8192",
|
|
5020
|
+
'{"entrypoint":["/bin/bash","-c"],"cmd":["python -u main.py"]}',
|
|
5021
|
+
""
|
|
5022
|
+
]
|
|
5023
|
+
},
|
|
5024
|
+
cmd: {
|
|
5025
|
+
type: "array",
|
|
5026
|
+
items: {
|
|
5027
|
+
type: "string"
|
|
5028
|
+
},
|
|
5029
|
+
description: "Container CMD in exec form. When the image defines an ENTRYPOINT, this is the argument list passed to it. Encoded into the `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
5030
|
+
examples: [
|
|
5031
|
+
["--model", "meta-llama/Llama-3-8B", "--max-model-len", "8192"]
|
|
5032
|
+
]
|
|
5033
|
+
},
|
|
5034
|
+
entrypoint: {
|
|
5035
|
+
type: "array",
|
|
5036
|
+
items: {
|
|
5037
|
+
type: "string"
|
|
5038
|
+
},
|
|
5039
|
+
description: "Container ENTRYPOINT in exec form, overriding the image's own. Encoded into `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
5040
|
+
examples: [["/bin/bash", "-c"]]
|
|
4407
5041
|
},
|
|
4408
5042
|
disk: {
|
|
4409
5043
|
type: "integer",
|
|
@@ -4546,6 +5180,60 @@ var generatedTools = [
|
|
|
4546
5180
|
}
|
|
4547
5181
|
}
|
|
4548
5182
|
},
|
|
5183
|
+
{
|
|
5184
|
+
name: "update-secret",
|
|
5185
|
+
operationId: "updateSecret",
|
|
5186
|
+
description: "Update a secret. Rotates a secret's value and/or updates its description. Only the provided fields are changed and at least one field is required; the `name` is immutable. Pods and workers receive the new value at their next boot \u2014 running instances keep the value they were started with. When both fields are sent, the value is applied first, then the description. The two updates are not atomic: if the description update fails after the value was rotated, the response is an error but the new value has already taken effect. Send the fields in separate requests when that partial outcome matters.",
|
|
5187
|
+
method: "PATCH",
|
|
5188
|
+
path: "/v2/account/secrets/{id}",
|
|
5189
|
+
params: [
|
|
5190
|
+
{
|
|
5191
|
+
name: "id",
|
|
5192
|
+
location: "path"
|
|
5193
|
+
}
|
|
5194
|
+
],
|
|
5195
|
+
hasBody: true,
|
|
5196
|
+
annotations: {
|
|
5197
|
+
readOnlyHint: false,
|
|
5198
|
+
destructiveHint: false,
|
|
5199
|
+
idempotentHint: false,
|
|
5200
|
+
openWorldHint: true
|
|
5201
|
+
},
|
|
5202
|
+
inputSchema: {
|
|
5203
|
+
type: "object",
|
|
5204
|
+
properties: {
|
|
5205
|
+
id: {
|
|
5206
|
+
type: "string",
|
|
5207
|
+
description: "Secret identifier"
|
|
5208
|
+
},
|
|
5209
|
+
body: {
|
|
5210
|
+
$ref: "#/$defs/UpdateSecretRequest"
|
|
5211
|
+
}
|
|
5212
|
+
},
|
|
5213
|
+
required: ["id", "body"],
|
|
5214
|
+
$defs: {
|
|
5215
|
+
UpdateSecretRequest: {
|
|
5216
|
+
type: "object",
|
|
5217
|
+
additionalProperties: false,
|
|
5218
|
+
minProperties: 1,
|
|
5219
|
+
description: "Only the provided fields are updated; at least one field is required.\nThe secret's `name` is immutable.\n",
|
|
5220
|
+
properties: {
|
|
5221
|
+
value: {
|
|
5222
|
+
type: "string",
|
|
5223
|
+
minLength: 1,
|
|
5224
|
+
maxLength: 16777216,
|
|
5225
|
+
description: "New secret value, replacing the current one. Write-only. Must be smaller than 16 MiB of UTF-8 text (strictly under 16,777,216 bytes)."
|
|
5226
|
+
},
|
|
5227
|
+
description: {
|
|
5228
|
+
type: "string",
|
|
5229
|
+
maxLength: 65535,
|
|
5230
|
+
description: 'New human-readable description, at most 65,535 bytes of UTF-8 text. Send `""` to clear.'
|
|
5231
|
+
}
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
}
|
|
5235
|
+
}
|
|
5236
|
+
},
|
|
4549
5237
|
{
|
|
4550
5238
|
name: "update-ssh-keys",
|
|
4551
5239
|
operationId: "updateSshKeys",
|
|
@@ -4554,6 +5242,12 @@ var generatedTools = [
|
|
|
4554
5242
|
path: "/v2/account/ssh-keys",
|
|
4555
5243
|
params: [],
|
|
4556
5244
|
hasBody: true,
|
|
5245
|
+
annotations: {
|
|
5246
|
+
readOnlyHint: false,
|
|
5247
|
+
destructiveHint: true,
|
|
5248
|
+
idempotentHint: true,
|
|
5249
|
+
openWorldHint: true
|
|
5250
|
+
},
|
|
4557
5251
|
inputSchema: {
|
|
4558
5252
|
type: "object",
|
|
4559
5253
|
properties: {
|
|
@@ -4599,6 +5293,12 @@ var generatedTools = [
|
|
|
4599
5293
|
}
|
|
4600
5294
|
],
|
|
4601
5295
|
hasBody: true,
|
|
5296
|
+
annotations: {
|
|
5297
|
+
readOnlyHint: false,
|
|
5298
|
+
destructiveHint: false,
|
|
5299
|
+
idempotentHint: false,
|
|
5300
|
+
openWorldHint: true
|
|
5301
|
+
},
|
|
4602
5302
|
inputSchema: {
|
|
4603
5303
|
type: "object",
|
|
4604
5304
|
properties: {
|
|
@@ -4613,12 +5313,34 @@ var generatedTools = [
|
|
|
4613
5313
|
$defs: {
|
|
4614
5314
|
BaseContainerConfig: {
|
|
4615
5315
|
type: "object",
|
|
4616
|
-
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support
|
|
5316
|
+
description: "Container configuration universal to every containerized resource. Compose ContainerConfig instead unless the resource cannot support a direct registry credential (clusters \u2014 there the registry credential arrives via a pod template, see CreateClusterRequest.templateId).\n",
|
|
4617
5317
|
properties: {
|
|
4618
5318
|
args: {
|
|
4619
5319
|
type: "string",
|
|
4620
|
-
description: "
|
|
4621
|
-
examples: [
|
|
5320
|
+
description: 'The container\'s command, as a single raw string. This is the field `entrypoint` and `cmd` encode into, exposed in its stored form.\n\nTwo shapes are accepted. A bare shell string is treated as CMD and split into arguments, which is what the console\'s "Container start command" field writes. A JSON object of the form `{"entrypoint":[...],"cmd":[...]}` sets either or both explicitly.\n\nResponses always return both representations: `args` exactly as stored, plus the deconstructed `entrypoint` and `cmd`. Supplying `args` together with `entrypoint` or `cmd` is allowed only when they describe the same command, so a read-modify-write client can send back everything it received. Send `""` to clear, omit to leave unchanged.\n',
|
|
5321
|
+
examples: [
|
|
5322
|
+
"--model meta-llama/Llama-3-8B --max-model-len 8192",
|
|
5323
|
+
'{"entrypoint":["/bin/bash","-c"],"cmd":["python -u main.py"]}',
|
|
5324
|
+
""
|
|
5325
|
+
]
|
|
5326
|
+
},
|
|
5327
|
+
cmd: {
|
|
5328
|
+
type: "array",
|
|
5329
|
+
items: {
|
|
5330
|
+
type: "string"
|
|
5331
|
+
},
|
|
5332
|
+
description: "Container CMD in exec form. When the image defines an ENTRYPOINT, this is the argument list passed to it. Encoded into the `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
5333
|
+
examples: [
|
|
5334
|
+
["--model", "meta-llama/Llama-3-8B", "--max-model-len", "8192"]
|
|
5335
|
+
]
|
|
5336
|
+
},
|
|
5337
|
+
entrypoint: {
|
|
5338
|
+
type: "array",
|
|
5339
|
+
items: {
|
|
5340
|
+
type: "string"
|
|
5341
|
+
},
|
|
5342
|
+
description: "Container ENTRYPOINT in exec form, overriding the image's own. Encoded into `args` field; supplying both is allowed only when they describe the same command. Send `[]` to clear, omit to leave unchanged.\n",
|
|
5343
|
+
examples: [["/bin/bash", "-c"]]
|
|
4622
5344
|
},
|
|
4623
5345
|
disk: {
|
|
4624
5346
|
type: "integer",
|
|
@@ -4755,171 +5477,6 @@ var generatedTools = [
|
|
|
4755
5477
|
}
|
|
4756
5478
|
];
|
|
4757
5479
|
|
|
4758
|
-
// src/specgen/generated/skills.gen.ts
|
|
4759
|
-
var skillDocs = [
|
|
4760
|
-
{
|
|
4761
|
-
name: "api-boundary",
|
|
4762
|
-
description: `Recognize when a task exceeds Runpod's current management-API surface and answer honestly \u2014 state the gap plainly, name the specific operation that isn't exposed, and give the real working path. Never fabricate a tool call or claim a silent success. Trigger on phrases like "store a secret / gated Llama token", "set up secrets", "move my dataset in / checkpoints out", "transfer files to my pod", "multi-node training cluster", "instant cluster".`,
|
|
4763
|
-
text: '---\nname: api-boundary\ndescription: Recognize when a task exceeds Runpod\'s current management-API surface and answer honestly \u2014 state the gap plainly, name the specific operation that isn\'t exposed, and give the real working path. Never fabricate a tool call or claim a silent success. Trigger on phrases like "store a secret / gated Llama token", "set up secrets", "move my dataset in / checkpoints out", "transfer files to my pod", "multi-node training cluster", "instant cluster".\n---\n\n# API boundary\n\nSome operations a user asks for are simply not on the Runpod management API today. Your job is to say so plainly \u2014 name the exact gap, do not fabricate a tool that would do it, do not report a silent success \u2014 and then hand the user the real working path. Any account fact you cite (a Pod, a volume) is read from the API, never invented.\n\nThe honest answer *is* the deliverable here. A hallucinated `create-secret` or `create-cluster` call is the failure this skill exists to prevent.\n\n## The discipline\n\n- **Confirm the gap before asserting it.** The absence is real: there is no secrets tool and no cluster-create tool on the server (only cluster *billing* is readable). State the gap as a fact about the API surface, then pivot to the workaround.\n- **Name the specific operation**, not a vague "can\'t do that" \u2014 "there\'s no REST/MCP tool to create a Runpod secret", "there\'s no endpoint to create an Instant Cluster", "the MCP/REST surface has no file-transfer tool \u2014 but the runpodctl CLI and the volume S3 API move files fine".\n- **Give the real path** that works today, concrete enough to act on.\n- **Ground any account fact in a read.** If you reference the user\'s volume or Pod as part of the workaround, list/inspect it first \u2014 don\'t assert one exists.\n- **Never invent a capability.** No made-up tool name, no pretend success, no "I\'ve stored your secret."\n\n## The boundary cases\n\n- **Secrets for a gated model \u2014 expected fail.** There is no secrets tool on the management API; Runpod Secrets are managed through the console / internal GraphQL, not REST. Say that plainly. The working path: create the secret in the Runpod console and reference it from the template/endpoint env (e.g. `{{ RUNPOD_SECRET_hf_token }}`), or \u2014 less safe but functional \u2014 pass the token directly as a plain env var on the template/endpoint you create. Recommend the console-secret route; name the plain-env-var route as the trade-off, not the default. Do not claim to have created a secret \u2014 no tool does.\n- **Datasets in / checkpoints out \u2014 covered by other tooling, not a gap.** The MCP/management-API tool set has no file-transfer tool \u2014 no MCP call moves bytes to or from a Pod or volume \u2014 but this is *not* a product gap: the runpodctl CLI and the companion S3 tooling cover it directly. Point the user there rather than calling it impossible: `runpodctl send` / `runpodctl receive` for ad-hoc file moves, the S3-compatible API on network volumes (`aws s3` against the volume\'s S3 endpoint) for bulk dataset/checkpoint sync, the console cloud-sync integration, or `scp`/`rsync` over the Pod\'s SSH. In an MCP-only session, say the transfer runs through the runpodctl CLI or the volume S3 API \u2014 a real working path, just not an MCP tool. If checkpoints must survive the Pod, stage them on a network volume (confirm it exists with a read first) so the data outlives the compute.\n- **Multi-node training cluster \u2014 expected fail.** There is no REST/MCP tool to create an Instant Cluster \u2014 the server exposes only cluster *billing* reads, not cluster creation or lifecycle. Say so. The working path: create the Instant Cluster from the Runpod console (Instant Clusters), then use the API for what it *can* do \u2014 read its billing, and manage the individual Pods once they exist. Do not fabricate a create call.\n\n## Hard rules\n\n- Never fabricate a tool call for an operation the API does not expose. If it isn\'t in the tool list, it does not exist \u2014 say so.\n- Never report a silent success ("done / stored / created") for a gap operation. There is nothing to succeed at.\n- State the gap as a specific missing operation, then the concrete workaround \u2014 both, in that order.\n- Read any account fact you cite; don\'t assert a resource exists without listing/inspecting it.\n- When Runpod later ships REST secrets or cluster-create, this re-classes to a normal deploy/lifecycle journey and the per-server tool binding gains the new tool \u2014 until then the honest gap answer is the right answer.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| Create/store a secret | *(unbound \u2014 no secrets tool; console / internal GraphQL only)* | *(unbound)* |\n| Create an Instant Cluster | *(unbound \u2014 no cluster-create tool; console only)* | *(unbound)* |\n| Read Instant Cluster billing | `list-cluster-billing` | *(unbound)* |\n| Transfer files to/from a Pod/volume | *(no MCP tool \u2014 covered by the runpodctl CLI: `send`/`receive`, volume S3 API, cloud-sync, SSH)* | *(no MCP tool \u2014 runpodctl CLI)* |\n| Ground account facts (reads) | `list-pods`, `get-pod`, `list-network-volumes`, `get-network-volume`, `list-endpoints` | same names |\n\nThe secret and cluster-create rows are genuine gaps on both servers \u2014 name the gap and the workaround. File transfer is **not** a gap: no MCP tool moves bytes, but the runpodctl CLI covers it fully \u2014 hand off there rather than calling it impossible.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4764
|
-
},
|
|
4765
|
-
{
|
|
4766
|
-
name: "comfyui-serverless",
|
|
4767
|
-
description: 'Host a ComfyUI workflow as a serverless endpoint and prove it with one generated image. Owns the workflow-as-job-input pattern (the workflow JSON rides each job request, it is never baked into the image), worker-variant selection by the models the workflow references, and custom-model provisioning (Civitai checkpoints/LoRAs, extra upscalers) via an explicit mechanism with its cold-start consequence stated. Trigger on phrases like "make my workflow.json an api", "host this comfyui workflow", "productionize this workflow file", "comfyui endpoint with my civitai model", "serve my custom lora as an api", "comfyui serverless".',
|
|
4768
|
-
text: '---\nname: comfyui-serverless\ndescription: Host a ComfyUI workflow as a serverless endpoint and prove it with one generated image. Owns the workflow-as-job-input pattern (the workflow JSON rides each job request, it is never baked into the image), worker-variant selection by the models the workflow references, and custom-model provisioning (Civitai checkpoints/LoRAs, extra upscalers) via an explicit mechanism with its cold-start consequence stated. Trigger on phrases like "make my workflow.json an api", "host this comfyui workflow", "productionize this workflow file", "comfyui endpoint with my civitai model", "serve my custom lora as an api", "comfyui serverless".\n---\n\n# ComfyUI serverless\n\nYou turn a ComfyUI workflow into a working serverless endpoint and prove it with one image. Two facts drive everything: the workflow JSON is **job input** \u2014 each request carries it in the job payload, so a custom workflow needs no custom image \u2014 and the worker image only serves what its bundled model set (plus anything you explicitly provision) can load. The journey is: read the workflow, list what it references, match a worker variant, provision what the variant lacks by an explicit mechanism, deploy, run the user\'s own workflow once, hand back the proof.\n\n## Phase 1 \u2014 read the workflow and inventory its references\n\n- Read the user\'s workflow file FIRST. Walk its nodes and list every external file it references: the checkpoint (`CheckpointLoaderSimple.ckpt_name`), LoRAs, VAEs, upscale models, controlnets. This inventory decides everything downstream \u2014 a deploy that guesses the requirements is wrong even when it boots.\n- Note nodes that need no files (latent upscale, standard samplers) \u2014 they run anywhere and need no provisioning.\n\n## Phase 2 \u2014 pick the worker and cover the model inventory\n\n- Resolve the ComfyUI serverless worker from the Hub catalog (`list-hub-repos`, the runpod-workers ComfyUI worker family). Worker variants bundle different model sets \u2014 pick the variant whose bundled set covers the workflow\'s checkpoint (an SDXL workflow wants the SDXL-bundled variant). Cite the hub read you picked it from.\n- For every referenced file the variant does NOT bundle, choose ONE provisioning mechanism and say so plainly:\n 1. **Network volume staging** \u2014 create a volume in the endpoint\'s data center, attach it, and name the exact ComfyUI model paths the files must land under (checkpoints/, loras/, upscale_models/ beneath the mount). The management API cannot upload files: create and wire the volume yourself, then hand the user the ONE staging step (what to download, to which exact path) \u2014 that hand-back is part of the mechanism, not a failure.\n 2. **Baked custom image** \u2014 the user builds an image with the models at the ComfyUI paths and hands back the reference; you deploy from it. Choose this only when the user prefers owning an image.\n 3. **Worker-supported download env** \u2014 only if the worker\'s own config (from the hub read) documents one; never invent an env var the worker does not list. The ComfyUI worker does not document a Civitai download env \u2014 do not pretend it does.\n- State the chosen mechanism\'s cold-start consequence: baked image = bigger pull, volume = one-time download then cached mounts, per-boot download = paid on every cold start.\n- Civitai specifics: resolve the model page to the actual file and its size when a web-read tool is granted. When it is not, do NOT stall the deploy waiting for it \u2014 wire the volume and endpoint anyway, and fold the exact-file lookup into the user\'s staging step ("on the model page\'s Files tab, download the .safetensors file to <exact volume path>"). If the file needs Civitai auth, ask for the token or wire it as an env var with the plaintext caveat \u2014 never invent one, never echo one.\n\n## Phase 3 \u2014 deploy, prove with the user\'s own workflow, hand back\n\n- Create the endpoint scale-to-zero (min workers 0) unless warm capacity was asked for. State the GPU hourly price from the catalog read before creating.\n- Smoke-test with the USER\'S workflow as the job input \u2014 not a substitute prompt. One job, held server-side (runsync then status holds, per serverless-deploy\'s smoke-test discipline); if the wait outlasts the holds, report the evidenced state.\n- Close with everything in one place: the endpoint id, the worker/variant and the hub read it came from, which models are bundled vs provisioned (and how) vs handed to the user to stage (a small table reads well), the job result (the image output reference, or the evidenced blocker), the hourly price, and \u2014 when staging was handed to the user \u2014 the exact single step they run.\n\n## Hard rules\n\n- Read the workflow before any deploy decision; every requirement you name must come from it.\n- Never bake the workflow into an image or tell the user one is needed for a custom workflow \u2014 the workflow rides the job payload.\n- Never claim a model loaded without job or log evidence; a run that silently fell back to a base model is a failure to report, not a success.\n- Never invent worker env vars, download URLs, or Civitai tokens. Mechanisms you cannot execute through the granted tools are handed to the user as one concrete step, with what you DID wire (volume, endpoint, mounts) already in place.\n- Scale-to-zero by default; a nonzero minimum bills around the clock and needs the user\'s ask.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| Find the ComfyUI worker | `list-hub-repos` | `list-hub-repos` |\n| Deploy from the hub | `deploy-hub-repo` | `deploy-hub-repo` |\n| Template + endpoint (custom image path) | `create-template`, `create-endpoint` | same names |\n| Volume for custom models | `create-network-volume` | `create-network-volume` |\n| Smoke job with the workflow | `runsync-endpoint` / `run-endpoint` + `get-job-status` | same names |\n| Read-back / teardown | `get-endpoint`, `delete-endpoint`, `delete-template`, `delete-network-volume` | same names |\n\nWhere a capability is unbound on a server, say "not available on this server" and work with what the server does offer.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4769
|
-
},
|
|
4770
|
-
{
|
|
4771
|
-
name: "cost-audit",
|
|
4772
|
-
description: 'Read-only Runpod money hygiene \u2014 find idle spend, explain serverless idle-worker billing, break spend down by resource, and give a whole-account snapshot. Trigger on phrases like "why is my runpod bill high", "what am I paying for", "idle pods", "serverless charges with no traffic", "cost breakdown", "spend by resource", "account snapshot", "where is my money going". Audits a live account via the MCP billing/list reads \u2014 idle-scoring, idle-worker-vs-idle-pod, per-resource attribution. Recommends actions but never stops or changes anything.',
|
|
4773
|
-
text: '---\nname: cost-audit\ndescription: Read-only Runpod money hygiene \u2014 find idle spend, explain serverless idle-worker billing, break spend down by resource, and give a whole-account snapshot. Trigger on phrases like "why is my runpod bill high", "what am I paying for", "idle pods", "serverless charges with no traffic", "cost breakdown", "spend by resource", "account snapshot", "where is my money going". Audits a live account via the MCP billing/list reads \u2014 idle-scoring, idle-worker-vs-idle-pod, per-resource attribution. Recommends actions but never stops or changes anything.\n---\n\n# Cost audit\n\nYou answer "where is my money going / stop the leak" against a Runpod account. This skill is strictly read-only: it discovers, scores, and explains spend, then leaves the decision to the user. It **never** stops, deletes, or reconfigures a resource on its own \u2014 any apply is handed off (a Pod stop to `pod-doctor`, dropping serverless min-workers to 0 to `endpoint-ops`) and only after the user explicitly approves it.\n\nEvery figure comes from a read: hourly rates from the resource list, spend-to-date from the billing reads. Never invent or estimate a number you did not read; a monthly projection is allowed only as `read_hourly \xD7 hours`, with the hourly quoted.\n\nThe raw billing and list reads are `runpod-mcp` tool calls (or the equivalent runpodctl billing read); this skill is the *audit journey* on top of them \u2014 the idle-scoring, the idle-worker-vs-idle-pod disambiguation, and the per-resource attribution the plain reads don\'t do.\n\n## Required capabilities\n\nNamed as capabilities; the tool serving each one on this server is in the per-server tool binding below. All are reads.\n\n- List Pods with machine/cost info, and inspect one Pod.\n- List serverless endpoints and inspect one \u2014 for min/max workers config.\n- List network volumes.\n- Aggregate billing history, and per-resource billing (Pod / serverless / endpoint / network volume / cluster).\n\n## The four journeys\n\nRead first, always. Match the prompt to one journey; do not run all four unasked.\n\n- **Account snapshot.** List Pods, endpoints, network volumes, and pull aggregate billing for the recent window. Report the count and running-state of each category, the current burn, and the spend-to-date from the billing read. Report an empty category as empty ("no network volumes") \u2014 never pad the picture.\n- **Idle Pod money leak.** List Pods. On the pod record `status` is the state field and `cost` is the pod\'s hourly rate in USD \u2014 those exact names, from the read. For each `status=RUNNING` pod, quote `cost` and project `cost \xD7 730` as "$/mo if left on"; sort by projected cost, present one table (name, GPU, $/hr, up-for, $/mo), and name the costliest. When every pod is stopped/EXITED, don\'t stop at "nothing is running": state plainly that no GPU is burning AND that stopped pods still bill disk/storage until terminated \u2014 then still give the per-pod table, each row\'s `cost` presented as "$/hr \u2014 $/mo if restarted", so the user sees the rate every idle pod resumes at. If `cost` is missing on a row, render `?` and exclude it from any total \u2014 do not fabricate it. Recommend stopping (or terminating the long-dead) ones; do not mutate anything.\n- **Serverless charges with no traffic.** This is the conflation users make: a serverless endpoint with **min workers \u2265 1** keeps an always-on worker that bills even at zero traffic \u2014 that is serverless idle-worker spend, and it is *not* the same as an idle Pod. Inspect the endpoint\'s worker config to confirm min-workers \u2265 1, quote the serverless billing read for that endpoint, and explain the mechanism plainly. The fix is min-workers 0 (cold-start trade-off) \u2014 recommend it and hand the apply to `endpoint-ops`; do not change it here. **If no endpoint has min-workers \u2265 1**, the charge is billed worker execution time on scale-to-zero endpoints: serverless bills every second a worker runs, whether the run was a completed job, a failed job, or a stuck/restarting worker that burns GPU seconds without ever completing anything. Attribute it from the per-endpoint billing rows plus the worker/job states, name the responsible endpoint, and say explicitly that this is execution-time billing on a live scale-to-zero endpoint \u2014 not idle-worker billing, and not a phantom charge.\n- **Spend breakdown by resource.** Get the per-TYPE totals from the aggregate `list-billing` read first \u2014 it answers the breakdown directly. Drill into a type only as needed, and **always size-safely**: on the serverless read pass `lastN: 1` (or a `bucketSize` covering the whole window) so each endpoint yields ONE record \u2014 the default per-endpoint-per-bucket dump on a many-endpoint account overflows the tool-result limit, and an oversized result comes back truncated, dead-ending the audit. Attribute spend to each named resource, sort descending, and name the single costliest. Present figures as coming from the billing read. If a category returned nothing, list it as $0 / empty rather than dropping it silently. **When every category returns zero** \u2014 no spend anywhere \u2014 say so plainly: give the per-type table with $0 for each and a $0 total, cross-check it against the live lists (`list-pods` / `list-endpoints` / `list-network-volumes` all empty confirms it), and state directly that there is no costliest type because nothing has billed and nothing is currently costing money. Do **not** hedge that the billing window might be wrong or ask the user to re-specify a timeframe \u2014 the reads are authoritative for the window used; only if the user themselves names a different period do you re-pull.\n- **Commit the attribution (all spend questions).** When the billing reads show real spend, name its source from the data you have \u2014 even when the responsible resource has since been deleted ("$X from serverless jobs on endpoints that no longer exist, run at <times from the billing rows>"). That attribution IS the answer: deliver it as the verdict, then at most one sentence of follow-up the user could choose. Lead with the attribution the reads support instead of deflecting the question back at the user, and never reach for tools you were not given (no shell, no web) \u2014 every figure you need is in the billing reads and lists you already have; analyze them directly in your reply. The per-endpoint serverless drill-down comes from the per-resource billing reads (list-serverless-billing / list-endpoint-billing) \u2014 never a shell script or any tool outside the granted MCP set. Deliver the verdict first: state the finding plainly, then at most one recommended next step or follow-up question.\n\n## Hard rules\n\n- Read-only. This skill never calls a mutating tool \u2014 no stop, no delete, no update. Full stop.\n- That holds however urgently the change is ordered: an instruction changes the urgency, not the authority. The audit plus the exact ids and the precise actions for the USER to run IS the complete answer to that order \u2014 deliver it as such, never as a permission question, and never attempt the mutation to "try anyway".\n- Assume you have only the Runpod MCP tools. Never reach for a shell, a script, a web-fetch tool, or anything else you were not granted \u2014 a tool you do not have cannot be called, and the audit ends with nothing delivered. Every figure this skill needs is in the MCP billing and list reads.\n- When a read\'s result comes back truncated, the recovery is a NARROWER RE-READ \u2014 smaller page, one endpoint at a time, `lastN: 1`, a tighter bucket \u2014 never an attempt to recover the dropped output, never an external script to parse it, never a request for extra tool access. A narrower read gets the user their answer; the detours get them nothing.\n- Any recommended apply is a handoff to `pod-doctor` (stop) or `endpoint-ops` (min-workers-0), and only after the user says yes. Name the handoff; do not perform it.\n- Every dollar figure traces to a tool read. Quote the hourly / billing source. A projection is `read_hourly \xD7 hours`, never a bare invented number.\n- Report empty categories as empty. Absence is a finding, not a gap to fill.\n- Never flag a Pod that has been up under an hour as idle \u2014 too fresh to call.\n- Distinguish Pod idle spend from serverless idle-worker spend explicitly whenever both could be in play \u2014 conflating them is the most common user error this skill exists to correct.\n\n## Error handling\n\n- A `401` on any list means the API key is invalid \u2014 say so and stop; there is nothing to audit without it.\n- A `429` mid-audit: report the partial picture and note it is incomplete; do not retry in a tight loop.\n- A missing `cost` on a pod row, or an empty billing bucket, is data \u2014 not an error. Render `?` / $0 and keep going.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| List Pods (+ machine/cost) | `list-pods` | `list-pods` |\n| Inspect one Pod | `get-pod` | `get-pod` |\n| List / inspect endpoints | `list-endpoints`, `get-endpoint` | `list-endpoints`, `get-endpoint` |\n| Endpoint worker config / counts | `list-endpoint-workers`, `endpoint-health` | `endpoint-health` |\n| List network volumes | `list-network-volumes` | `list-network-volumes` |\n| Aggregate billing | `list-billing` | *(coarse / unbound)* |\n| Per-resource billing | `list-pod-billing`, `list-serverless-billing`, `list-endpoint-billing`, `list-network-volume-billing`, `list-cluster-billing` | *(unbound \u2014 REST billing is coarse)* |\n\nWhere per-resource billing is unbound (official server), degrade to the coarse aggregate and say the per-resource split is "not available on this server" rather than inventing one.\n\n## Report template \u2014 cost summary\n\nEvery cost answer ships as: per-type table (Pods / Serverless / Network\nvolumes / Clusters \u2014 every type present even at $0.00) with figures only from\nbilling reads made this turn \xB7 a total line \xB7 the named costliest item (or the\nexplicit statement that nothing billed) \xB7 the one-sentence verdict answering\nthe user\'s actual question. Attribution follows the commit rule above.\n\nFigure format \u2014 hard rules, check the drafted reply before sending:\n- Every figure is an exact dollar amount ($X.XX) copied or summed from billing\n rows. The characters `~` and `\u2248` and the words "about / roughly /\n approximately" never appear next to a number anywhere in a cost reply. A\n derived figure (a resource\'s share, a per-day rate, a projection) is stated\n exactly, with its arithmetic shown from the quoted inputs \u2014 "$46.37, the sum\n of that pod\'s billing rows" \u2014 never softened into an estimate.\n- Every table cell holds a concrete value ($0.00 for a zero or empty\n category) \u2014 never a placeholder, a dash, or a stray word.\n- Re-add the table: the rows must sum exactly to the stated total, to the\n cent. If rounding leaves a gap, adjust the rounding so the printed rows and\n the printed total agree before sending.\n- Check every proportion word against the printed amounts before sending \u2014\n "half", "most", "a third", any percentage. The claim must match the\n arithmetic of the figures next to it ($43.26 of $66.45 is 65% \u2014 "most",\n never "half"); if the number doesn\'t support the word, fix the word.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4774
|
-
},
|
|
4775
|
-
{
|
|
4776
|
-
name: "discovery",
|
|
4777
|
-
description: `Answer "what's available, what fits, and what does it cost" against Runpod's catalogs \u2014 GPU types with price, live stock and per-data-center availability, the capacity matrix across host CUDA versions, the Hub worker marketplace, and the pay-per-use public-endpoints catalog. Read-only, never mutates; answers against the live catalogs via the MCP tools \u2014 the discovery journey (filter to the real constraint, model\u2192VRAM fit, none-found honesty) on top of the raw runpod-mcp reads. Trigger on phrases like "what 24 GB GPUs are available and what do they cost", "is there capacity for <card> in <region>", "which GPU fits <model>", "cheapest way to serve/run <model> on Runpod", "what's the cheapest GPU to run <model>", "is there a ready-made <X> worker on the Hub", "can I caption an image without deploying anything", "what pay-per-use endpoints exist".`,
|
|
4778
|
-
text: '---\nname: discovery\ndescription: Answer "what\'s available, what fits, and what does it cost" against Runpod\'s catalogs \u2014 GPU types with price, live stock and per-data-center availability, the capacity matrix across host CUDA versions, the Hub worker marketplace, and the pay-per-use public-endpoints catalog. Read-only, never mutates; answers against the live catalogs via the MCP tools \u2014 the discovery journey (filter to the real constraint, model\u2192VRAM fit, none-found honesty) on top of the raw runpod-mcp reads. Trigger on phrases like "what 24 GB GPUs are available and what do they cost", "is there capacity for <card> in <region>", "which GPU fits <model>", "cheapest way to serve/run <model> on Runpod", "what\'s the cheapest GPU to run <model>", "is there a ready-made <X> worker on the Hub", "can I caption an image without deploying anything", "what pay-per-use endpoints exist".\n---\n\n# Discovery\n\nYou answer availability, fit, and price questions against Runpod\'s catalogs and you never change anything. Four catalogs, one discipline: filter to the prompt\'s real constraint, name only entries the tool actually returned, quote the price and stock straight from the output, and say "none found" rather than invent a card, a region, or a repo.\n\nYou also own the model\u2192VRAM sizing math the deploy skills cite: given a model\'s parameter count and precision, estimate the VRAM it needs and name the smallest GPU class that fits with real stock. Sizing is advice \u2014 this skill recommends, it does not deploy.\n\nThe raw catalog reads are `runpod-mcp` tool calls; this skill is the discovery journey \u2014 filter, fit, price, none-found honesty \u2014 on top of them.\n\n## Required capabilities\n\nNamed as capabilities; the tool serving each one on this server is in the per-server tool binding below. Every capability here is a read.\n\n- Read the GPU catalog with price and live availability \u2014 the "what GPUs / what do they cost / is there stock" answer.\n- Read per-data-center GPU availability \u2014 which region has a card free right now.\n- Read the capacity matrix across host CUDA versions \u2014 stock per host CUDA version, which the flat GPU list can\'t express.\n- Read data centers and their regions \u2014 where the stock and the network-volume tiers live.\n- Read the CPU catalog \u2014 for CPU-pod and CPU-serverless sizing questions.\n- Browse the Hub worker marketplace \u2014 is there a prebuilt worker for this task.\n- Read the pay-per-use public-endpoints catalog \u2014 managed model APIs that need no deployment at all.\n\n## Journeys\n\n### GPU availability + price\n\nRead the GPU catalog with availability included, then filter to the real constraint. For "24 GB GPUs", filter to the VRAM tier the user asked for \u2014 do not list the whole fleet. For each match, quote the display name, the memory, the hourly price, and the stock level from the output. Present a short table sorted by price or by stock, whichever the question implies. If nothing in that tier has stock, say so plainly rather than listing out-of-stock cards as if they were available.\n\n### Capacity hunt by region / CUDA\n\nTwo different questions, two different reads \u2014 do not mix them up.\n\n- **"Is there capacity for `<card>` in `<region>`" / "which region has `<card>` free right now."** Ask for the availability expansion on the catalog read: `list-gpu-types` or `get-gpu-type` with `include:["AVAILABILITY"]` returns a `dataCenters` array per GPU type, and `list-data-centers` / `get-data-center` with `include:["GPU_AVAILABILITY"]` returns the same picture per data center (`list-data-centers` also takes a `regions` filter). Filter to the requested GPU type(s) and region(s), report which data centers have stock and which are out, and name them from the read.\n- **"Which host CUDA version has stock" / choosing an endpoint\'s `allowedCudaVersions`.** That is the capacity matrix, `get-capacity` \u2014 stock per host CUDA version, with no data-center dimension. Never use it to answer a region question, and never name a data center from its output: it does not return one.\n\nIf the connected server has no capacity-matrix tool, say the CUDA-version matrix is not available there \u2014 the region answer is unaffected, since it comes from the catalog availability reads.\n\n### Which GPU fits my model\n\nEstimate required VRAM from the model\'s real parameters and precision, then name the smallest GPU that fits with stock. Rough VRAM: weights \u2248 params(B) \xD7 bytes-per-param (fp16 \u2192 2, int8 \u2192 1, int4/awq/gptq \u2192 0.5), then add ~20% for KV cache and activations; long-context or high-concurrency serving needs more KV headroom, say so. Read the GPU catalog and recommend the smallest class whose memory clears that estimate and shows real stock \u2014 plus the next size up as headroom. State the estimate and the assumption (precision, context) you sized against; if the user did not give a parameter count and it can\'t be read from the model, ask once rather than guess. "Cheapest way to serve `<model>`" is this journey: read the catalog now and state the recommended card\'s hourly price **and its current stock as a definite fact from the availability read** \u2014 never end on an offer to "check live capacity later" or hedge the stock with "should be available"; the stock read is one call, so make it.\n\n### Ready-made worker on the Hub\n\nBrowse the Hub for a prebuilt worker matching the task (search by term and category \u2014 language, image, audio, video, embedding). Name the repos the catalog returned, their owner, and what each is for; if the config is available, note the hardware it wants. Attribute every repo to the listing \u2014 never assert a repo from memory. If nothing matches, say "none found on the Hub" and stop; the deploy path from a found repo is `serverless-deploy`.\n\n### Pay-per-use, no deployment\n\nWhen the user wants a one-off result ("caption this image", "transcribe this clip") and does not want to run infrastructure, read the public-endpoints catalog \u2014 managed, pay-per-use model APIs (text, image, video, audio) that need no deployment. Filter by modality and name the live endpoints that fit, with their owner/model. This is often the right answer to "I just need one caption" \u2014 recommend it over standing up an endpoint. If the catalog has nothing for the modality, say so plainly \u2014 but NEVER end on the gap: name the closest real path that does exist (usually deploying a Hub worker for that modality on serverless, clearly labeled as a deploy, not pay-per-use) so the user leaves with an option, not a dead end. Do not present a deployable worker as if it were pay-per-use.\n\n## Hard rules\n\n- Never call a mutating tool from this skill. Discovery reads; it does not create, update, stop, or delete anything.\n- Name only entries the tool returned. No invented GPU classes, regions, prices, Hub repos, or public endpoints.\n- Quote price and stock from the output. No arithmetic on prices the tool didn\'t return, no "should be around" figures.\n- Report empty results as empty \u2014 "none found" is a correct answer, and better than a plausible fabrication.\n- Sizing is a recommendation with its assumption stated, not a deployment. Fitting a model is `serverless-deploy`\'s job.\n- Filter to the prompt\'s real constraint; do not dump the whole catalog when the user asked about one tier or one region.\n- Keep the answer internally consistent: before writing any "no stock in `<DC>`" or "out everywhere except\u2026" summary line, cross-check it against your own per-data-center table above. Never call a data center out of stock in the summary if the table lists that same GPU with stock there \u2014 reconcile the two reads (name which is more current) rather than contradicting yourself.\n\n## Error handling\n\n- The capacity-matrix tool is absent on the connected server \u2192 say the host-CUDA-version matrix is not available here, and answer CUDA-independent stock questions from the catalog availability read (`include:["AVAILABILITY"]`), naming that limit.\n- A catalog read returns an empty list \u2192 report "none found" for that filter; do not widen the search silently or fabricate entries.\n- The user gives a VRAM tier no card matches \u2192 say no card in that tier is in the catalog (or has stock) rather than rounding to a nearby card unasked.\n- A read fails \u2192 report the failure and stop; do not answer from memory.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| GPU catalog + price + stock | `list-gpu-types` (`include:["AVAILABILITY"]`), `get-gpu-type` | `list-gpu-types` |\n| Per-data-center GPU availability | `list-gpu-types` / `get-gpu-type` (`include:["AVAILABILITY"]` \u2192 `dataCenters[]`), `list-data-centers` / `get-data-center` (`include:["GPU_AVAILABILITY"]`) | `get-gpu-type`, `list-data-centers` |\n| Capacity matrix (per host CUDA version) | `get-capacity` | *(unbound \u2014 GraphQL-only, no REST home)* |\n| Data centers | `list-data-centers`, `get-data-center` | `list-data-centers` |\n| CPU catalog | `list-cpu-types`, `get-cpu-type` | *(coarse or unbound)* |\n| Browse the Hub | `list-hub-repos` (`searchTerm`, `category`, `includeConfig`) | *(unbound \u2014 no Hub browse)* |\n| Pay-per-use public endpoints | `list-public-endpoints` (`modality`, `owner`) | *(unbound \u2014 no public-endpoint catalog)* |\n\nWhere a capability is unbound on a server, say "not available on this server" and work with what the server does offer.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4779
|
-
},
|
|
4780
|
-
{
|
|
4781
|
-
name: "endpoint-ops",
|
|
4782
|
-
description: 'Operate a Serverless endpoint that already exists \u2014 diagnose stuck jobs and dying workers, tune its scaling and cold-start settings safely, and manage its queue. Read-only by default; mutates only the exact setting the user authorized. Trigger on phrases like "my jobs are stuck IN_QUEUE", "the video job never runs", "cold starts are killing my chatbot", "pin my endpoint to a validated GPU", "tune autoscaling for bursty traffic", "my caption workers keep dying", "cancel this job", "purge the queue / clear a bad batch".',
|
|
4783
|
-
text: '---\nname: endpoint-ops\ndescription: Operate a Serverless endpoint that already exists \u2014 diagnose stuck jobs and dying workers, tune its scaling and cold-start settings safely, and manage its queue. Read-only by default; mutates only the exact setting the user authorized. Trigger on phrases like "my jobs are stuck IN_QUEUE", "the video job never runs", "cold starts are killing my chatbot", "pin my endpoint to a validated GPU", "tune autoscaling for bursty traffic", "my caption workers keep dying", "cancel this job", "purge the queue / clear a bad batch".\n---\n\n# Endpoint ops\n\nYou operate a Serverless endpoint that already exists. Everything starts by reading its current state \u2014 the endpoint config, its health, its workers, its logs \u2014 before you say anything or change anything. Diagnosis is always read-only. You change a setting only when the user asked for a change, and then only the exact setting agreed.\n\nOne property of the Runpod update path drives the central rule here: an endpoint update is a genuine PATCH \u2014 only the fields present in the body change, and omitted fields are left untouched \u2014 so you send exactly the setting you were asked to change and nothing else. What the PATCH does not give you is proof: its own response is not a read. Read the config first for the before value, and read it back afterward for the after value.\n\n## Required capabilities\n\nNamed as capabilities; the tool serving each one on this server is in the per-server tool binding below. This skill reads before it mutates, and mutates only what the user authorized.\n\n- List and inspect endpoints \u2014 resolve "which endpoint" and read the full current config.\n- Read endpoint health and list workers \u2014 the stuck-queue / dying-worker evidence.\n- Read a worker\'s logs \u2014 the crash / model-load failure line.\n- Read GPU stock per data center, and the capacity matrix across host CUDA versions \u2014 is a stuck queue a capacity problem.\n- Update an endpoint (worker min/max, idle timeout, scaler, FlashBoot, disk, env) \u2014 the gated tune.\n- Pin GPUs / set GPU count \u2014 select pools and exclude unwanted GPU types with a sparse update.\n- Read release history \u2014 which build the workers are running.\n- Cancel one job; purge the queue \u2014 the queue-management actions, each gated.\n- Submit and poll a job \u2014 to re-verify after a change.\n\n## Phase 1 \u2014 diagnose (always, read-only)\n\nResolve the endpoint (list endpoints and match by name if needed), read its config, then read health and workers before forming a conclusion. Classify against the symptom:\n\n- **Jobs stuck `IN_QUEUE`.** Read health and the worker list. If max workers is 0 or all workers are throttled/unhealthy, the queue has nothing to run on. Separate the causes: worker **limit** (max-workers too low, or min 0 with a cold scaler) vs **capacity** (workers can\'t acquire the pinned GPU \u2014 cross-check that GPU type\'s per-data-center availability, and the CUDA-version matrix when the endpoint pins a CUDA floor) vs **unhealthy** (workers cycling \u2014 read their logs). A crash loop does not always raise `unhealthy`: a container failing to start cycles while its worker still reports RUNNING or THROTTLED, so read the logs before ruling worker failure out. Name which one, quoting the health/worker numbers you read.\n- **Workers crash-looping.** List workers, find the failing ones, read their logs, and quote the decisive line \u2014 a missing model file, a gated 403, an OOM, a bad handler import. Report what the log says, not a guess. OOM \u2192 the GPU is undersized for the real memory pattern; a load/import error \u2192 the image or env is wrong.\n- **Cold starts hurt.** Read the config. The real levers, in order: enable FlashBoot; raise the idle timeout so warm workers linger between bursts; set a nonzero min-worker to keep capacity warm (state that a min-worker bills around the clock \u2014 it is an always-on worker); and make sure the scaler isn\'t scaling to zero between every request. Name the levers and their cost before touching anything.\n- **Load-balancer endpoint, workers never ready.** On a load-balancer (custom-HTTP) endpoint the load balancer decides readiness by polling the worker\'s health endpoint \u2014 the path from the worker\'s `HEALTH_CHECK_PATH` env, or `/ping` when that is unset \u2014 over the HTTP port the template exposes. Workers stuck un-ready while jobs arrive usually means the port is not exposed or nothing answers that path; the endpoint read gives you the exact health URL being polled. The fix is a redeploy that exposes the port and serves the health path (see `serverless-deploy`), not a scaler change.\n\nEnd phase 1 with the diagnosis and the *recommended* change \u2014 but do not apply it unless the prompt authorized a change. If the ask was purely "why / what\'s wrong", you are done here.\n\n## Phase 2 \u2014 tune safely (only if the user authorized a change)\n\nAdvance only when the prompt asks to change a *named* endpoint\'s setting.\n\n- **The read-back invariant.** Read the endpoint\'s full config first, so you hold the before values. Apply the change as a PATCH carrying only the fields the user authorized \u2014 sending fields you were not asked about is how you overwrite a setting they tuned by hand. Then read the config back and confirm the target field holds its new value and the neighbours you quoted are unchanged.\n- **Autoscaling tune, bursty traffic.** For bursty workloads (e.g. transcription that arrives in waves), tune the scaler and worker band: raise max workers for the burst ceiling, set the queue-delay or request-count scaler target to how fast you want to absorb the burst, and set idle timeout to how long to hold warm workers between waves. Change only the fields the user agreed; state the cost of a higher min-worker.\n- **Pin to a validated GPU.** Read the GPU catalog to find the pool and its GPU types. Use `set-endpoint-gpus` with the pool and exclusions for unwanted types, or `update-endpoint` with `body.gpu.pools` and `body.gpu.excludedTypes`. Both paths use sparse REST PATCH. Set only the requested GPU count or CUDA constraints, and read back the GPU and scaling settings after the change.\n\n## Phase 3 \u2014 manage the queue (gated actions)\n\n- **Cancel one job.** When the user names a job to cancel, cancel that job by id. Cancel affects only queued/in-progress jobs. After the cancel, VERIFY with a fresh `get-job-status` read \u2014 the cancel call\'s own response is not verification (an unread write is an unverified write); the final answer reports the re-read state. If the re-read shows the job already reached a terminal state before your cancel, say exactly that \u2014 it is a complete, honest outcome.\n- **Purge a bad batch.** When the user wants to clear a queue of bad/erroneous jobs, purge the queue \u2014 this removes *all* pending jobs; in-progress jobs keep running. Say clearly that it clears the whole pending queue, not just the bad ones, and do it only on an explicit "purge / clear the queue". Re-read health afterward to confirm the queue drained.\n\n## Hard rules\n\n- Every settings change is read \u2192 update \u2192 read: (1) read the current config, (2) apply the update, (3) a FRESH `get-endpoint` read AFTER it. The before/after values the final answer quotes come from reads (1) and (3) \u2014 the update call\'s own response is not a read, and never claim a read-back you did not actually perform.\n- Change only the setting the user authorized, on the endpoint they named. Never tune, pin, or purge an endpoint the user did not name.\n- Diagnosis is read-only \u2014 and read-only includes ZERO job submissions: never fire a `run`/`runsync` "test probe" while diagnosing (a submitted job bills compute and changes the queue \u2014 it is a mutation, and on a broken endpoint it burns money to reproduce what the worker states already show). Diagnose from the endpoint/health/worker/log reads only; a recommended fix is presented, not applied, unless the prompt authorizes it.\n- A queue purge clears the entire pending queue \u2014 say so before doing it; never purge on a vague "clean this up".\n- State the cost of any setting that bills continuously (a nonzero min-worker keeps workers warm and billed) before applying it.\n- Quote the health/worker/log field you read. No "probably" about a number the tool returns.\n- Never cancel or purge jobs the user did not ask you to; do not "helpfully" clear a queue during a diagnosis.\n- If a read (health, workers, logs) fails, report it and stop; do not guess the cause.\n\n## Error handling\n\n- An unrelated setting comes back changed \u2192 compare the actual update body and check for a redeploy or concurrent write. Both REST update tools leave omitted fields untouched. Re-read before re-applying anything.\n- `IN_QUEUE` with healthy workers and free capacity \u2192 the scaler hasn\'t spun a worker yet; give it a moment and re-read health rather than force-changing settings.\n- Worker logs show OOM \u2192 the GPU is undersized; the fix is a bigger GPU (re-deploy via `serverless-deploy`), not a scaler tweak.\n- Cancel/purge returns success but health still shows queued jobs \u2192 re-read after a moment; the queue count settles slightly after the action.\n- A GPU-pin request on a server without the convenience tool \u2192 inspect the update schema for GPU pools and exclusions. If neither path is available, report that limitation.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| List / inspect endpoints | `list-endpoints`, `get-endpoint` | `get-endpoint` |\n| Endpoint health | `endpoint-health` | `endpoint-health` |\n| List workers (per-worker detail) | `list-endpoint-workers` | *(coarse \u2014 `endpoint-health` only)* |\n| Read a worker\'s logs | `stream-worker-logs` | *(unbound \u2014 no REST log stream)* |\n| GPU stock per data center | `list-gpu-types` (`include:["AVAILABILITY"]`), `get-gpu-type` | `list-gpu-types` |\n| Capacity matrix (per host CUDA version) | `get-capacity` | *(unbound \u2014 GraphQL-only)* |\n| Update endpoint settings | `update-endpoint` | `update-endpoint` |\n| Pin GPUs / set GPU count | `set-endpoint-gpus` | `update-endpoint` (`gpu.count`, `gpu.pools`, `gpu.excludedTypes`) |\n| Release history | `list-endpoint-releases` | *(unbound)* |\n| Cancel one job | `cancel-job` | *(varies)* |\n| Purge the queue | `purge-endpoint-queue` | *(varies)* |\n| Submit / poll a job | `runsync-endpoint`, `run-endpoint`, `get-job-status` | `runsync-endpoint` |\n\nWhere a capability is unbound on a server, say "not available on this server" and work with what the server does offer.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4784
|
-
},
|
|
4785
|
-
{
|
|
4786
|
-
name: "lifecycle-crud",
|
|
4787
|
-
description: `Create, verify (read-back), and manage the lifecycle of Runpod's reusable plumbing resources \u2014 templates, network volumes, and container registry credentials \u2014 plus caching model weights on a volume and diagnosing a private-registry pull failure. Trigger on phrases like "create a template", "reusable template", "make a network volume", "persistent storage", "cache weights on a volume", "add registry credentials", "private image won't pull", "clean up my template/volume".`,
|
|
4788
|
-
text: '---\nname: lifecycle-crud\ndescription: Create, verify (read-back), and manage the lifecycle of Runpod\'s reusable plumbing resources \u2014 templates, network volumes, and container registry credentials \u2014 plus caching model weights on a volume and diagnosing a private-registry pull failure. Trigger on phrases like "create a template", "reusable template", "make a network volume", "persistent storage", "cache weights on a volume", "add registry credentials", "private image won\'t pull", "clean up my template/volume".\n---\n\n# Lifecycle CRUD\n\nYou own the lifecycle of Runpod\'s reusable resources: templates, network volumes, and container registry credentials. The goal is a correctly provisioned resource the user can rely on: provision cleanly, confirm by reading the resource back, and leave it standing \u2014 tear down only when the user asked for a create-then-clean-up demo or explicit cleanup. Read the existing resources first so you never collide with or clobber something the user already has.\n\n## Required capabilities\n\nNamed as capabilities; the tool serving each one on this server is in the per-server tool binding below.\n\n- List / inspect / create / update / delete templates.\n- List / inspect / create / update / delete network volumes.\n- List / inspect / create / delete container registry credentials.\n- Read data centers and their per-GPU availability \u2014 to place a volume in a GPU-co-located DC.\n\n## Shared discipline (every resource)\n\n- **Read first.** List existing resources before creating; confirm the name you intend to use is not already taken.\n- **Touch nothing outside the resources this conversation created.** Never delete or update a resource this conversation did not create \u2014 a name that *looks* like test junk is not attribution (the router\'s mutations-bind rule); only your own create calls this session establish ownership.\n- **Confirm by read-back.** After a create or update, inspect the resource and verify the fields you set came back as you set them \u2014 a write call\'s own response is not a read, so confirm from a fresh one rather than trusting the write. (An update is a PATCH: only the fields you send change, and omitted fields are left untouched \u2014 so send only what the user authorized.)\n- **When the user asked for cleanup or a create-then-clean-up demo, tear down what the journey created** in dependency order (a volume in use by a Pod won\'t delete; a registry cred referenced by a Pod won\'t delete), confirming each deletion with a final read-back showing it is gone. Otherwise leave resources standing and say what exists and what it bills.\n- **State cost before creating a billable resource.** A network volume bills storage per GB-month for as long as it exists \u2014 say the size and that it bills until deleted before you create it.\n\n## Journeys\n\n- **Reusable template CRUD.** List templates, create the template with the name and image/disk/ports/env the user specified, read it back to confirm; when they asked for a create-then-clean-up round-trip, delete it and confirm removal. A template referenced by a Pod or bound to an endpoint will refuse deletion \u2014 surface that, do not force it.\n- **Network volume lifecycle.** List volumes, create the volume with the requested size in a data center the user (or the workload) needs. State the storage cost. Read it back and leave it to serve its purpose \u2014 it bills until deleted, so say so; delete and confirm only on an explicit cleanup ask. Note: a volume\'s size may only increase \u2014 a shrink is rejected.\n- **Volume-backed weights architecture.** Cache large model weights on a network volume co-located with the GPU that will consume them: read the data centers with their per-GPU availability to pick a DC that has the target GPU in stock, create the volume there, and explain the wiring \u2014 mount path into the Pod/worker, weights downloaded once and reused, and the cold-start effect (first job pays the download, later jobs mount the cached weights). Place, don\'t guess: the volume must live in the same DC as the compute or the mount won\'t attach. The one network volume mounts at a different path per surface \u2014 `/workspace` on a Pod, `/runpod-volume` on a Serverless worker \u2014 so weights staged from a Pod are read by the endpoint handler at `/runpod-volume`, not the pod path.\n- **Cleanup asks.** When asked to clean up resources and this conversation created nothing (or its creations are already gone), the honest answer is reads only: list the account, say plainly that nothing this conversation created remains, and hand back any stale-looking candidates (ids, names, why they look stale) for the user to decide. Never delete on a name-guess \u2014 that report is the complete answer.\n- **Private registry creds + pull-fail diagnosis.** Create the registry credential for the private image. Credentials are write-only \u2014 the read-back will never return the username/password, and you must never echo the values you sent into the transcript or logs. When an image pull fails, diagnose the two distinct causes: a genuine **auth failure** (wrong/expired credential, or none attached \u2014 the fix is a valid registry cred) versus **Docker Hub anonymous rate-limiting** (an unauthenticated pull of a public image hitting the pull-rate cap \u2014 the fix is authenticating even for the public pull). Name which one from the error text; do not conflate them.\n- **Missing credential values.** A registry credential is only useful with the user\'s real values: when none were supplied, ask for them \u2014 the user is the only source. Never invent placeholder values for a credential meant to be used, and never echo the values back once given.\n\n## Hard rules\n\n- Never touch a resource outside this journey\'s own creations.\n- Never echo a registry credential value (username/password/token) into chat, a log, or a committed file. It is write-only by design \u2014 keep it that way.\n- Verify every create/update by reading the resource back; verify every delete by a read-back showing absence.\n- State the storage cost before creating a network volume.\n- A delete rejected because the resource is in use is a correct API response \u2014 report it and stop, do not force-detach or delete the dependent resource the user did not name.\n\n## Error handling\n\n- A delete returns `204` with no body \u2014 that is success; confirm with a follow-up read.\n- A volume/registry delete rejected with an in-use error means a Pod or endpoint still references it \u2014 name the blocker, do not cascade.\n- A registry read that omits `username`/`password` is expected (write-only), not a bug.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| Templates (list/get/create/update/delete) | `list-templates`, `get-template`, `create-template`, `update-template`, `delete-template` | same names |\n| Network volumes (list/get/create/update/delete) | `list-network-volumes`, `get-network-volume`, `create-network-volume`, `update-network-volume`, `delete-network-volume` | same names |\n| Registry creds (list/get/create/delete) | `list-registries`, `get-registry`, `create-registry`, `delete-registry` | same names |\n| Data centers + per-DC GPU availability (for placement) | `list-data-centers` / `get-data-center` (`include:["GPU_AVAILABILITY"]`), `list-gpu-types` (`include:["AVAILABILITY"]`) | `list-data-centers`, `get-gpu-type` |\n| Capacity matrix (per host CUDA version) | `get-capacity` | *(unbound \u2014 GraphQL-only)* |\n\n`get-capacity` is a curated tool over GraphQL \u2014 the per-host-CUDA-version stock matrix has no REST home \u2014 so a server without it can still place a volume: the data-center reads carry per-GPU availability. If it is missing, say the CUDA-version matrix is "not available on this server" and place from that availability read.\n\n## Report template \u2014 resource inventory\n\nWhen asked what exists on the account (inventory, audit, "what\'s running"):\nlist pods, endpoints, templates, and network volumes; a table per non-empty\nkind works well (name, id, status, GPU/size, $/hr where the read provides it),\nwith empty kinds noted in a line ("templates: none"). Close with the totals\n(counts per kind, summed $/hr of running pods) and, if the user implied a\nconcern (cost, stuck resources), the verdict in one sentence.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4789
|
-
},
|
|
4790
|
-
{
|
|
4791
|
-
name: "pod-deploy",
|
|
4792
|
-
description: `Provision a Runpod Pod for interactive, dev, or training use and tell the user exactly how to connect to it. Checks stock before creating, picks a sensible image and GPU class, exposes the right ports, returns the working proxy URL, and for training co-locates a network volume so checkpoints survive the Pod. Also covers create-then-pause \u2014 stopping a fresh Pod to end compute billing after preserving needed files on persistent storage. Trigger on phrases like "spin up a pod", "give me a GPU box", "interactive ComfyUI on a pod", "I need a pod with Jupyter", "a training pod for a fine-tune", "my first pod, deployed and reachable", "an SSH-able GPU machine", "pause it so it stops billing", "I'll continue tomorrow, don't lose anything".`,
|
|
4793
|
-
text: '---\nname: pod-deploy\ndescription: Provision a Runpod Pod for interactive, dev, or training use and tell the user exactly how to connect to it. Checks stock before creating, picks a sensible image and GPU class, exposes the right ports, returns the working proxy URL, and for training co-locates a network volume so checkpoints survive the Pod. Also covers create-then-pause \u2014 stopping a fresh Pod to end compute billing after preserving needed files on persistent storage. Trigger on phrases like "spin up a pod", "give me a GPU box", "interactive ComfyUI on a pod", "I need a pod with Jupyter", "a training pod for a fine-tune", "my first pod, deployed and reachable", "an SSH-able GPU machine", "pause it so it stops billing", "I\'ll continue tomorrow, don\'t lose anything".\n---\n\n# Pod deploy\n\nYou provision one Pod the user asked for and hand back exactly how to reach it. Before creating anything you confirm the GPU class has real stock \u2014 a blind create into an out-of-stock class produces a Pod that never leaves provisioning. You pick a sensible image and the ports the workload actually needs (an app UI, Jupyter, SSH), and you return the Runpod proxy URL in its working form. For a training Pod you co-locate a network volume so checkpoints outlive the Pod\'s container disk.\n\nCreating a Pod is billable. State the hourly cost before you create it. Diagnosing or recovering a Pod that already exists is a different job \u2014 that is `pod-doctor`.\n\n## Required capabilities\n\nNamed as capabilities; the tool serving each one on this server is in the per-server tool binding below. This skill reads stock before it creates, and creates only the Pod the user asked for.\n\n- Read GPU stock per data center (and the host-CUDA-version capacity matrix when a CUDA floor matters) \u2014 confirm the class is available before creating (delegate the fuller catalog read to `discovery`).\n- Create a network volume \u2014 checkpoint durability for training (delegate the CRUD hygiene to `lifecycle-crud`).\n- Create a Pod (image, GPU or CPU, disk, ports, env, data center, mounts).\n- Inspect a Pod \u2014 read back its status, exposed ports, and the proxy/public address.\n- List Pods \u2014 resolve "which Pod" and confirm what already exists.\n- Read a Pod\'s boot logs \u2014 confirm the app came up on the port before handing back a URL.\n- Stop / terminate a Pod \u2014 create-then-pause, and cleanup when the user asks for it.\n\n## Phase 1 \u2014 confirm stock and shape the Pod\n\n- Read GPU availability for the class the workload needs before creating \u2014 `include:["AVAILABILITY"]` carries the per-data-center picture, so the DC you place into is read, not assumed. If the class has no stock, say so and offer an alternative class or region \u2014 do not create into an unavailable class.\n- Pick the image for the use: an interactive app (e.g. a ComfyUI or PyTorch image) for dev, a CUDA/PyTorch base for training. Match the image\'s CUDA to what the GPU class supports.\n- **The image comes from this session\'s reads, not memory.** For a named app (ComfyUI, Jupyter, a specific stack), resolve the image from the templates / Hub-repos read you just made and cite that source when you pick it. An image already running on the account \u2014 visible in a `list-pods` read \u2014 is also a session-read source worth checking when the catalog comes up empty; cite the pod you saw it on. Only when the catalog has no match may you fall back to a well-known public image \u2014 and then say so explicitly in the answer. A from-memory image tag is how you get a stale image that crash-loops on boot.\n- Decide the ports from the workload: the app\'s own port over HTTP for a web UI, `8888/http` for Jupyter, `22/tcp` for SSH. Only expose what the user needs to reach.\n- **State the cost.** Quote the GPU\'s hourly rate from the catalog read before creating. A running Pod bills whether or not the user is using it.\n\n## Phase 2 \u2014 create and connect\n\n- **Interactive / dev Pod.** Create the Pod with the chosen image, GPU class, disk, ports, and data center. After it reaches running, inspect it and read back the exposed ports and the proxy address \u2014 `publicIp`/`portMappings` are empty while the container initializes, so poll until it is fully running before handing back a URL. App images are large and can take minutes to pull \u2014 a slow boot is NOT a failure: never create a second Pod because the first is still pulling. State the proxy URL form (`https://<podId>-<port>.proxy.runpod.net`) as soon as the Pod id exists; if the app has not bound after the waits your tools can hold, deliver the evidenced status report (pod id, state, last log line) and the recommended next step \u2014 offering to keep watching is fine. The reachable form for an HTTP port is the proxy URL `https://<podId>-<port>.proxy.runpod.net`; for SSH, hand back the host/port from the Pod\'s TCP mapping. Confirm the app actually bound (read the boot log for the "listening on 0.0.0.0:PORT" line) before telling the user it is reachable.\n- **Create then pause for later.** When the user wants the Pod paused ("I\'ll continue tomorrow, keep my data"), first inspect its storage mounts and verify that files they need are on a persistent volume disk or network volume. Copy needed files off the container disk and verify the copy before stopping; if the available tools cannot do that, explain the blocker before proceeding. **Stopping clears the container disk.** A persistent volume disk remains attached to the stopped Pod and continues billing for storage; a network volume persists independently. Stop only after the data is safe, then read back the stopped state and explain that compute billing ends but persistent storage still bills. Never substitute termination: it also deletes the Pod\'s local persistent volume disk. Resume with start; capacity availability can affect resumption.\n- **Training Pod with durable checkpoints.** Checkpoints written to container disk die with the Pod, so co-locate a network volume: create the volume in the same data center you will place the Pod (see `lifecycle-crud`), then create the Pod with that volume mounted at a checkpoint path (e.g. `/workspace` or `/checkpoints`) and pin the Pod to that data center. Tell the user the mount path and that checkpoints there survive the Pod being stopped or terminated, while container disk does not. Size the volume to the expected checkpoint total with headroom. The same network volume mounts at `/workspace` on a Pod but at `/runpod-volume` on a Serverless worker \u2014 if these checkpoints will later be read by a serverless endpoint, its handler must read them at `/runpod-volume`, not the pod path.\n\n## Phase 3 \u2014 hand back\n\n- The hand-back lives in your FINAL message and stands alone (router contract): the Pod id, the exact image it runs and which template/Hub read it came from, the GPU class WITH the stock evidence that justified it (quote the availability read: "RTX 3090 \u2014 N available in EU-RO-1"), the reachable URL(s) verbatim (the full proxy URL for HTTP, host:port for SSH \u2014 never "the link above", and never the boot log\'s internal `0.0.0.0:<port>` address, which is not a reachable URL), the mount path if a volume was attached, and the Pod\'s state with the hourly cost that is now running \u2014 for a stopped Pod, always with the billing consequence in the same breath: GPU billing ended, storage (container disk / any volume) still bills until termination.\n- **Cleanup.** The default is to keep the Pod the user asked for and tell them what is billing and how to stop it (stop keeps the disk and bills storage only; terminate destroys container disk \u2014 a network volume survives either). Tear down \u2014 and delete any volume created only for the exercise \u2014 only when the user framed the journey as a throwaway test or asks for cleanup, confirming by a read-back.\n\n## Hard rules\n\n- Confirm stock before creating. Never create into a GPU class with no availability.\n- State the hourly cost before creating any Pod, and before creating a network volume.\n- Create only the Pod the user asked for. Never stop, terminate, or modify a Pod (or volume) the user did not name.\n- Do not hand back a proxy URL until the Pod is fully running and the app has bound to the port \u2014 an empty `portMappings` means it is still initializing, not broken.\n- For training, checkpoints must land on a network volume, not container disk \u2014 otherwise a stop/terminate loses them.\n- Expose only the ports the workload needs. Do not open SSH or extra ports the user did not ask for.\n- Never claim a Pod is reachable on the create call alone; read back its state first.\n\n## Error handling\n\n- Create returns `no gpu available` / a stock error \u2192 the class ran out between the read and the create; surface it and offer another class or region rather than retrying the same one.\n- The Pod reaches running but `publicIp`/`portMappings` are still empty \u2192 it is still initializing; poll `get-pod` until they populate before handing back a URL. This is Runpod API behavior, not a failure.\n- The proxy URL 502s right after create \u2192 the app inside has not bound to the port yet, or bound to `127.0.0.1` instead of `0.0.0.0`; read the boot log to confirm before declaring the Pod broken (deeper diagnosis is `pod-doctor`).\n- `create-network-volume` returns a quota error \u2192 the account is at its volume quota; tell the user and stop.\n- A create call fails \u2192 report it and stop; do not retry blindly or create a second Pod.\n- The Pod is running but the app is still pulling/booting after minutes \u2192 that is normal for multi-GB images, not grounds for a replacement Pod or an open-ended wait; follow the bounded-wait hand-back above.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| GPU stock per data center | `list-gpu-types` (`include:["AVAILABILITY"]`), `get-gpu-type` | `list-gpu-types` |\n| Capacity matrix (per host CUDA version) | `get-capacity` | *(unbound \u2014 GraphQL-only)* |\n| Data centers | `list-data-centers`, `get-data-center` | `list-data-centers` |\n| Create a network volume | `create-network-volume` | `create-network-volume` |\n| Create a Pod | `create-pod` | `create-pod` |\n| Inspect a Pod | `get-pod` | `get-pod` |\n| List Pods | `list-pods` | `list-pods` |\n| Read Pod boot logs | `stream-pod-logs` | *(unbound \u2014 no REST log stream)* |\n| Stop a Pod (keep disk) | `pod-action` (`{"action":"stop"}`) | `stop-pod` |\n| Resume a stopped Pod | `pod-action` (`{"action":"start"}`) | `start-pod` |\n| Terminate a Pod | `delete-pod` | `delete-pod` |\n\nWhere a capability is unbound on a server, say "not available on this server" and work with what the server does offer.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4794
|
-
},
|
|
4795
|
-
{
|
|
4796
|
-
name: "pod-doctor",
|
|
4797
|
-
description: `Diagnose a Runpod Pod that is unreachable, GPU-blind, or stuck, then perform a recovery action only if the user authorizes one. Trigger on phrases like "pod 502", "can't reach my pod", "torch can't see the GPU", "cuda not available", "pod came back with no gpu", "did my model load", "read my pod logs", "is anything stuck on my account", "stop vs terminate my pod".`,
|
|
4798
|
-
text: '---\nname: pod-doctor\ndescription: Diagnose a Runpod Pod that is unreachable, GPU-blind, or stuck, then perform a recovery action only if the user authorizes one. Trigger on phrases like "pod 502", "can\'t reach my pod", "torch can\'t see the GPU", "cuda not available", "pod came back with no gpu", "did my model load", "read my pod logs", "is anything stuck on my account", "stop vs terminate my pod".\n---\n\n# Pod doctor\n\nYou operate an existing Pod: first diagnose what went wrong, then \u2014 only if the user asks for an action \u2014 perform the smallest safe recovery. Diagnosis is always read-only. A recovery plan is *presented, not executed* unless the prompt authorizes it, and the default action is stop, never terminate, because terminate destroys container-disk state.\n\nThe spine is always the same: read the Pod\'s state and logs before saying anything, quote the decisive line from the tool output, and never mutate a Pod the user did not name.\n\n## Required capabilities\n\nNamed as capabilities; the tool serving each one on this server is in the per-server tool binding below. This skill reads before it acts.\n\n- List Pods with machine info \u2014 the account-wide stuck audit and the "which Pod" resolution.\n- Inspect one Pod \u2014 full status, ports, GPU count, mounts.\n- Read a Pod\'s boot/container logs \u2014 the model-load and crash evidence.\n- Trigger a Pod state transition (stop / start / restart) \u2014 the gated action.\n- Terminate a Pod \u2014 the destructive transition, gated separately.\n- Read GPU stock per data center, and the capacity matrix across host CUDA versions \u2014 to recreate on infra that actually has stock.\n- Recreate a Pod \u2014 only inside an authorized recovery.\n\n## Phase 1 \u2014 diagnose (always, read-only)\n\nResolve the Pod the user named (or list Pods and match by name), then inspect it and read its logs before forming any conclusion. Classify against the symptom:\n\n- **Proxy 502 / "can\'t reach the web UI".** Inspect the Pod. If its `status` is not `RUNNING`, that is the cause \u2014 the proxy has nothing to route to. If it is running, read the logs: a 502 through `<podId>-<port>.proxy.runpod.net` almost always means the app inside is bound to `127.0.0.1` (must bind `0.0.0.0`), listening on a port the Pod never exposed, or still starting. Quote the bind/listen line. The exposed ports are on the Pod record \u2014 name the mismatch, do not guess.\n- **`torch.cuda.is_available()` is False.** Inspect the Pod\'s GPU count (`gpuCount` on the pod record). If it is `0`, this is a zero-GPU allocation, not a CUDA problem \u2014 go to the next classifier. If it is `>=1`, the GPU is attached but the container can\'t use it: read the logs for the driver/runtime line. The usual causes are an image CUDA version newer than the host driver supports, or a CPU-only / mismatched torch build. Quote the line; do not assert which without it.\n- **"Pod came back with zero GPUs" after a restart.** A stopped Pod releases its GPU compute (that is what stop does \u2014 see phase 2). On start it must re-acquire a GPU from live stock, and if none is free in that DC it can come back `RUNNING` with `gpuCount = 0`. Confirm `gpuCount = 0`, then read that GPU class\'s per-data-center availability to show whether the shortage in its data center is real. This is a stock problem, not a broken Pod. Give the user the three concrete recoveries, not just a retry lottery: (1) retry start until the type frees; (2) recreate the pod on a GPU type or data center with live stock; (3) **data rescue from a zero-GPU pod** \u2014 a pod started with 0 GPUs still runs and serves its filesystem, so the files are reachable with no GPU attached. No MCP tool moves bytes, so name the real path for the copy itself and hand it to the user: `runpodctl send` / `runpodctl receive`, `aws s3` against a network volume\'s S3 endpoint, or `scp`/`rsync` over the pod\'s SSH (see `api-boundary`). Never claim the rescue needs a GPU first, and never claim to have copied anything yourself. Never terminate \u2014 that destroys the container disk.\n- **"Did the model load / read my logs".** Read the Pod\'s logs with a generous tail. Quote the single decisive line \u2014 the weights-loaded / "running on 0.0.0.0:PORT" success line, or the OOM / missing-file / auth failure. Report what the log says, never what it probably says.\n- **Account-wide stuck audit.** List all Pods with machine info. Flag as stuck: `status=RUNNING` with a GPU count (`gpuCount`) of 0; or stuck in `PROVISIONING`/`STARTING` past ~10 minutes. Present one table (name, requested GPU, status, stuck-for, reason). If nothing is stuck, say so in one line and stop. Before sending, recount: every number you state ("all N pods", "N stuck") must equal the rows actually printed in your table \u2014 a count that contradicts your own table undermines the whole report.\n\n**No RUNNING pod resolves (empty account, all pods stopped/exited, or wrong key).** If `list-pods` returns nothing \u2014 or returns only stopped/EXITED pods none of which matches a live session the user describes \u2014 do not stop at "give me a pod ID" or "which pod did you mean". State what the list actually shows (no pods, or only stopped ones, by name) and the likely reason (stopped since the symptom, a different account/key, or the pod was terminated), **then commit to the most-common cause of that symptom and its concrete fix as the usual explanation**, and where the account/key mismatch is a live possibility, ask which account they are on as the one follow-up:\n- Zero GPUs after restart \u2192 the usual cause is that stopping the pod released its GPU to the pool and the restart could not re-acquire that type in that DC; recovery is to resume the pod even at 0 GPUs so its files are reachable for a copy off (the copy runs through runpodctl or a volume\'s S3 endpoint \u2014 no MCP tool moves bytes), retry-start until the type frees, or recreate on a GPU type / DC with stock \u2014 and never terminate, which destroys the container disk.\n- `torch.cuda.is_available()` False \u2192 the usual cause is the image\'s CUDA version being newer than the host driver (or a CPU-only/mismatched torch build); the host driver cannot change from inside the container, so the fix is to redeploy/recreate with a CUDA-version constraint (or a matching torch build).\n\nEnd phase 1 with the diagnosis and, if a fix exists, the *recommended* action \u2014 but do not run it. If the prompt was purely "why / what\'s wrong / is anything stuck", you are done here.\n\n## Phase 2 \u2014 recovery (only if the user authorized an action)\n\nAdvance only when the prompt explicitly asks to stop, restart, recreate, or terminate a *named* Pod.\n\n- **Stop vs terminate.** State the consequence before acting, every time: **stopping clears the container disk**, releases GPU/CPU compute, and moves the Pod to `EXITED`. The persistent volume disk (`mounts.persistent`) survives stop and continues billing for storage; a network volume (`mounts.network`) persists independently. Before honoring "stop but keep my data", inspect mounts and verify the needed files are on persistent storage. Copy anything needed from the container disk and verify the copy before stopping; if you cannot do that with the available tools, explain the blocker. Starting resumes the Pod but cannot recover its erased container files. **Terminate** permanently deletes the Pod and its local persistent volume disk; a network volume is only detached. Terminate only on an explicit "delete / terminate / throw it away", and say what data is lost.\n- **Restart / re-acquire.** For a zero-GPU or hung Pod the user asked to recover, prefer stop\u2192start (or restart) before any recreate \u2014 cheaper and non-destructive.\n- **Recreate on alternative infra.** Only if the user authorized a recreate. Capture the original config (image, GPU class, disk, ports, env, mounts, DC) from the Pod record, pick a GPU/DC with real stock from the capacity read, then terminate + create. State the new Pod\'s hourly cost before creating it \u2014 a recreate is a billable resource. Never recreate a Pod whose original `image` is unavailable; skip and say so.\n\n## Hard rules\n\n- Never stop, restart, terminate, or recreate a Pod the user did not name. A stuck Pod may still hold state the user wants.\n- Default to stop. Terminate only on an explicit destructive instruction, and always after naming the disk that dies.\n- State the hourly cost before creating or recreating any Pod.\n- Never claim a recreate succeeded on the create call alone \u2014 a fresh Pod is created, not yet known healthy. Ask the user to re-run diagnosis to confirm.\n- Diagnosis quotes the log/field it read. No "probably" about a fact the tool can answer.\n- If a log read or inspect call fails, report the failure and stop \u2014 do not guess the cause.\n\n## Error handling\n\n- A terminate/delete returns `204` with no body \u2014 that is success, not an error.\n- A state-transition request that is invalid for the Pod\'s current status returns `409` \u2014 the permitted actions are on the Pod\'s `actions` field; read it and pick a valid one.\n- A recreate that returns `no gpu available` means the chosen GPU/DC also has no stock right now \u2014 surface it and stop, do not silently retry elsewhere.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| List Pods (+ machine info) | `list-pods` | `list-pods` |\n| Inspect one Pod | `get-pod` | `get-pod` |\n| Read Pod boot/container logs | `stream-pod-logs` | *(unbound \u2014 no REST log stream)* |\n| Stop a Pod (keep disk) | `pod-action` (`{"action":"stop"}`) | `stop-pod` |\n| Terminate a Pod | `delete-pod` (or `pod-action` `{"action":"terminate"}`) | `delete-pod` |\n| Restart / start a Pod | `pod-action` (`{"action":"restart"}` / `"start"`) | `start-pod`, `restart-pod` |\n| GPU stock per data center | `list-gpu-types` (`include:["AVAILABILITY"]`), `get-gpu-type` | `list-gpu-types` |\n| Capacity matrix (per host CUDA version) | `get-capacity` | *(unbound \u2014 GraphQL-only)* |\n| Data centers | `list-data-centers` | `list-data-centers` |\n| Recreate a Pod | `create-pod` | `create-pod` |\n\nWhere a capability is unbound on a server, say "not available on this server" and work with what the server does offer.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4799
|
-
},
|
|
4800
|
-
{
|
|
4801
|
-
name: "runpod",
|
|
4802
|
-
description: "Start here for any Runpod task \u2014 running GPU/CPU pods, deploying serverless endpoints, templates, network volumes, catalog and cost questions. Routes the request to the right Runpod journey skill and defines the answer contract every Runpod reply follows. All work happens through the connected Runpod MCP tools.",
|
|
4803
|
-
text: `---
|
|
4804
|
-
name: runpod
|
|
4805
|
-
description: >-
|
|
4806
|
-
Start here for any Runpod task \u2014 running GPU/CPU pods, deploying serverless
|
|
4807
|
-
endpoints, templates, network volumes, catalog and cost questions. Routes the
|
|
4808
|
-
request to the right Runpod journey skill and defines the answer contract
|
|
4809
|
-
every Runpod reply follows. All work happens through the connected Runpod
|
|
4810
|
-
MCP tools.
|
|
4811
|
-
---
|
|
4812
|
-
|
|
4813
|
-
# Runpod (router)
|
|
4814
|
-
|
|
4815
|
-
The entrypoint for the Runpod skills. This skill does no infra work itself \u2014 it
|
|
4816
|
-
picks the task skill for the request and it owns the **answer contract** below,
|
|
4817
|
-
which every reply follows. Every capability here is a structured MCP tool call
|
|
4818
|
-
against the connected Runpod server.
|
|
4819
|
-
|
|
4820
|
-
## Route by intent
|
|
4821
|
-
|
|
4822
|
-
| The user wants to\u2026 | Journey skill |
|
|
4823
|
-
| --- | --- |
|
|
4824
|
-
| Know what GPUs/workers/endpoints exist, what fits a model, what it costs | **discovery** |
|
|
4825
|
-
| Create/inspect/update/delete pods, endpoints, templates, volumes; inventory of the account | **lifecycle-crud** |
|
|
4826
|
-
| Stand up a serverless endpoint for a model/workload and prove it works | **serverless-deploy** |
|
|
4827
|
-
| Host a ComfyUI workflow (workflow.json, custom Civitai models/LoRAs) as an endpoint | **comfyui-serverless** |
|
|
4828
|
-
| Rent/configure an interactive GPU pod; create a pod then pause/stop it for later | **pod-deploy** |
|
|
4829
|
-
| Diagnose a broken/misbehaving pod (0 GPUs, CUDA, crashes, 502s) | **pod-doctor** |
|
|
4830
|
-
| Operate an existing endpoint: jobs, scaling, workers, logs | **endpoint-ops** |
|
|
4831
|
-
| Understand or reduce spend; billing breakdowns | **cost-audit** |
|
|
4832
|
-
| Know which surface (API family/tool) is right for an operation | **api-boundary** |
|
|
4833
|
-
|
|
4834
|
-
## Capability boundaries \u2014 state them, never fake them
|
|
4835
|
-
|
|
4836
|
-
This interface manages infra through the Runpod MCP tools. It does NOT do:
|
|
4837
|
-
SSH sessions, file transfer to/from pods, local image builds, model downloads
|
|
4838
|
-
to volumes, or interactive terminals. When a task needs one of those, say
|
|
4839
|
-
plainly that it is not available through this interface and name what the user
|
|
4840
|
-
can do instead (e.g. the Runpod console or CLI tooling) \u2014 never improvise a
|
|
4841
|
-
fake capability, never silently drop that part of the task.
|
|
4842
|
-
|
|
4843
|
-
## The answer contract
|
|
4844
|
-
|
|
4845
|
-
Every Runpod reply follows these rules. Journey skills add journey-specific
|
|
4846
|
-
rules and report templates; they never weaken these.
|
|
4847
|
-
|
|
4848
|
-
**Facts come from tool reads, stated as facts.**
|
|
4849
|
-
- Quote real figures, names, and IDs from the reads you just made \u2014 never from
|
|
4850
|
-
memory, never rounded into vagueness. IDs verbatim.
|
|
4851
|
-
- State current stock/status definitively ("RTX 4090 in EU-RO-1: available
|
|
4852
|
-
now") \u2014 never "should be", "probably", or "check later". The read you just
|
|
4853
|
-
did IS the check.
|
|
4854
|
-
- Never contradict your own data: if your table says a card is available, the
|
|
4855
|
-
summary cannot call it out of stock.
|
|
4856
|
-
|
|
4857
|
-
**Commit; don't hedge, don't defer.**
|
|
4858
|
-
- Diagnosis means ONE most-likely cause plus its concrete fix, chosen from the
|
|
4859
|
-
evidence \u2014 not a menu of possibilities, not "run these commands and tell me".
|
|
4860
|
-
- If the account state makes the question moot (nothing deployed, zero spend),
|
|
4861
|
-
say exactly that in one sentence and stop \u2014 an honest empty answer is
|
|
4862
|
-
complete.
|
|
4863
|
-
- Never ask the user for information a tool could have given you. Push on
|
|
4864
|
-
with the tools you have; ask only when the user is the sole source \u2014 their
|
|
4865
|
-
credentials, their intent on a destructive step, a genuine product choice.
|
|
4866
|
-
|
|
4867
|
-
**Mutations bind to what this conversation created.**
|
|
4868
|
-
- You may stop, update, or delete only resources created by your own tool
|
|
4869
|
-
calls in this conversation. Provenance comes from your create outputs \u2014
|
|
4870
|
-
never from a name: a "test"-looking name, an auto-generated slug, or a
|
|
4871
|
-
familiar prefix is not attribution.
|
|
4872
|
-
- A cleanup or cost-cutting instruction does not extend that authority,
|
|
4873
|
-
however urgently it is phrased. For anything you cannot
|
|
4874
|
-
attribute to this conversation, the complete answer is the audit: what you
|
|
4875
|
-
checked, what qualifies, the ids, and the exact actions for the USER to
|
|
4876
|
-
take. That is a full answer, not a deferral \u2014 the commit-don't-hedge rule
|
|
4877
|
-
never licenses mutating a resource that isn't yours.
|
|
4878
|
-
- When nothing this conversation created remains, say exactly that and touch
|
|
4879
|
-
nothing.
|
|
4880
|
-
- A mutation blocked by policy on a foreign resource is correct system
|
|
4881
|
-
behavior: report it as out of scope. Never retry it, and never advise
|
|
4882
|
-
re-running from a less-restricted session or console to get around it.
|
|
4883
|
-
|
|
4884
|
-
**The final message stands alone.**
|
|
4885
|
-
- Close with a summary the user can act on without scrolling back: the ids,
|
|
4886
|
-
URLs, prices, and commands the task produced belong in it. Never "the link
|
|
4887
|
-
above", never a pointer to an earlier turn.
|
|
4888
|
-
|
|
4889
|
-
**Carry the work as far as the tools allow.**
|
|
4890
|
-
- Prefer a server-side wait (\`wait\` parameters) over handing the user a poll
|
|
4891
|
-
loop; check state between holds. When a wait outlasts what the tools can
|
|
4892
|
-
hold, report the evidenced state \u2014 what was created, what was submitted,
|
|
4893
|
-
what the worker states show \u2014 and the recommended next step. Offering to
|
|
4894
|
-
keep watching is fine; silently stopping mid-wait is not.
|
|
4895
|
-
|
|
4896
|
-
**Honest failure beats fabricated success.**
|
|
4897
|
-
- Report failures with the observed evidence (the error body, the worker
|
|
4898
|
-
state, the log line) \u2014 never a claimed success without the artifact that
|
|
4899
|
-
proves it (the transcript text, the audio payload, the vector counts).
|
|
4900
|
-
- A missing credential or capability is reported as exactly that, with what
|
|
4901
|
-
you did to confirm it and what the user must supply.
|
|
4902
|
-
|
|
4903
|
-
**Use only the tools you were given.**
|
|
4904
|
-
- If a tool is not available in this session, work with the ones that are \u2014
|
|
4905
|
-
reads you already made can be analyzed directly. Never stall the task
|
|
4906
|
-
requesting new tool access.
|
|
4907
|
-
|
|
4908
|
-
**Report habits** (inventory, cost, deployment reports):
|
|
4909
|
-
- Enumerations read best as tables carrying each resource's name and id.
|
|
4910
|
-
- Every dollar figure comes from a billing/pricing read made this turn; give
|
|
4911
|
-
totals beside per-item figures, and show empty categories rather than
|
|
4912
|
-
silently dropping them.
|
|
4913
|
-
- Lead the user to the number or verdict they asked for, stated plainly.
|
|
4914
|
-
`
|
|
4915
|
-
},
|
|
4916
|
-
{
|
|
4917
|
-
name: "serverless-deploy",
|
|
4918
|
-
description: `Bring any source \u2014 a HuggingFace repo, a ComfyUI workflow, a Hub release, a custom container image, a GGUF repo, a Civitai asset, or a community template \u2014 to a proven Runpod Serverless endpoint. Deploys an existing source through the Runpod MCP tools; code-first Python deploys (the runpod-flash dev loop) are outside this bundle's scope. Trigger on phrases like "deploy <owner/name>", "serve this model", "make this a serverless endpoint", "ship this ComfyUI workflow as an API", "deploy from the Hub", "run my custom handler image", "GGUF endpoint", "this model is too big for one GPU", "whisper / transcription endpoint", "text-to-speech / voice-cloning endpoint", "speaker diarization endpoint", "OCR / document-extraction endpoint", "embeddings endpoint for semantic search".`,
|
|
4919
|
-
text: '---\nname: serverless-deploy\ndescription: Bring any source \u2014 a HuggingFace repo, a ComfyUI workflow, a Hub release, a custom container image, a GGUF repo, a Civitai asset, or a community template \u2014 to a proven Runpod Serverless endpoint. Deploys an existing source through the Runpod MCP tools; code-first Python deploys (the runpod-flash dev loop) are outside this bundle\'s scope. Trigger on phrases like "deploy <owner/name>", "serve this model", "make this a serverless endpoint", "ship this ComfyUI workflow as an API", "deploy from the Hub", "run my custom handler image", "GGUF endpoint", "this model is too big for one GPU", "whisper / transcription endpoint", "text-to-speech / voice-cloning endpoint", "speaker diarization endpoint", "OCR / document-extraction endpoint", "embeddings endpoint for semantic search".\n---\n\n# Serverless deploy\n\nYou take *any* deployable source and turn it into a working, queue-backed Serverless endpoint that you have actually proven with one real job \u2014 and you leave the user knowing exactly what now exists and what it bills. The spine never changes: read the source, decide the engine and the hardware, provision, warm, smoke-test one real job, hand back the URL and a `curl`, state what is billing. Tear down only when the user framed the deploy as a throwaway test or asks for cleanup.\n\nTwo decisions are yours to make without being told, and getting them wrong is the usual failure: the **engine family** (which worker image is correct for this modality and model format) and the **provisioning path** (bake weights into the image vs download-on-start vs stage on a network volume, each with a different cold-start cost). Size hardware from the model\'s real metadata, never a guess. When several suitable workers exist for the modality, prefer the smallest, most-proven image for a smoke-able deploy \u2014 a giant image turns the first job into a many-minute cold-start lottery; the smoke test\'s job is proof of the journey, not maximal quality. Name the trade-off if the user\'s request implies a heavier engine. Creating an endpoint is billable \u2014 state the hourly cost of the GPU class before you create it, and remember a smoke job costs real money.\n\nFor code-first Python \u2014 writing endpoint functions in a project and iterating with Runpod\'s Python dev loop (runpod-flash) \u2014 this MCP-only bundle has no path: say so plainly instead of improvising one. This skill deploys an existing source (Hub repo, container image, ComfyUI workflow, Hub release) to an endpoint through the MCP tools.\n\n## Required capabilities\n\nNamed as capabilities; the tool serving each one on this server is in the per-server tool binding below. This skill reads the catalog before it creates, and creates only what the user asked to deploy.\n\n- Read GPU catalog + price + live stock, per-data-center availability, and the host-CUDA-version capacity matrix \u2014 sizing and stock (delegate the sizing math to `discovery`).\n- Browse the Hub worker catalog, with the release config \u2014 to find a prebuilt worker or a community template and read its hardware/env schema.\n- Deploy a Hub release directly as an endpoint \u2014 the one-call Hub path.\n- Create a template (image, disk, ports, env, registry, mounts) \u2014 the reusable worker preset.\n- Create a Serverless endpoint (GPU pools, worker min/max, scaler, data centers, network volumes).\n- Create a network volume \u2014 to stage large weights in a GPU-co-located data center.\n- Pin GPUs / set GPU count per worker \u2014 use `gpu.count`, `gpu.pools`, and `gpu.excludedTypes` on create/update, or the GPU-selection convenience tool.\n- Read endpoint health and list workers \u2014 warmup and readiness, and the cold-start-vs-crash-loop signal (`initializing` vs `unhealthy`); worker status alone cannot rule a crash loop out, so pair it with the worker\'s logs.\n- Submit a synchronous or async job and block on it \u2014 the smoke test (`runsync-endpoint wait:300000`, then `get-job-status wait:300000` on the job id until terminal).\n- Read a worker\'s logs *when that tool is available to you* \u2014 model-load / crash evidence; when it is not, `endpoint-health` + `list-endpoint-workers` give the worker-health counts that already distinguish a cold start from a crash-loop.\n- Delete the endpoint, template, and any network volume \u2014 teardown of everything created.\n\n## Phase 0 \u2014 identify the source and pick the engine (unprompted decision)\n\nRead the source the user gave you and classify it. The engine family follows from the modality and the model format, not from a default. Never serve a non-text-generation task on a vLLM or ComfyUI worker.\n\n| Source / modality | Correct engine family | Worker image kind |\n|---|---|---|\n| Text-generation LLM, `safetensors` weights | vLLM or SGLang | `runpod/worker-v1-vllm` (or SGLang worker) |\n| Text-generation LLM, `GGUF` quantized weights | llama.cpp / Ollama | a GGUF-capable worker \u2014 **not** vLLM |\n| Image/diffusion `workflow.json` | ComfyUI | `runpod/worker-comfyui` |\n| Speech-to-text (transcription) | Whisper / faster-whisper | a Whisper worker, not an LLM worker |\n| Text-to-speech / voice cloning | Chatterbox / XTTS / Kokoro | a TTS worker |\n| Speaker diarization | pyannote / a diarization pipeline | a community/Hub diarization worker |\n| OCR / document extraction | PaddleOCR / DeepSeek-OCR / docling | an OCR worker, not a VLM chat worker |\n| Text embeddings | Infinity / text-embeddings-inference / sentence-transformers / BGE | an embeddings worker |\n| A custom handler you were given | your own image | a custom container image |\n\n- **Format detection.** Inspect the repo\'s files before choosing. `*.safetensors` / `*.bin` \u2192 vLLM/SGLang. `*.gguf` \u2192 a llama.cpp/Ollama worker; deploying a GGUF repo on worker-vllm is the classic wrong-engine mistake \u2014 vLLM will not load it. State the format you detected and the engine it implies in the final message \u2014 the detection is part of the answer, not just the decision.\n- **OCR sizing.** For an OCR/document-extraction smoke deploy, default to a classic lightweight OCR worker (the PaddleOCR/EasyOCR/docling class, 16\u201324 GB). A VLM-based OCR (7B+ params) is a big-model deploy \u2014 size it like one (48 GB class) or don\'t pick it for a smoke test.\n- **Community-template source.** When the modality has no first-party Runpod worker (e.g. speaker diarization), browse the Hub / public catalog for a **community (non-Runpod)** template that serves it. Attribute provenance to the catalog entry you actually found \u2014 name the repo and its owner from the listing, never assert a repo from memory. Once you have found a fitting worker, **deploy it and run the clip** \u2014 do not stop at "I found X," and do not block on a credential the config makes optional (see the runtime-optional-token rule in phase 2); ask for the capability in the job input (a diarization worker takes `diarization: true`). Only if the catalog returns nothing that fits do you say "none found" and stop; never invent a repo name or a Docker image.\n- **Custom image.** When the user brings their own handler image, that image *is* the engine. After the deploy, read the worker states (`list-endpoint-workers` or `endpoint-health`) and report what you observed \u2014 for a custom image the workers\' observed health IS the deliverable: one completed job does not show a crash-looping sibling worker, and a crash-looping custom image is called failing, never glossed. If it is in a private registry, the endpoint needs a registry credential (create/reference it \u2014 see `lifecycle-crud`); never echo the registry password. For a load-balancer (custom-HTTP, direct-routing) endpoint rather than the queue, the cardinal rule is that the worker must serve HTTP on a port the template exposes AND answer the load balancer\'s health path \u2014 `HEALTH_CHECK_PATH` if the worker sets that env, `/ping` otherwise. Miss either and workers never pass health, so the endpoint looks stuck with zero ready workers; the endpoint read returns the exact health URL being polled. The endpoint type is also immutable after create.\n\n## Phase 1 \u2014 size the hardware (read the catalog, cite `discovery`)\n\nDelegate the params\xD7precision + KV/overhead VRAM math to `discovery`; this skill applies its result to a real GPU pick.\n\n- Read the model\'s real metadata (parameter count, precision, and for diffusion the checkpoint/LoRA/VAE asset sizes). Do not size from the repo name alone when the config is readable.\n- Pick the smallest GPU class whose VRAM fits, then confirm live stock from the GPU-availability read \u2014 `include:["AVAILABILITY"]` also gives the per-data-center picture when the endpoint needs a specific DC, and the capacity matrix adds the host-CUDA-version dimension when a CUDA floor is in play. Never create into a GPU class with no stock \u2014 a scale-to-zero endpoint that can never acquire a worker looks deployed but never runs.\n- **Multi-GPU when one card can\'t hold the model.** When required VRAM exceeds the largest single card you can get with stock, set GPUs-per-worker > 1 and enable tensor parallelism in the worker env (e.g. the vLLM worker\'s tensor-parallel setting = GPU count). State plainly that you are going multi-GPU and why (the model does not fit on one card), and that multi-GPU workers cost proportionally more per hour. Before committing, price the alternative in the answer: quote the largest in-stock single card (its VRAM, live stock, $/hr) against the multi-GPU pick \u2014 a 2\xD780 GB decision that never names the in-stock 180 GB card is unjustified sizing.\n- **Pin the pool on Hub deploys.** `deploy-hub-repo` inherits the release\'s GPU pool list when `gpuIds` is omitted \u2014 which can silently acquire a top-tier card for a task a 24 GB card serves, at several times the hourly rate. Pass `gpuIds` from YOUR sizing decision on every Hub deploy unless the release config pins exactly the pool your sizing chose.\n- **CPU Serverless.** `create-endpoint` supports CPU workloads through `body.cpu`; read its schema and the CPU catalog for supported instance choices. Supply CPU or GPU configuration, never both.\n- **State the cost.** Before creating, quote the chosen GPU\'s hourly rate (\xD7GPU count) from the catalog read. Creating the endpoint and running the smoke test both bill.\n\n## Phase 2 \u2014 provision\n\nTwo provisioning paths; choose by source.\n\n- **Hub release.** If the source is a Hub repo, deploy its listed release directly (one call). Read the release config first (hardware requirements + env schema) so you pass only env keys the release accepts, and so you know its GPU/disk defaults. To reproduce a known-good build, pin the exact release rather than "latest".\n- **Everything else.** Create a template that names the engine image, the disk size, the ports the worker exposes, and the env (model id, engine settings, tokens); then create the endpoint referencing it. Start scale-to-zero (min workers 0) unless the user asked for warm capacity \u2014 a nonzero minimum is an always-on billed worker.\n- **Provisioning path and cold start.** Bake-into-image = fastest cold start, biggest image; download-on-start = small image, slow first request per new worker; **network volume** = weights staged once in a GPU-co-located data center, mounted read-only, so new workers skip the download. Choose a network volume when weights are large (roughly > 30 GB) or shared across workers; size it to the real asset total with headroom, create it in the same data center you pin the endpoint to (see `lifecycle-crud`), and say which path you took and its cold-start consequence.\n- **Multi-region / HA (no auto-sync).** For a multi-region endpoint you attach one network volume per data center; these per-DC volumes do **not** auto-sync \u2014 you replicate data across them yourself (e.g. an `aws s3` sync between the volumes\' S3 endpoints), or each region serves stale or missing weights.\n- **Required env, gated weights, and runtime-optional tokens.** Read the release/worker config (`includeConfig: true`) and SET every required env key that has no default before you deploy \u2014 e.g. an embeddings worker\'s `MODEL_NAMES` (`BAAI/bge-small-en-v1.5`); deployed without its model env a worker loads nothing and 400s every job. For a gated HuggingFace repo whose *weights* 403 without a token at download time, pass the token in env, and if the user gave none, say the download will 403 and ask \u2014 do not deploy a build that cannot fetch its weights. A token needed only for an **optional runtime capability**, one whose config default is empty (a diarization worker\'s `HF_TOKEN`), branches on one check you make FIRST: did the user provide a token (pasted in the request, set in the environment, or named as available)?\n - **Token provided \u2192 using it is the job.** Set it as the worker env var at create (`HF_TOKEN` for a diarization worker), say that you configured it (by env-var name, never the value), and expect the gated capability to work. Never deploy without wiring a credential the user handed you.\n - **No token \u2192 deploy anyway.** The deploy is NOT conditional on the token: don\'t park the whole deploy on an optional credential. Deploy, run the job, report what the endpoint actually returned, and then name the token as the unlock for the gated capability.\n Never print a token value; reference it as an env var.\n\n## Phase 3 \u2014 warm and smoke-test one real job\n\nProve the endpoint before you call it deployed: block on the smoke job with server-side holds instead of handing the user a poll loop \u2014 the tools can carry the wait, so let them. Report what you observed once the job is terminal; if waiting stops being productive, report the evidenced state instead.\n\n- **Submit through the sync path and wait server-side \u2014 do not tight-loop.** Fire exactly one real, small job (a short prompt, a 512px few-step image, one short audio clip, one page, one sentence to embed) with `runsync-endpoint` and `wait: 300000`, the maximum server-side hold. The point is to prove the worker boots with the real asset set and returns the right shape of output \u2014 not just that the endpoint exists.\n- **Expect a cold start of 1\u20135+ minutes on the first job** \u2014 a fresh worker pulls the image and loads the model. This is normal, not a failure. If the job outlives the hold and `runsync` returns a non-terminal status with a job id, keep blocking with `get-job-status` using `wait: 300000` (one server-side hold, not a rapid re-poll). Poll the job id you already have \u2014 do **not** re-submit `runsync`, which starts a new job. Between holds check `list-endpoint-workers`: `unhealthy` workers or zero capacity \u2192 stop waiting immediately (see below). When continued waiting stops being informative, stop and report the state honestly with the worker-state evidence \u2014 endpoint created correctly, job submitted, the worker never became ready, here is what the worker states show. That evidenced report is a complete answer; an endless grind is not.\n- **Diagnose a stuck job from the reads you always have: `endpoint-health`, `list-endpoint-workers`, and the `workerHealth` block `get-job-status` attaches on `IN_QUEUE`.** `initializing` workers = the cold start is still in progress \u2192 keep waiting. `unhealthy` workers = the container is crash-looping (a real worker failure, not slow warmup) \u2192 switch the worker image or GPU pool, don\'t wait it out (the classic Whisper/TTS tell). **But `unhealthy: 0` does not clear the workers**: a container that fails to start loops while its worker keeps reporting RUNNING or THROTTLED, so when the job stays queued and workers exist, read `stream-worker-logs` on one of them whatever its status says \u2014 UNHEALTHY is a symptom of a crash loop, not a test for one. `total: 0` or throttled = no capacity on that GPU pool \u2192 widen it. A job that never left `IN_QUEUE` was never parsed \u2014 its payload was never read by any worker, so NEVER speculate the input was malformed from queue-stuck evidence; the honest report is the queue/cold-start fact with the worker states quoted. The same discipline covers every stuck-queue anomaly: never present a cause as "conclusive" that your own reads contradict or don\'t show (idle healthy workers beside a queued job is a platform anomaly you REPORT as observed, not a crash-loop you assert) \u2014 an unevidenced cause stated as fact fails the journey even when everything else was right. Prefer a broad, in-stock GPU pool over a scarce high-VRAM tier (e.g. the 48 GB cards) so the endpoint can actually acquire a worker.\n- **Assume you have only the Runpod MCP tools.** Do not reach for a web-fetch tool, a shell, or a browser you were not granted to look up a worker\'s input schema or read its README \u2014 a tool you do not have cannot be called, and the deploy stalls with the job unfinished. Get the input shape from `list-hub-repos` with `includeConfig: true` and from the error the endpoint returns, then correct the payload and re-run. If `stream-worker-logs` is likewise unavailable, diagnose from `endpoint-health` / `list-endpoint-workers` \u2014 never let an unfinished job hinge on a tool you may not have.\n- On a terminal `FAILED` job, report the decisive detail the result gives you (missing file, gated 403, OOM, wrong-format load error) \u2014 what it says, not what it probably says. OOM \u2192 the GPU is too small for the real memory pattern; step up a class. Wrong-format load error on a GGUF repo \u2192 the engine is wrong (phase 0). A `400` on the payload \u2192 the input shape is wrong; fix it from the release config and re-run, do not abandon.\n\n## Phase 4 \u2014 hand back\n\n- The hand-back is a complete final summary the user never has to scroll back from: the endpoint id; the worker image or Hub repo (and which read it came from); the GPU pool and its hourly price; the smoke job\'s id and terminal outcome with its proof (the output reference, the quoted failure, or the evidenced timeout report); the sync and async URLs; whether the endpoint was kept (and what is now billing) or deleted (read-back confirmed); and a ready-to-run `curl` that references `$RUNPOD_API_KEY` (never the literal key). The sizing arithmetic, format finding, and any caching/placement facts belong in it too.\n- **Cleanup.** The default is to KEEP what the user asked for: tell them exactly what is now billing (the endpoint, any min-worker, any network volume) and how to delete it later. Tear down \u2014 the endpoint, its template, any network volume, each confirmed gone by a read-back \u2014 only when the user framed the journey as a throwaway test or asks for cleanup.\n\n## Hard rules\n\n- Deploy only the source the user named. Never create an endpoint they did not ask for, and never touch or delete another endpoint, template, or volume.\n- Pick the engine from the modality and the model format, never a default. A GGUF repo is not a vLLM job; transcription/TTS/OCR/embeddings are not chat-worker jobs.\n- State the hourly GPU cost before creating a billable endpoint, and remember the smoke job bills too.\n- Never invent a model URL, a community template repo, or a Docker image. If the source can\'t be resolved from what the user gave you plus the catalog, ask once or say "none found" and stop.\n- Prove the endpoint with one real job before calling it deployed. A create call that returned an id is not a working endpoint.\n- Carry the smoke job to a terminal state with server-side holds \u2014 `runsync-endpoint wait:300000`, then `get-job-status wait:300000` on the job id \u2014 expecting a 1\u20135+ minute first-job cold start; hold server-side rather than handing the user a poll loop for a wait the tools can carry. If continued waiting stops being informative, end with the honest, evidenced report (worker states, job status) \u2014 that is a complete answer; silent surrender mid-wait is not.\n- Assume you have only the Runpod MCP tools. Never make the journey depend on a web-fetch or shell tool you were not granted to look up a worker\'s schema \u2014 derive the input shape from `list-hub-repos includeConfig` and the endpoint\'s own error, and correct the payload in place. A tool you were not given is not a path.\n- Set every required env key (no config default) at deploy \u2014 an embeddings worker without `MODEL_NAMES` loads no model and fails every job. An optional-capability token (e.g. a diarization worker\'s `HF_TOKEN`, empty default): if the user provided one, set it at create \u2014 never ignore a handed-over credential; if not, deploy anyway, run, and report what came back, then name the token as the unlock.\n- Start scale-to-zero unless warm capacity was requested; never set a nonzero worker minimum silently \u2014 it bills around the clock.\n- Sizing a big model is shown arithmetic, never a bare total: give the parameter count and where you read it, the bytes per parameter at the chosen precision, the weights total, the KV-cache/overhead allowance, and the GPU decision they add up to. "~146GB so 2\xD7H200" without the components is an assertion, not sizing.\n- When the user asked for specific behavior settings (warm/minimum workers, idle timeout, FlashBoot, a GPU pin), read the endpoint back after the create/update and confirm those exact fields landed \u2014 an unread write is an unverified write, because the write call\'s own response is not a read. Both `update-endpoint` and `set-endpoint-gpus` use sparse REST updates: omitted fields are left untouched. After a GPU change, confirm the scaling fields too. The read-back result belongs in the final answer.\n- Cold-start asks ("first message takes 40 seconds", "keep it snappy") have exactly four real levers \u2014 name all four with their cost trade-offs, then apply what was agreed: **FlashBoot** (faster worker start, no standing cost), **minimum/warm workers** (no cold start, bills that worker continuously \u2014 quote $/hr \xD7 730/mo from the price read), **idle timeout** (a longer window keeps a warm worker between bursts \u2014 fewer cold starts, more billed idle seconds), **model caching** (weights on a network volume or baked into the image \u2014 the load, not the boot, dominates big-model cold starts).\n- "Don\'t bake the weights into the image" / cache-on-volume asks are an architecture journey, not a smoke-test one: create the network volume in a data center that has the target GPU, attach it to the endpoint, point the worker\'s model path env at the volume mount, keep minimum workers 0, and run NO job unless asked. State two facts of the architecture you built, plainly and unhedged: the first worker downloads the weights to the volume once and every later cold start mounts the cache instead of re-downloading; and the volume must live in the same data center as the GPUs or it cannot mount. (The volume CRUD discipline is lifecycle-crud\'s; this is the serving-side wiring.)\n- Never echo an HF/Civitai/registry token. Reference it as an env var.\n- On a smoke-test failure, read the log and quote it; do not retry blindly or assert a cause you did not read.\n- A terminal job\'s `output`/`error` field IS worker-level evidence \u2014 quote it verbatim when explaining a failure (a gated-model rejection, a load error). Never tell the user you cannot quote evidence while holding a terminal job result; lacking a log-stream tool does not excuse dropping the evidence the job itself returned. Empty or missing output on COMPLETED jobs from a gated-capability worker is itself quotable evidence: report it as such (\'N jobs completed but returned no payload\'), pair it with the config fact (the token env the worker documents was not set), and state the gate plainly.\n\n## Error handling\n\n- Smoke job returns `FAILED` with `gated` / `403` in the message \u2192 the asset is gated and no token was supplied. Say so and ask for the token; do not auto-recreate.\n- Smoke job returns `FAILED` with `out of memory` \u2192 the GPU is too small for the real pattern; move up one GPU class and note the new hourly cost. If failures persist after one step-up, re-examine the worker choice itself \u2014 an oversized engine family for the task (a 7B VLM where a classic OCR worker suffices) is fixed by switching the worker image in-turn, not by more GPU or more waiting.\n- Job returns `IN_QUEUE` / `IN_PROGRESS` past the sync wait \u2192 usually a cold start; keep blocking with `get-job-status wait:300000` on that job id, then report either the terminal result or the evidenced state. Hold server-side rather than handing the user a raw poll loop.\n- Smoke job returns `400` / a payload-shape error (e.g. an embeddings worker\'s `TextEncodeInput` complaint) \u2192 the input is wrong or a required model env was never set; re-read the release config, set the missing env (`MODEL_NAMES`) or fix the payload shape (`{"input": {"model": "...", "input": ["..."]}}` for an Infinity/OpenAI-compatible embeddings worker), and re-run \u2014 do not stop and ask the user.\n- Jobs go terminal almost instantly (well under a second of execution) with empty or degraded output on a worker whose capability is token-gated \u2192 the gate is the first suspect, not the payload: read the job\'s `output`/`error` field verbatim and check whether the token env was actually set on the template/endpoint, before theorizing about input shape. Answer from the evidence already in hand \u2014 the job result and the config read settle it \u2014 rather than deferring the question.\n- Create returns `409` (name collision) \u2192 append a fresh short suffix and retry once; if it still collides, surface it and stop.\n- A GGUF repo fails to load on a vLLM worker \u2192 this is the wrong-engine case, not a stock or size problem; re-provision on a GGUF-capable worker.\n- The Hub / community catalog returns nothing for the modality \u2192 report "none found on the catalog" and stop; do not fabricate a repo.\n- A delete returns `204` with no body \u2192 that is success, not an error; confirm with a read-back.\n\n## Per-server tool binding\n\n| Capability | This server | Official `runpod-mcp` |\n|---|---|---|\n| GPU catalog + price + stock | `list-gpu-types` (`include:["AVAILABILITY"]`), `get-gpu-type` | `list-gpu-types` |\n| Per-data-center GPU availability | `list-gpu-types` / `get-gpu-type` (`include:["AVAILABILITY"]` \u2192 `dataCenters[]`), `list-data-centers` (`include:["GPU_AVAILABILITY"]`) | `get-gpu-type`, `list-data-centers` |\n| Capacity matrix (per host CUDA version) | `get-capacity` | *(unbound \u2014 GraphQL-only, no REST home)* |\n| Data centers | `list-data-centers`, `get-data-center` | `list-data-centers` |\n| Browse Hub / community catalog | `list-hub-repos` (`includeConfig:true`) | *(unbound \u2014 no Hub browse)* |\n| Deploy a Hub release directly | `deploy-hub-repo` | *(unbound \u2014 no Hub deploy)* |\n| Pin a Hub release / read history | `list-endpoint-releases` | *(unbound)* |\n| Create a template | `create-template` | `create-template` |\n| Create an endpoint | `create-endpoint` | `create-endpoint` |\n| Create a network volume | `create-network-volume` | `create-network-volume` |\n| Multi-GPU / GPU-SKU pin | `set-endpoint-gpus` (`gpuCount`, `pools`) | `update-endpoint` (`gpu.count`, `gpu.pools`, `gpu.excludedTypes`) |\n| Endpoint health / warmup | `endpoint-health` | `endpoint-health` |\n| List workers (per-worker detail) | `list-endpoint-workers` | *(coarse \u2014 `endpoint-health` only)* |\n| Smoke test (block until terminal) | `runsync-endpoint` (`wait:300000`), `get-job-status` (`wait:300000`), `run-endpoint` | `runsync-endpoint` |\n| Read a worker\'s logs | `stream-worker-logs` | *(unbound \u2014 no REST log stream)* |\n| Registry credential (private image) | `create-registry`, `get-registry` | `create-registry` |\n| Inspect endpoint / template | `get-endpoint`, `get-template` | `get-endpoint` |\n| Teardown | `delete-endpoint`, `delete-template`, `delete-network-volume` | `delete-endpoint` |\n\nWhere a capability is unbound on a server, say "not available on this server" and work with what the server does offer.\n\n## Report template \u2014 deployment summary\n\nA good deploy summary tells the user: which worker/engine was chosen and why;\nthe endpoint name and id; the GPU pool and its hourly price from the catalog\nread; the smoke-job proof (the actual output artifact: transcript text, audio\npayload reference, extracted text, vector count); the current worker state;\nwhat the endpoint costs standing (scale-to-zero or $/hr); and how to delete it\nlater. When the wait ended without a terminal job, the evidence takes the\nproof\'s place: job id, submitted payload, worker states observed, and the\nrecommended next step.\n\n## Contract\n\nThe cross-journey answer contract (definite facts from reads, commit-don\'t-hedge, mutations bind to this conversation\'s creations, a standalone final message, honest failure, granted tools only) is defined in the `runpod` router skill and applies to every reply from this journey.\n'
|
|
4920
|
-
}
|
|
4921
|
-
];
|
|
4922
|
-
|
|
4923
5480
|
// src/specgen/pagination.ts
|
|
4924
5481
|
var DEFAULT_LIST_LIMIT = 20;
|
|
4925
5482
|
var MAX_LIST_LIMIT = 100;
|
|
@@ -4935,6 +5492,26 @@ var listPaginationProperties = {
|
|
|
4935
5492
|
description: "Opaque pagination cursor from a previous response (nextCursor). Omit to start from the beginning."
|
|
4936
5493
|
}
|
|
4937
5494
|
};
|
|
5495
|
+
function clampListLimit(limit) {
|
|
5496
|
+
const requested = Number(limit);
|
|
5497
|
+
return Math.min(
|
|
5498
|
+
Number.isFinite(requested) && requested >= 1 ? Math.floor(requested) : DEFAULT_LIST_LIMIT,
|
|
5499
|
+
MAX_LIST_LIMIT
|
|
5500
|
+
);
|
|
5501
|
+
}
|
|
5502
|
+
function serverPageQuery(args) {
|
|
5503
|
+
const cursor = typeof args.cursor === "string" && args.cursor !== "" ? args.cursor : void 0;
|
|
5504
|
+
return { limit: clampListLimit(args.limit), ...cursor ? { cursor } : {} };
|
|
5505
|
+
}
|
|
5506
|
+
function serverPagination(pagination, returned) {
|
|
5507
|
+
const hasNextPage = pagination?.hasNextPage === true;
|
|
5508
|
+
return {
|
|
5509
|
+
returned,
|
|
5510
|
+
hasNextPage,
|
|
5511
|
+
nextCursor: pagination?.nextCursor ?? null,
|
|
5512
|
+
...hasNextPage ? { note: "More results exist. Pass cursor=nextCursor to fetch them." } : {}
|
|
5513
|
+
};
|
|
5514
|
+
}
|
|
4938
5515
|
function decodeCursorOffset(cursor) {
|
|
4939
5516
|
if (!cursor) return 0;
|
|
4940
5517
|
try {
|
|
@@ -4950,11 +5527,7 @@ function encodeCursorOffset(offset) {
|
|
|
4950
5527
|
return Buffer.from(String(offset), "utf8").toString("base64");
|
|
4951
5528
|
}
|
|
4952
5529
|
function capList(items, options, extra) {
|
|
4953
|
-
const
|
|
4954
|
-
const limit = Math.min(
|
|
4955
|
-
Number.isFinite(requested) && requested >= 1 ? Math.floor(requested) : DEFAULT_LIST_LIMIT,
|
|
4956
|
-
MAX_LIST_LIMIT
|
|
4957
|
-
);
|
|
5530
|
+
const limit = clampListLimit(options.limit);
|
|
4958
5531
|
const offset = decodeCursorOffset(options.cursor);
|
|
4959
5532
|
const total = items.length;
|
|
4960
5533
|
const page = items.slice(offset, offset + limit);
|
|
@@ -5033,6 +5606,38 @@ async function runTool(body) {
|
|
|
5033
5606
|
}
|
|
5034
5607
|
}
|
|
5035
5608
|
|
|
5609
|
+
// src/specgen/tools/annotations.ts
|
|
5610
|
+
var readOnly = {
|
|
5611
|
+
readOnlyHint: true,
|
|
5612
|
+
destructiveHint: false,
|
|
5613
|
+
idempotentHint: true,
|
|
5614
|
+
openWorldHint: true
|
|
5615
|
+
};
|
|
5616
|
+
var bundledRead = {
|
|
5617
|
+
readOnlyHint: true,
|
|
5618
|
+
destructiveHint: false,
|
|
5619
|
+
idempotentHint: true,
|
|
5620
|
+
openWorldHint: false
|
|
5621
|
+
};
|
|
5622
|
+
var write = {
|
|
5623
|
+
readOnlyHint: false,
|
|
5624
|
+
destructiveHint: false,
|
|
5625
|
+
idempotentHint: false,
|
|
5626
|
+
openWorldHint: true
|
|
5627
|
+
};
|
|
5628
|
+
var idempotentWrite = {
|
|
5629
|
+
readOnlyHint: false,
|
|
5630
|
+
destructiveHint: false,
|
|
5631
|
+
idempotentHint: true,
|
|
5632
|
+
openWorldHint: true
|
|
5633
|
+
};
|
|
5634
|
+
var destructive = {
|
|
5635
|
+
readOnlyHint: false,
|
|
5636
|
+
destructiveHint: true,
|
|
5637
|
+
idempotentHint: true,
|
|
5638
|
+
openWorldHint: true
|
|
5639
|
+
};
|
|
5640
|
+
|
|
5036
5641
|
// src/specgen/tools/capacity.ts
|
|
5037
5642
|
var CUDA_VERSION_REGEX = /^\d{1,2}\.\d{1,2}$/;
|
|
5038
5643
|
var MAX_PROBE_VERSIONS = 12;
|
|
@@ -5067,6 +5672,7 @@ function rankByStock(rows, stats, includeUnavailable) {
|
|
|
5067
5672
|
}
|
|
5068
5673
|
var getCapacity = {
|
|
5069
5674
|
name: "get-capacity",
|
|
5675
|
+
annotations: readOnly,
|
|
5070
5676
|
description: "GPU capacity across host CUDA versions, as a matrix. Use this to choose an endpoint's allowedCudaVersions/minCudaVersion (or diagnose/widen a capacity-starved one) and to distinguish capacity problems from compatibility problems. Default mode is one call returning, per GPU type, overall stock plus AVAILABLE/UNAVAILABLE per host-reported CUDA version. Pass cudaVersions to deep-probe instead: one stock lookup per listed version, returning graded stock (High/Medium/Low/Out) and the lowest on-demand price per version; a probe that fails transiently reports a per-version error instead of failing the call. Nothing is hidden by default \u2014 set includeUnavailable:false to drop GPUs with no stock on any listed version. Credential-free public catalog data. Stock is live, so page cursors can shift between calls.",
|
|
5071
5677
|
inputSchema: {
|
|
5072
5678
|
type: "object",
|
|
@@ -5267,6 +5873,7 @@ function formatGpuIds(gpu) {
|
|
|
5267
5873
|
}
|
|
5268
5874
|
var setEndpointGpus = {
|
|
5269
5875
|
name: "set-endpoint-gpus",
|
|
5876
|
+
annotations: idempotentWrite,
|
|
5270
5877
|
description: "Set which GPUs a Serverless endpoint's workers run on \u2014 including pinning specific GPU SKUs. Provide either a raw gpuIds string, or pools plus optional excludeGpuTypeIds (GPU type ids from list-gpu-types) and the exclusion string is built for you: a pool allows every SKU in it, and excluding all but one SKU pins that SKU exactly. Updates only GPU settings through REST v2, preserving other endpoint settings. create-endpoint/update-endpoint also support gpu.excludedTypes.",
|
|
5271
5878
|
inputSchema: {
|
|
5272
5879
|
type: "object",
|
|
@@ -5460,6 +6067,7 @@ function randomSuffix() {
|
|
|
5460
6067
|
}
|
|
5461
6068
|
var listHubRepos = {
|
|
5462
6069
|
name: "list-hub-repos",
|
|
6070
|
+
annotations: readOnly,
|
|
5463
6071
|
description: "List repos published to the Runpod Hub (prebuilt Serverless workers and Pod templates, e.g. vLLM, ComfyUI). Public catalog \u2014 no auth required. Each result includes the currently listed release with its hubReleaseId and prebuilt image name. Results are sorted by deploy count (most popular first). Set includeConfig:true to also return the release config (hardware requirements and environment-variable schema) \u2014 it is large, so prefer requesting it for a single repo via the repoOwner/searchTerm filters.",
|
|
5464
6072
|
inputSchema: {
|
|
5465
6073
|
type: "object",
|
|
@@ -5561,6 +6169,7 @@ var listHubRepos = {
|
|
|
5561
6169
|
};
|
|
5562
6170
|
var deployHubRepo = {
|
|
5563
6171
|
name: "deploy-hub-repo",
|
|
6172
|
+
annotations: write,
|
|
5564
6173
|
description: "Deploy a Runpod Hub repo's listed release as a new Serverless endpoint (the same as clicking Deploy on the Hub). Identify the repo by `repo` (\"owner/name\" from list-hub-repos) or by `hubReleaseId`. The release supplies the prebuilt image, container disk, CUDA constraints, and env-var defaults; pass `env` to override or fill in values (required keys without a default must be provided \u2014 check list-hub-repos with includeConfig:true for the schema). GPU selection comes from the release config when it specifies one; otherwise pass gpuIds (GPU pool names, e.g. 'ADA_24' or 'ADA_80_PRO,AMPERE_80'). Uses the authenticated GraphQL API (no REST home for Hub deploys yet).",
|
|
5565
6174
|
inputSchema: {
|
|
5566
6175
|
type: "object",
|
|
@@ -6018,6 +6627,7 @@ function validateWait(wait) {
|
|
|
6018
6627
|
}
|
|
6019
6628
|
var runEndpoint = {
|
|
6020
6629
|
name: "run-endpoint",
|
|
6630
|
+
annotations: write,
|
|
6021
6631
|
description: "Submit an asynchronous job to a Serverless endpoint. Returns a job ID immediately \u2014 use get-job-status to poll for results (pass its `wait` to block through a cold start instead of tight-looping). Async results are available for 30 minutes after completion.",
|
|
6022
6632
|
inputSchema: {
|
|
6023
6633
|
type: "object",
|
|
@@ -6047,6 +6657,7 @@ var runEndpoint = {
|
|
|
6047
6657
|
};
|
|
6048
6658
|
var runsyncEndpoint = {
|
|
6049
6659
|
name: "runsync-endpoint",
|
|
6660
|
+
annotations: write,
|
|
6050
6661
|
description: "Submit a synchronous job to a Serverless endpoint and wait for the result. Best for fast tasks: if the job outlives the wait, the response returns a job ID and a non-terminal status (IN_QUEUE or IN_PROGRESS) to poll with get-job-status. Max payload 20 MB; results expire after 1 minute. The wait parameter extends the server-side wait" + (HOSTED ? ` \u2014 this server runs behind a 60-second gateway deadline, so waits clamp to ${HTTP_LONG_POLL_BUDGET_MS} ms, which is also the effective default. For longer jobs use run-endpoint + get-job-status.` : " to up to 5 minutes (300000 ms); it defaults to 90000 (90 seconds)."),
|
|
6051
6662
|
inputSchema: {
|
|
6052
6663
|
type: "object",
|
|
@@ -6090,6 +6701,7 @@ var runsyncEndpoint = {
|
|
|
6090
6701
|
};
|
|
6091
6702
|
var getJobStatus = {
|
|
6092
6703
|
name: "get-job-status",
|
|
6704
|
+
annotations: readOnly,
|
|
6093
6705
|
description: "Check the status of a Serverless job. Returns the current status and output when complete. Job statuses: IN_QUEUE, IN_PROGRESS, COMPLETED, FAILED, CANCELLED, TIMED_OUT. Pass `wait` (milliseconds, up to " + STATUS_WAIT_MAX_MS + ") to BLOCK server-side, polling until the job reaches a terminal status or the budget expires \u2014 use it to ride out a cold start (a first job on a fresh worker pulls the image and loads the model, commonly 1\u20135+ minutes) in a single call instead of returning on the first IN_QUEUE and tight-looping the tool. Without `wait` it returns the current status immediately (a single check). If the budget expires before a terminal status, it returns the latest non-terminal status with pollingTimedOut:true \u2014 call again (with `wait`) to keep blocking. IMPORTANT: a job stuck IN_QUEUE does not necessarily mean a capacity shortage \u2014 a worker may have spun up and crash-looped. When the job is IN_QUEUE this tool attaches a workerHealth summary and a hint. To dig deeper call list-endpoint-workers, then read stream-worker-logs regardless of the status a worker reports: a container failing to start loops while its worker still shows RUNNING or THROTTLED and unhealthy stays 0, so UNHEALTHY is one symptom of a crash loop and not a test for it. The logs are the authority.",
|
|
6094
6706
|
inputSchema: {
|
|
6095
6707
|
type: "object",
|
|
@@ -6137,6 +6749,7 @@ var getJobStatus = {
|
|
|
6137
6749
|
};
|
|
6138
6750
|
var streamJob = {
|
|
6139
6751
|
name: "stream-job",
|
|
6752
|
+
annotations: readOnly,
|
|
6140
6753
|
description: `Retrieve streaming output from a Serverless job. The worker must support streaming output. Polls /stream/{jobId} and collects chunks until the status is COMPLETED, FAILED, CANCELLED, or TIMED_OUT, for up to ${formatBudget(STREAM_BUDGET_MS)}. If the budget expires first, returns the chunks collected so far with pollingTimedOut: true \u2014 call stream-job again to resume where it left off, or get-job-status to check without streaming.`,
|
|
6141
6754
|
inputSchema: {
|
|
6142
6755
|
type: "object",
|
|
@@ -6167,6 +6780,7 @@ var streamJob = {
|
|
|
6167
6780
|
};
|
|
6168
6781
|
var cancelJob = {
|
|
6169
6782
|
name: "cancel-job",
|
|
6783
|
+
annotations: destructive,
|
|
6170
6784
|
description: "Cancel a Serverless job that is queued or in progress.",
|
|
6171
6785
|
inputSchema: {
|
|
6172
6786
|
type: "object",
|
|
@@ -6191,6 +6805,7 @@ var cancelJob = {
|
|
|
6191
6805
|
};
|
|
6192
6806
|
var retryJob = {
|
|
6193
6807
|
name: "retry-job",
|
|
6808
|
+
annotations: write,
|
|
6194
6809
|
description: "Retry a failed or timed-out Serverless job. Only works for jobs with FAILED or TIMED_OUT status. The previous output is removed and the job is requeued.",
|
|
6195
6810
|
inputSchema: {
|
|
6196
6811
|
type: "object",
|
|
@@ -6215,6 +6830,7 @@ var retryJob = {
|
|
|
6215
6830
|
};
|
|
6216
6831
|
var endpointHealth = {
|
|
6217
6832
|
name: "endpoint-health",
|
|
6833
|
+
annotations: readOnly,
|
|
6218
6834
|
description: "Get the endpoint-level health rollup for a Serverless endpoint: worker counts by state plus job queue statistics. This is the runtime plane's own /health view and it can lag or disagree with the per-worker truth \u2014 when a job is stuck IN_QUEUE, prefer list-endpoint-workers over this rollup for per-worker state \u2014 but treat neither as the authority on crash loops, because a container failing to start loops while its worker reports RUNNING or THROTTLED and unhealthy stays 0; stream-worker-logs is what settles it, and note that get-job-status already attaches that worker summary and a hint on every IN_QUEUE result. Zero workers here means the endpoint is waiting for GPU capacity.",
|
|
6219
6835
|
inputSchema: {
|
|
6220
6836
|
type: "object",
|
|
@@ -6234,6 +6850,7 @@ var endpointHealth = {
|
|
|
6234
6850
|
};
|
|
6235
6851
|
var purgeEndpointQueue = {
|
|
6236
6852
|
name: "purge-endpoint-queue",
|
|
6853
|
+
annotations: destructive,
|
|
6237
6854
|
description: "Remove all pending jobs from a Serverless endpoint queue. Only affects queued jobs \u2014 in-progress jobs continue running. Use this for error recovery or clearing outdated requests.",
|
|
6238
6855
|
inputSchema: {
|
|
6239
6856
|
type: "object",
|
|
@@ -6269,13 +6886,16 @@ var jobTools = [
|
|
|
6269
6886
|
// src/specgen/tools/list-endpoints.ts
|
|
6270
6887
|
var listEndpoints = {
|
|
6271
6888
|
name: "list-endpoints",
|
|
6889
|
+
annotations: readOnly,
|
|
6272
6890
|
description: "List serverless endpoints owned by the account (trimmed: id, name, image, compute config, worker counts, scaling, data centers per endpoint \u2014 env vars and request URLs are omitted; use get-endpoint for the full object). Returns a page; pass cursor=nextCursor for more.",
|
|
6273
6891
|
inputSchema: {
|
|
6274
6892
|
type: "object",
|
|
6275
6893
|
properties: { ...listPaginationProperties }
|
|
6276
6894
|
},
|
|
6277
6895
|
async handler(ctx, args) {
|
|
6278
|
-
const { data, error, response } = await ctx.sdk.GET("/v2/serverless"
|
|
6896
|
+
const { data, error, response } = await ctx.sdk.GET("/v2/serverless", {
|
|
6897
|
+
params: { query: serverPageQuery(args) }
|
|
6898
|
+
});
|
|
6279
6899
|
if (!response.ok) return restError(response, error);
|
|
6280
6900
|
if (!data || !Array.isArray(data.endpoints)) {
|
|
6281
6901
|
return {
|
|
@@ -6300,10 +6920,10 @@ var listEndpoints = {
|
|
|
6300
6920
|
return {
|
|
6301
6921
|
ok: true,
|
|
6302
6922
|
status: response.status,
|
|
6303
|
-
payload:
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
}
|
|
6923
|
+
payload: {
|
|
6924
|
+
items: trimmed,
|
|
6925
|
+
pagination: serverPagination(data.pagination, trimmed.length)
|
|
6926
|
+
}
|
|
6307
6927
|
};
|
|
6308
6928
|
}
|
|
6309
6929
|
};
|
|
@@ -6311,10 +6931,16 @@ var listEndpoints = {
|
|
|
6311
6931
|
// src/specgen/tools/list-templates.ts
|
|
6312
6932
|
var listTemplates = {
|
|
6313
6933
|
name: "list-templates",
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6934
|
+
annotations: readOnly,
|
|
6935
|
+
description: "List templates visible to the account. Returns id, name, image, and serverless flag per template; use get-template for full detail. Returns 20 templates per page by default. To find a template, follow `pagination.nextCursor` until `hasNextPage` is false: a name missing from one page may be on a later one.",
|
|
6936
|
+
inputSchema: {
|
|
6937
|
+
type: "object",
|
|
6938
|
+
properties: { ...listPaginationProperties }
|
|
6939
|
+
},
|
|
6940
|
+
async handler(ctx, args) {
|
|
6941
|
+
const { data, error, response } = await ctx.sdk.GET("/v2/templates", {
|
|
6942
|
+
params: { query: serverPageQuery(args) }
|
|
6943
|
+
});
|
|
6318
6944
|
if (!response.ok) return restError(response, error);
|
|
6319
6945
|
if (!data || !Array.isArray(data.templates)) {
|
|
6320
6946
|
return {
|
|
@@ -6332,7 +6958,8 @@ var listTemplates = {
|
|
|
6332
6958
|
name: template.name,
|
|
6333
6959
|
image: template.image,
|
|
6334
6960
|
serverless: template.serverless
|
|
6335
|
-
}))
|
|
6961
|
+
})),
|
|
6962
|
+
pagination: serverPagination(data.pagination, data.templates.length)
|
|
6336
6963
|
}
|
|
6337
6964
|
};
|
|
6338
6965
|
}
|
|
@@ -6341,7 +6968,7 @@ var listTemplates = {
|
|
|
6341
6968
|
// src/specgen/tools/logs.ts
|
|
6342
6969
|
init_hosts();
|
|
6343
6970
|
|
|
6344
|
-
// node_modules/.pnpm/@runpod+typescript-api-sdk@0.
|
|
6971
|
+
// node_modules/.pnpm/@runpod+typescript-api-sdk@0.2.0/node_modules/@runpod/typescript-api-sdk/dist/index.js
|
|
6345
6972
|
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
6346
6973
|
var supportsRequestInitExt = () => {
|
|
6347
6974
|
return typeof process === "object" && Number.parseInt(process?.versions?.node?.substring(0, 2)) >= 18 && process.versions.undici;
|
|
@@ -7745,6 +8372,7 @@ function logParams(args) {
|
|
|
7745
8372
|
}
|
|
7746
8373
|
var streamPodLogs = {
|
|
7747
8374
|
name: "stream-pod-logs",
|
|
8375
|
+
annotations: readOnly,
|
|
7748
8376
|
description: "Read a bounded snapshot of a Pod's logs (container and/or system source). Holds the live stream open for maxWaitMs and returns the parsed log lines; `truncated: true` means the byte cap cut the output. Use `since` to resume from a timestamp.",
|
|
7749
8377
|
inputSchema: {
|
|
7750
8378
|
type: "object",
|
|
@@ -7766,6 +8394,7 @@ var streamPodLogs = {
|
|
|
7766
8394
|
};
|
|
7767
8395
|
var streamWorkerLogs = {
|
|
7768
8396
|
name: "stream-worker-logs",
|
|
8397
|
+
annotations: readOnly,
|
|
7769
8398
|
description: "Read a bounded snapshot of a Serverless worker's logs (container and/or system source). Holds the live stream open for maxWaitMs and returns the parsed log lines; `truncated: true` means the byte cap cut the output. Get worker IDs from list-endpoint-workers. Use this whenever a job stays IN_QUEUE while workers exist, whatever status they report \u2014 a crash-looping container often still shows RUNNING or THROTTLED with unhealthy 0, so these logs, not the worker status, are what identify a crash loop.",
|
|
7770
8399
|
inputSchema: {
|
|
7771
8400
|
type: "object",
|
|
@@ -7806,6 +8435,7 @@ function parseMetadata(metadata) {
|
|
|
7806
8435
|
}
|
|
7807
8436
|
var listPublicEndpoints = {
|
|
7808
8437
|
name: "list-public-endpoints",
|
|
8438
|
+
annotations: readOnly,
|
|
7809
8439
|
description: "List Runpod Public Endpoints \u2014 managed, pay-per-use model APIs (text, image, video, audio) that require no deployment. Public catalog, no auth required. Each result includes the endpointId to call with run-endpoint/runsync-endpoint (or via https://api.runpod.ai/v2/{endpointId}), the model name, modality, owner, and pricing. Only live endpoints are returned by default; set includeOffline:true to also list ones that are not currently live.",
|
|
7810
8440
|
inputSchema: {
|
|
7811
8441
|
type: "object",
|
|
@@ -7904,6 +8534,316 @@ var listPublicEndpoints = {
|
|
|
7904
8534
|
})
|
|
7905
8535
|
};
|
|
7906
8536
|
|
|
8537
|
+
// src/specgen/tools/knowledge.ts
|
|
8538
|
+
var import_plugin_knowledge = require("@runpod/plugin-knowledge");
|
|
8539
|
+
var knowledge = (0, import_plugin_knowledge.loadKnowledge)();
|
|
8540
|
+
var GUIDE_KINDS = ["skill", "reference", "golden-path"];
|
|
8541
|
+
var STOPWORDS = new Set(
|
|
8542
|
+
"a an and are as at be by can do does for from how i in is it my of on or the to what when why with you your".split(
|
|
8543
|
+
" "
|
|
8544
|
+
)
|
|
8545
|
+
);
|
|
8546
|
+
var singular = (word) => {
|
|
8547
|
+
if (word.length > 4 && word.endsWith("ies")) return `${word.slice(0, -3)}y`;
|
|
8548
|
+
if (word.length > 3 && word.endsWith("s") && !word.endsWith("ss"))
|
|
8549
|
+
return word.slice(0, -1);
|
|
8550
|
+
return word;
|
|
8551
|
+
};
|
|
8552
|
+
var words = (text) => text.toLowerCase().split(/[^a-z0-9]+/).filter((word) => word.length > 1 && !STOPWORDS.has(word)).map(singular);
|
|
8553
|
+
function editDistance(a, b, max) {
|
|
8554
|
+
if (Math.abs(a.length - b.length) > max) return max + 1;
|
|
8555
|
+
let previous = Array.from({ length: b.length + 1 }, (_, i) => i);
|
|
8556
|
+
for (let i = 1; i <= a.length; i++) {
|
|
8557
|
+
const current = [i];
|
|
8558
|
+
for (let j = 1; j <= b.length; j++) {
|
|
8559
|
+
current[j] = Math.min(
|
|
8560
|
+
previous[j] + 1,
|
|
8561
|
+
current[j - 1] + 1,
|
|
8562
|
+
previous[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1)
|
|
8563
|
+
);
|
|
8564
|
+
}
|
|
8565
|
+
if (Math.min(...current) > max) return max + 1;
|
|
8566
|
+
previous = current;
|
|
8567
|
+
}
|
|
8568
|
+
return previous[b.length];
|
|
8569
|
+
}
|
|
8570
|
+
var typoBudget = (text) => text.length >= 8 ? 2 : text.length >= 4 ? 1 : 0;
|
|
8571
|
+
var oneTypo = (word, term) => term.length >= 5 && editDistance(word, term, 1) <= 1;
|
|
8572
|
+
var termMatches = (word, term) => word.startsWith(term) || oneTypo(word, term);
|
|
8573
|
+
var nameMatches = (name, term) => name === term || oneTypo(name, term);
|
|
8574
|
+
var guideSummary = ({
|
|
8575
|
+
id,
|
|
8576
|
+
kind,
|
|
8577
|
+
title,
|
|
8578
|
+
description,
|
|
8579
|
+
lanes,
|
|
8580
|
+
mcp,
|
|
8581
|
+
needs_shell,
|
|
8582
|
+
concepts
|
|
8583
|
+
}) => ({
|
|
8584
|
+
id,
|
|
8585
|
+
kind,
|
|
8586
|
+
title,
|
|
8587
|
+
description,
|
|
8588
|
+
lanes,
|
|
8589
|
+
mcp,
|
|
8590
|
+
needs_shell,
|
|
8591
|
+
concepts
|
|
8592
|
+
});
|
|
8593
|
+
function linkedGuides(conceptId) {
|
|
8594
|
+
const byId = new Map(knowledge.guides.map((guide) => [guide.id, guide]));
|
|
8595
|
+
const seen = /* @__PURE__ */ new Set();
|
|
8596
|
+
const examples = [];
|
|
8597
|
+
const docs = [];
|
|
8598
|
+
for (const link of knowledge.links) {
|
|
8599
|
+
if (link.to !== conceptId || seen.has(link.from)) continue;
|
|
8600
|
+
seen.add(link.from);
|
|
8601
|
+
const guide = byId.get(link.from);
|
|
8602
|
+
if (!guide) continue;
|
|
8603
|
+
if (guide.kind === "golden-path")
|
|
8604
|
+
examples.push({ id: guide.id, title: guide.title, mcp: guide.mcp });
|
|
8605
|
+
else
|
|
8606
|
+
docs.push({
|
|
8607
|
+
id: guide.id,
|
|
8608
|
+
title: guide.title,
|
|
8609
|
+
...link.rules ? { rules: link.rules } : {}
|
|
8610
|
+
});
|
|
8611
|
+
}
|
|
8612
|
+
return { examples, docs };
|
|
8613
|
+
}
|
|
8614
|
+
var conceptIndex = /* @__PURE__ */ new Map();
|
|
8615
|
+
for (const concept of knowledge.concepts) {
|
|
8616
|
+
for (const key of [concept.id, concept.name, ...concept.aliases]) {
|
|
8617
|
+
if (!conceptIndex.has(key.toLowerCase()))
|
|
8618
|
+
conceptIndex.set(key.toLowerCase(), concept);
|
|
8619
|
+
}
|
|
8620
|
+
}
|
|
8621
|
+
var conceptKey = (text) => text.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean).map(singular).join(" ");
|
|
8622
|
+
var conceptKeyIndex = /* @__PURE__ */ new Map();
|
|
8623
|
+
for (const [key, concept] of conceptIndex) {
|
|
8624
|
+
if (!conceptKeyIndex.has(conceptKey(key)))
|
|
8625
|
+
conceptKeyIndex.set(conceptKey(key), concept);
|
|
8626
|
+
}
|
|
8627
|
+
function resolveConcept(input) {
|
|
8628
|
+
const exact = conceptIndex.get(input.trim().toLowerCase());
|
|
8629
|
+
if (exact) return { concept: exact };
|
|
8630
|
+
const key = conceptKey(input);
|
|
8631
|
+
const plural = conceptKeyIndex.get(key);
|
|
8632
|
+
if (plural) return { concept: plural, matchedAs: key };
|
|
8633
|
+
const budget = typoBudget(key);
|
|
8634
|
+
let best;
|
|
8635
|
+
let tied = false;
|
|
8636
|
+
for (const [candidate, concept] of conceptKeyIndex) {
|
|
8637
|
+
const distance = editDistance(key, candidate, budget);
|
|
8638
|
+
if (distance > budget) continue;
|
|
8639
|
+
if (!best || distance < best.distance) {
|
|
8640
|
+
best = { concept, key: candidate, distance };
|
|
8641
|
+
tied = false;
|
|
8642
|
+
} else if (distance === best.distance && concept.id !== best.concept.id) {
|
|
8643
|
+
tied = true;
|
|
8644
|
+
}
|
|
8645
|
+
}
|
|
8646
|
+
return best && !tied ? { concept: best.concept, matchedAs: best.key } : void 0;
|
|
8647
|
+
}
|
|
8648
|
+
var ruleIndex = /* @__PURE__ */ new Map();
|
|
8649
|
+
for (const concept of knowledge.concepts) {
|
|
8650
|
+
for (const rule of concept.rules) ruleIndex.set(rule.id, { rule, concept });
|
|
8651
|
+
}
|
|
8652
|
+
var source = {
|
|
8653
|
+
plugin_version: knowledge.version,
|
|
8654
|
+
plugin_commit: knowledge.commit
|
|
8655
|
+
};
|
|
8656
|
+
var listGuides = {
|
|
8657
|
+
name: "list-guides",
|
|
8658
|
+
annotations: bundledRead,
|
|
8659
|
+
description: "List the official Runpod guides: skills (how to work with each tool), reference docs (how Runpod works), and golden paths (live-verified end-to-end walkthroughs such as a dev pod, a Whisper endpoint or a fine-tune-to-serverless pipeline). Read one with read-guide. For a golden path, mcp says whether an agent with only these MCP tools can finish it: full (follow it with tool calls), partial (use it for the plan and facts; name the step the user must run in a terminal), none (reference only). Skills and reference docs have mcp null. concepts lists the concept ids it works with (see lookup-concept). Filter with kind, query or concept.",
|
|
8660
|
+
inputSchema: {
|
|
8661
|
+
type: "object",
|
|
8662
|
+
properties: {
|
|
8663
|
+
kind: {
|
|
8664
|
+
type: "string",
|
|
8665
|
+
enum: [...GUIDE_KINDS],
|
|
8666
|
+
description: "Only this kind of guide."
|
|
8667
|
+
},
|
|
8668
|
+
query: {
|
|
8669
|
+
type: "string",
|
|
8670
|
+
description: "Words to match against the id, title and description."
|
|
8671
|
+
},
|
|
8672
|
+
concept: {
|
|
8673
|
+
type: "string",
|
|
8674
|
+
description: 'Only guides linked to this concept id, for example "network-volume".'
|
|
8675
|
+
}
|
|
8676
|
+
},
|
|
8677
|
+
additionalProperties: false
|
|
8678
|
+
},
|
|
8679
|
+
handler: async (_ctx, args) => {
|
|
8680
|
+
const kind = args.kind;
|
|
8681
|
+
const terms = words(String(args.query ?? ""));
|
|
8682
|
+
const concept = args.concept ? String(args.concept).trim() : void 0;
|
|
8683
|
+
const guides = knowledge.guides.filter((guide) => !kind || guide.kind === kind).filter((guide) => !concept || guide.concepts.includes(concept)).filter((guide) => {
|
|
8684
|
+
if (!terms.length) return true;
|
|
8685
|
+
const haystack = `${guide.id} ${guide.title} ${guide.description}`.toLowerCase();
|
|
8686
|
+
return terms.some((term) => haystack.includes(term));
|
|
8687
|
+
}).map(guideSummary);
|
|
8688
|
+
return ok({ ...source, count: guides.length, guides });
|
|
8689
|
+
}
|
|
8690
|
+
};
|
|
8691
|
+
var readGuide = {
|
|
8692
|
+
name: "read-guide",
|
|
8693
|
+
annotations: bundledRead,
|
|
8694
|
+
description: 'Read one official Runpod guide in full, by the id list-guides returns (for example "runpod-usage/storage" or "golden-path/06-dev-pod").',
|
|
8695
|
+
inputSchema: {
|
|
8696
|
+
type: "object",
|
|
8697
|
+
properties: {
|
|
8698
|
+
id: { type: "string", description: "The guide id from list-guides." }
|
|
8699
|
+
},
|
|
8700
|
+
required: ["id"],
|
|
8701
|
+
additionalProperties: false
|
|
8702
|
+
},
|
|
8703
|
+
handler: async (_ctx, args) => {
|
|
8704
|
+
const id = String(args.id).trim();
|
|
8705
|
+
const guide = knowledge.guides.find((candidate) => candidate.id === id);
|
|
8706
|
+
if (!guide) {
|
|
8707
|
+
const close = knowledge.guides.filter(
|
|
8708
|
+
(candidate) => candidate.id.includes(id) || id.includes(candidate.id)
|
|
8709
|
+
).map((candidate) => candidate.id);
|
|
8710
|
+
return {
|
|
8711
|
+
ok: false,
|
|
8712
|
+
status: 404,
|
|
8713
|
+
payload: {
|
|
8714
|
+
error: `No guide with id "${id}".`,
|
|
8715
|
+
hint: close.length ? `Did you mean: ${close.join(", ")}?` : "Call list-guides for the ids."
|
|
8716
|
+
}
|
|
8717
|
+
};
|
|
8718
|
+
}
|
|
8719
|
+
return ok({
|
|
8720
|
+
...source,
|
|
8721
|
+
...guideSummary(guide),
|
|
8722
|
+
parent: guide.parent,
|
|
8723
|
+
path: guide.path,
|
|
8724
|
+
body: guide.body
|
|
8725
|
+
});
|
|
8726
|
+
}
|
|
8727
|
+
};
|
|
8728
|
+
var lookupConcept = {
|
|
8729
|
+
name: "lookup-concept",
|
|
8730
|
+
annotations: bundledRead,
|
|
8731
|
+
description: 'Look up one Runpod concept (pod, network volume, machine, worker, template, \u2026) by id, name or alias; case, plurals and small typos are tolerated, and `matched_as` shows the key used when the match was not exact. Returns its summary, fields, states, relations and rules, each rule with the public source it comes from, the concepts that point at it, and the linked guides: examples (golden paths that use it, with their mcp level) and docs (skills and reference docs that explain it). Use it for exact facts, for example "is a volume disk tied to one machine" or "what happens to a stopped pod\'s GPU".',
|
|
8732
|
+
inputSchema: {
|
|
8733
|
+
type: "object",
|
|
8734
|
+
properties: {
|
|
8735
|
+
concept: {
|
|
8736
|
+
type: "string",
|
|
8737
|
+
description: 'An id, name or alias, such as "pod", "Network volume" or "volume disk".'
|
|
8738
|
+
}
|
|
8739
|
+
},
|
|
8740
|
+
required: ["concept"],
|
|
8741
|
+
additionalProperties: false
|
|
8742
|
+
},
|
|
8743
|
+
handler: async (_ctx, args) => {
|
|
8744
|
+
const resolved = resolveConcept(String(args.concept));
|
|
8745
|
+
if (!resolved) {
|
|
8746
|
+
const ref = conceptKey(String(args.concept));
|
|
8747
|
+
const close = [...conceptKeyIndex.keys()].filter(
|
|
8748
|
+
(key) => key.includes(ref) || editDistance(key, ref, typoBudget(ref) + 1) <= typoBudget(ref) + 1
|
|
8749
|
+
).slice(0, 10);
|
|
8750
|
+
return {
|
|
8751
|
+
ok: false,
|
|
8752
|
+
status: 404,
|
|
8753
|
+
payload: {
|
|
8754
|
+
error: `No concept matches "${args.concept}".`,
|
|
8755
|
+
hint: close.length ? `Close matches: ${close.join(", ")}.` : "Try search-concepts with a few words instead."
|
|
8756
|
+
}
|
|
8757
|
+
};
|
|
8758
|
+
}
|
|
8759
|
+
const { concept, matchedAs } = resolved;
|
|
8760
|
+
const pointedAtBy = knowledge.concepts.flatMap((other) => [
|
|
8761
|
+
...other.is_a === concept.id ? [{ concept: other.id, type: "is_a" }] : [],
|
|
8762
|
+
...other.part_of === concept.id ? [{ concept: other.id, type: "part_of" }] : [],
|
|
8763
|
+
...other.relations.filter((relation) => relation.target === concept.id).map((relation) => ({ concept: other.id, type: relation.type }))
|
|
8764
|
+
]);
|
|
8765
|
+
const linkedRules = [...new Set(concept.rules.flatMap((rule) => rule.see))].map((id) => ruleIndex.get(id)).filter((entry) => entry !== void 0).map(({ rule, concept: owner }) => ({
|
|
8766
|
+
concept: owner.id,
|
|
8767
|
+
id: rule.id,
|
|
8768
|
+
statement: rule.statement.trim()
|
|
8769
|
+
}));
|
|
8770
|
+
return ok({
|
|
8771
|
+
...source,
|
|
8772
|
+
...matchedAs ? { matched_as: matchedAs } : {},
|
|
8773
|
+
...concept,
|
|
8774
|
+
pointed_at_by: pointedAtBy,
|
|
8775
|
+
linked_rules: linkedRules,
|
|
8776
|
+
...linkedGuides(concept.id)
|
|
8777
|
+
});
|
|
8778
|
+
}
|
|
8779
|
+
};
|
|
8780
|
+
var searchConcepts = {
|
|
8781
|
+
name: "search-concepts",
|
|
8782
|
+
annotations: bundledRead,
|
|
8783
|
+
description: 'Search the rules of the Runpod concept graph by words, for example "restart stopped pod no gpu" or "network volume data center". Returns the best-matching rules with their concept and public evidence. Follow up with lookup-concept for the full concept.',
|
|
8784
|
+
inputSchema: {
|
|
8785
|
+
type: "object",
|
|
8786
|
+
properties: {
|
|
8787
|
+
query: {
|
|
8788
|
+
type: "string",
|
|
8789
|
+
description: "A few words describing the question."
|
|
8790
|
+
},
|
|
8791
|
+
limit: {
|
|
8792
|
+
type: "integer",
|
|
8793
|
+
minimum: 1,
|
|
8794
|
+
maximum: 25,
|
|
8795
|
+
description: "Most rules to return. Default 8."
|
|
8796
|
+
}
|
|
8797
|
+
},
|
|
8798
|
+
required: ["query"],
|
|
8799
|
+
additionalProperties: false
|
|
8800
|
+
},
|
|
8801
|
+
handler: async (_ctx, args) => {
|
|
8802
|
+
const terms = words(String(args.query));
|
|
8803
|
+
if (!terms.length) return badRequest("query needs at least one word.");
|
|
8804
|
+
const limit = Math.min(Math.max(Number(args.limit) || 8, 1), 25);
|
|
8805
|
+
const hits = [...ruleIndex.values()].map(({ rule, concept }) => {
|
|
8806
|
+
const statement = words(rule.statement);
|
|
8807
|
+
const names = words(
|
|
8808
|
+
[concept.id, concept.name, ...concept.aliases].join(" ")
|
|
8809
|
+
);
|
|
8810
|
+
const ruleId = words(rule.id);
|
|
8811
|
+
const score = terms.reduce(
|
|
8812
|
+
(total, term) => total + statement.filter((word) => termMatches(word, term)).length + (names.some((name) => nameMatches(name, term)) ? 3 : 0) + (ruleId.includes(term) ? 1 : 0),
|
|
8813
|
+
0
|
|
8814
|
+
);
|
|
8815
|
+
const matched = terms.filter(
|
|
8816
|
+
(term) => statement.some((word) => termMatches(word, term)) || names.some((name) => nameMatches(name, term))
|
|
8817
|
+
).length;
|
|
8818
|
+
return { rule, concept, score: score * matched };
|
|
8819
|
+
}).filter((hit) => hit.score > 0).sort((a, b) => b.score - a.score).slice(0, limit).map(({ rule, concept }) => ({
|
|
8820
|
+
concept: concept.id,
|
|
8821
|
+
concept_name: concept.name,
|
|
8822
|
+
id: rule.id,
|
|
8823
|
+
statement: rule.statement.trim(),
|
|
8824
|
+
status: rule.status,
|
|
8825
|
+
conflict: rule.conflict,
|
|
8826
|
+
evidence: rule.evidence
|
|
8827
|
+
}));
|
|
8828
|
+
return ok({ ...source, count: hits.length, rules: hits });
|
|
8829
|
+
}
|
|
8830
|
+
};
|
|
8831
|
+
var knowledgeTools = [
|
|
8832
|
+
listGuides,
|
|
8833
|
+
readGuide,
|
|
8834
|
+
lookupConcept,
|
|
8835
|
+
searchConcepts
|
|
8836
|
+
];
|
|
8837
|
+
var GUIDE_URI_PREFIX = "runpod://guides/";
|
|
8838
|
+
var guideResources = knowledge.guides.map((guide) => ({
|
|
8839
|
+
uri: `${GUIDE_URI_PREFIX}${guide.id}`,
|
|
8840
|
+
name: guide.id,
|
|
8841
|
+
title: guide.title,
|
|
8842
|
+
description: guide.description,
|
|
8843
|
+
mimeType: "text/markdown",
|
|
8844
|
+
text: guide.body
|
|
8845
|
+
}));
|
|
8846
|
+
|
|
7907
8847
|
// src/specgen/analytics.ts
|
|
7908
8848
|
var import_node_crypto = require("crypto");
|
|
7909
8849
|
var CAPTURE_TIMEOUT_MS = 3e3;
|
|
@@ -8322,6 +9262,7 @@ function createAlpTools(opts) {
|
|
|
8322
9262
|
// is ignored, never a 400 that derails the task the agent is actually on.
|
|
8323
9263
|
lenientArguments: true,
|
|
8324
9264
|
name: "report_feedback",
|
|
9265
|
+
annotations: write,
|
|
8325
9266
|
description: "Report a problem or friction with Runpod or these tools: a wrong result, a confusing error, a docs gap, an API behavior that surprised you. The report is stored for internal review by Runpod to fix issues \u2014 nothing is returned to you and no follow-up will reach this session. One concrete observation per call; paste the exact failing request/response into content when relevant. Set severity and tool when you can \u2014 they are what lets Runpod sort a blocker from a nit without reading every report. Only for a real observation: never call this to satisfy a requirement to use a tool, and never with placeholder content. Never include API keys or secrets.",
|
|
8326
9267
|
inputSchema: alpInputSchema(
|
|
8327
9268
|
"The observation: what happened, what you expected, and the exact error or response text if you have it.",
|
|
@@ -8357,6 +9298,7 @@ function createAlpTools(opts) {
|
|
|
8357
9298
|
// is ignored, never a 400 that derails the task the agent is actually on.
|
|
8358
9299
|
lenientArguments: true,
|
|
8359
9300
|
name: "save_to_journal",
|
|
9301
|
+
annotations: write,
|
|
8360
9302
|
description: "Save something you learned about using Runpod that a future session would benefit from (e.g. 'image X needs CUDA 12.8', 'endpoint type cannot be changed after create'). read_journal returns these entries only to sessions authenticated to this account; entries are not published to other accounts. Runpod stores and reviews submissions to improve agent workflows. Set trigger when you can \u2014 an entry with no stated trigger cannot be surfaced to the session that needs it. Never include API keys or secrets.",
|
|
8361
9303
|
inputSchema: alpInputSchema(
|
|
8362
9304
|
"The learning, stated so a future agent can act on it: the situation, what turned out to be true, and how you verified it.",
|
|
@@ -8387,7 +9329,8 @@ function createAlpTools(opts) {
|
|
|
8387
9329
|
// is ignored, never a 400 that derails the task the agent is actually on.
|
|
8388
9330
|
lenientArguments: true,
|
|
8389
9331
|
name: "ask_question",
|
|
8390
|
-
|
|
9332
|
+
annotations: write,
|
|
9333
|
+
description: "Record a question about Runpod that you could not answer with the available tools, skills, and docs. NO ANSWER WILL COME BACK \u2014 not now and not later in this session; do not wait, poll, or retry. Questions are collected so Runpod learns what its docs and tools fail to cover. Ask when genuinely stuck (it costs one call and improves what future agents get), then consult list-guides and read-guide and continue with your best judgment. Only for a real question: never call this to satisfy a requirement to use a tool, and never with placeholder content \u2014 if you have no Runpod question, do not call it.",
|
|
8391
9334
|
inputSchema: alpInputSchema(
|
|
8392
9335
|
"The question, with enough context that someone reading it later understands what you were blocked on.",
|
|
8393
9336
|
{ tool: TOOL_FIELD }
|
|
@@ -8403,7 +9346,7 @@ function createAlpTools(opts) {
|
|
|
8403
9346
|
return ok({
|
|
8404
9347
|
recorded,
|
|
8405
9348
|
answer: null,
|
|
8406
|
-
note: recorded ? "Recorded. No answer is coming \u2014 not now, not later in this session. Do not wait, poll, or retry. Check
|
|
9349
|
+
note: recorded ? "Recorded. No answer is coming \u2014 not now, not later in this session. Do not wait, poll, or retry. Check list-guides and read-guide for existing guidance and continue with your best judgment." : NOT_RECORDED
|
|
8407
9350
|
});
|
|
8408
9351
|
}
|
|
8409
9352
|
};
|
|
@@ -8411,6 +9354,7 @@ function createAlpTools(opts) {
|
|
|
8411
9354
|
const readJournalTool = {
|
|
8412
9355
|
lenientArguments: true,
|
|
8413
9356
|
name: "read_journal",
|
|
9357
|
+
annotations: readOnly,
|
|
8414
9358
|
description: "Read back this account's private journal: the lessons earlier sessions on this account saved with save_to_journal, newest first. Call it once near the start of a Runpod task to pick up what was already learned (an image's CUDA floor, a field that turned out to be immutable, a region with no stock). Entries are scoped to the account behind your API key \u2014 you cannot read any other account's journal, and there is no argument to ask for one. Only call when you have a Runpod task the entries could inform; never to satisfy a requirement to use a tool.",
|
|
8415
9359
|
inputSchema: {
|
|
8416
9360
|
type: "object",
|
|
@@ -8461,23 +9405,26 @@ var curatedTools = [
|
|
|
8461
9405
|
getCapacity,
|
|
8462
9406
|
...hubTools,
|
|
8463
9407
|
setEndpointGpus,
|
|
8464
|
-
listPublicEndpoints
|
|
9408
|
+
listPublicEndpoints,
|
|
9409
|
+
...knowledgeTools
|
|
8465
9410
|
];
|
|
8466
9411
|
var SERVER_INSTRUCTIONS = `These tools cover the Runpod v2 REST surface: compute catalog (GPUs, CPUs, data centers, capacity), pods, serverless endpoints and jobs, templates, network volumes, container registries, billing, public endpoints, and the Hub.
|
|
8467
9412
|
|
|
8468
9413
|
Answer from live reads, as facts. Account and availability questions can only be answered from tool data: call the relevant list-/get- tool and quote the figures, names, and ids it returns verbatim. State stock and status definitively from the read you just made \u2014 never "probably" or "check later". When the user names a resource loosely ("my comfyui pod"), resolve it with a list- tool; ask only on genuine ambiguity. If nothing exists (no pods, zero spend), say exactly that \u2014 an honest empty answer is complete.
|
|
8469
9414
|
|
|
8470
|
-
Commit; don't hedge, don't defer. Diagnosis means one most-likely cause plus its fix, from the evidence \u2014 not a menu, not "run these and tell me". For jobs, block server-side
|
|
9415
|
+
Commit; don't hedge, don't defer. Diagnosis means one most-likely cause plus its fix, from the evidence \u2014 not a menu, not "run these and tell me". For jobs, submit with run-endpoint and block server-side with get-job-status wait (up to ${STATUS_WAIT_MAX_MS} ms); use runsync-endpoint only for a warm endpoint and a fast job. Expect first-job cold starts of minutes, and check worker states between holds; when a wait outlasts what the tools can hold, report the evidenced state \u2014 what was created, what was submitted, what the worker states show \u2014 and the recommended next step. Offering to keep watching is fine; stopping mid-wait without that report is not. Never claim success without the artifact that proves it (the transcript text, the output payload).
|
|
8471
9416
|
|
|
8472
|
-
Mutations cost money and bind to what this conversation created. State the hourly price before creating anything billable
|
|
9417
|
+
Mutations cost money and bind to what this conversation created or the user named. State the hourly price before creating anything billable; create-cluster waits for the user's explicit go on the quoted shape and total hourly price. Read before you mutate, and stop, update, or delete only resources your own tool calls created in this conversation, or the one resource the user named by id or an unambiguous name \u2014 and then only the change they asked for; delete a user-named resource only when they asked for that delete. A name that looks like test junk, or one you found by listing, is not attribution. For anything you cannot attribute, the complete answer is the audit: what you checked, what qualifies, the ids, and the exact actions for the user to take.
|
|
8473
9418
|
|
|
8474
9419
|
These tools manage infrastructure only. They do not do SSH sessions, file transfer to or from pods, local image builds, or interactive terminals \u2014 say plainly when a task needs one of those and name the real path (the Runpod console, runpodctl) instead of improvising.
|
|
8475
9420
|
|
|
8476
|
-
|
|
9421
|
+
OFFICIAL GUIDES AND FACTS. list-guides and read-guide serve the official Runpod plugin's skills, reference docs and live-verified golden paths, so you have them even without the plugin installed. For a multi-step or billable task, look for a matching golden path first. lookup-concept and search-concepts answer exact questions about how Runpod works (what a stopped pod keeps, where a volume lives) with the public source for each fact.
|
|
8477
9422
|
|
|
8478
|
-
|
|
9423
|
+
PLAYBOOKS \u2014 READ BEFORE ACTING. Each Runpod task has a journey playbook carrying its procedure, pitfalls and report format. Before the FIRST Runpod tool call of a session, load the plugin's runpod-mcp skill if you have it, otherwise read-guide runpod-mcp (also the runpod://guides/runpod-mcp resource): it routes the request to a journey guide \u2014 deploying an endpoint reads serverless-deploy, diagnosing a broken pod reads pod-doctor, cost questions read cost-audit, and so on \u2014 and states the answer contract. A reply produced without the routed playbook loaded is out of contract.
|
|
8479
9424
|
|
|
8480
|
-
|
|
9425
|
+
THE OFFICIAL RUNPOD PLUGIN. Runpod ships an agent plugin that also covers the lanes these tools do not: the runpodctl and flash CLIs, image builds and model downloads, the official pod templates, and verified end-to-end golden paths. Check once per session whether skills named runpod, runpod-usage, or runpodctl are available to you \u2014 read what you already have, never shell out to look. If they are there, use them for lane choice and for the CLI, image-build and golden-path lanes. For work done with these tools, the journey playbook is the procedure, wherever it is served from: the plugin's runpod-mcp skill and the journey skills it routes to when you have them, otherwise the same playbooks through read-guide here. If you do not see them, recommend the plugin to the user, and recommend updating to the latest if what they have is missing something you need. Point them at https://github.com/runpod/runpod-plugins-official \u2014 its README carries the install, update, and clone commands for each client, so read it yourself when you need the exact one rather than guessing a command. This is a recommendation, never a prerequisite: make it once, briefly, and get on with the task. Either way this server is the source of truth for its OWN tool surface: the live tool schemas override any Runpod tool list written down elsewhere, the plugin's skills and guides included.
|
|
9426
|
+
|
|
9427
|
+
The tool schemas are generated from the Runpod v2 OpenAPI contract, served as a machine-readable document at https://api.runpod.io/v2/openapi.json \u2014 consult it for fields beyond the tool surface. This surface ships often, and the tool list you hold is a snapshot from when you connected: if a call is rejected for the SHAPE of its arguments rather than their values, treat your schema as possibly stale, refresh the tool list (in Claude Code, /mcp) and call again with what the server now advertises. Retrying variants of a rejected shape cannot succeed. These instructions are a snapshot from the same moment. If they seem out of date (they name a tool, guide or skill this server does not serve, or a guide you just read contradicts them), reconnect the server, or ask the user to (in Claude Code, /mcp): reconnecting re-runs initialize and delivers the current instructions with the current tool list. Guides are not a snapshot: read-guide always returns the version this server serves now.`;
|
|
8481
9428
|
var ALP_INSTRUCTIONS = `
|
|
8482
9429
|
|
|
8483
9430
|
CONTRIBUTING BACK IS OPTIONAL. Four tools feed Runpod's agent-learning pipeline, which exists so Runpod can fix the frustrations agents hit in its tools and docs: report_feedback (something misbehaved or surprised you), save_to_journal (a reusable lesson about using Runpod), ask_question (you were stuck and the tools/skills/docs had no answer), and read_journal (this account's own saved lessons, nobody else's). Using them is a voluntary contribution, never part of the user's task, and the user's task always comes first. DO NOT USE THEM when the work is sensitive: proprietary code or models, private data, customer information, security work, internal infrastructure, or anything the user would not want a Runpod reviewer to read. Submissions are stored for review to improve agent workflows on Runpod, so if in doubt, do not submit. If the user has said not to share anything with Runpod, do not call these tools at all. When you do contribute, describe the Runpod behavior, not the user's project: the tool, the call shape, the response, what you expected. Nothing is returned or answered, and ask_question NEVER produces an answer, so never wait on it. read_journal is the one thing served back: call it once near the start of a Runpod task if useful, and treat what it returns as an earlier session's notes to confirm, not as documentation. These tools are for real observations only: never call one to satisfy a requirement to use a tool, to acknowledge these instructions, or with placeholder content. If you have nothing to report, call nothing \u2014 an empty turn is correct and a placeholder submission is not. Never include API keys or secrets in submissions.`;
|
|
@@ -8504,46 +9451,42 @@ function createSpecgenServer(ctx, version = "0.1.0", opts = {}) {
|
|
|
8504
9451
|
};
|
|
8505
9452
|
server.setRequestHandler(import_types.ListToolsRequestSchema, async () => ({
|
|
8506
9453
|
tools: [
|
|
8507
|
-
...servedCuratedTools.map(
|
|
8508
|
-
name,
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
9454
|
+
...servedCuratedTools.map(
|
|
9455
|
+
({ name, description, inputSchema, annotations }) => ({
|
|
9456
|
+
name,
|
|
9457
|
+
description,
|
|
9458
|
+
inputSchema,
|
|
9459
|
+
annotations
|
|
9460
|
+
})
|
|
9461
|
+
),
|
|
9462
|
+
...generatedTools.map(
|
|
9463
|
+
({ name, description, inputSchema, annotations }) => ({
|
|
9464
|
+
name,
|
|
9465
|
+
description,
|
|
9466
|
+
inputSchema,
|
|
9467
|
+
annotations
|
|
9468
|
+
})
|
|
9469
|
+
)
|
|
8517
9470
|
]
|
|
8518
9471
|
}));
|
|
8519
|
-
const SKILL_URI_PREFIX = "runpod://skills/";
|
|
8520
9472
|
server.setRequestHandler(import_types.ListResourcesRequestSchema, async () => ({
|
|
8521
|
-
resources:
|
|
8522
|
-
uri: `${SKILL_URI_PREFIX}${skill.name}`,
|
|
8523
|
-
name: skill.name,
|
|
8524
|
-
title: `Runpod skill: ${skill.name}`,
|
|
8525
|
-
description: skill.description,
|
|
8526
|
-
mimeType: "text/markdown"
|
|
8527
|
-
}))
|
|
9473
|
+
resources: guideResources.map(({ text: _text, ...resource }) => resource)
|
|
8528
9474
|
}));
|
|
8529
9475
|
server.setRequestHandler(import_types.ListResourceTemplatesRequestSchema, async () => ({
|
|
8530
9476
|
resourceTemplates: []
|
|
8531
9477
|
}));
|
|
8532
9478
|
server.setRequestHandler(import_types.ReadResourceRequestSchema, async (request) => {
|
|
8533
|
-
const
|
|
8534
|
-
|
|
8535
|
-
|
|
9479
|
+
const guide = guideResources.find(
|
|
9480
|
+
(candidate) => candidate.uri === request.params.uri
|
|
9481
|
+
);
|
|
9482
|
+
if (!guide) {
|
|
8536
9483
|
throw new Error(
|
|
8537
|
-
`Unknown resource ${request.params.uri}.
|
|
9484
|
+
`Unknown resource ${request.params.uri}. Resources are the plugin guides under ${GUIDE_URI_PREFIX}; call list-guides for the guide ids.`
|
|
8538
9485
|
);
|
|
8539
9486
|
}
|
|
8540
9487
|
return {
|
|
8541
9488
|
contents: [
|
|
8542
|
-
{
|
|
8543
|
-
uri: request.params.uri,
|
|
8544
|
-
mimeType: "text/markdown",
|
|
8545
|
-
text: skill.text
|
|
8546
|
-
}
|
|
9489
|
+
{ uri: guide.uri, mimeType: "text/markdown", text: guide.text }
|
|
8547
9490
|
]
|
|
8548
9491
|
};
|
|
8549
9492
|
});
|
|
@@ -8622,9 +9565,9 @@ function errorHint(status) {
|
|
|
8622
9565
|
return "Input shape mismatch: check this tool's schema for required fields. For job payloads, the worker's release config defines the expected input object \u2014 fix the payload and retry; don't abandon the task.";
|
|
8623
9566
|
if (status === 401) return "The Runpod API key is missing or invalid.";
|
|
8624
9567
|
if (status === 402)
|
|
8625
|
-
return "Check your account balance in the Runpod console before retrying billable operations.";
|
|
9568
|
+
return "Check your account balance in the Runpod console before retrying billable operations; list-billing shows the recent spend behind it.";
|
|
8626
9569
|
if (status === 403)
|
|
8627
|
-
return "Check that this API key has permission for the requested resource and operation. Review its permissions in the Runpod console before retrying.";
|
|
9570
|
+
return "Check that this API key has permission for the requested resource and operation. Review its permissions in the Runpod console before retrying. A permission error on a resource you did not create is final: report it rather than retrying.";
|
|
8628
9571
|
if (status === 404)
|
|
8629
9572
|
return "No such resource on this account: verify the id with the matching list- tool before retrying.";
|
|
8630
9573
|
if (status === 429)
|