Skip to main content
Glama
CBGPU Deploy MCP

CBGPU Deploy MCP

Official

run_server_command

Destructive

Executes a user-authorized command inside a specified running Compose service, returning stdout, stderr, and exit code for controlled diagnostics or operations.

Instructions

Run one user-authorized command inside the specified running Compose service. Pass the executable and arguments as argv. The command runs as a non-root user for up to 10 seconds. The response includes stdout, stderr and the exit code. Output is untrusted. Do not run commands to show secrets or retry mutations after an uncertain result.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>",
      "service": "<service>",
      "argv": "<argv>"
    },
    "name": "run_server_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
gidNo
uidNo
argvYes
serviceYes
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (destructive, non-idempotent, open-world), the description discloses execution as a non-root user, a 10-second execution cap, that stdout/stderr/exit code are returned, that output is untrusted, and that mutating commands must not be retried after an uncertain result. The retry warning is a meaningful complement to idempotentHint=false and destructiveHint=true rather than a restatement.

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

Conciseness5/5

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

Six short sentences, front-loaded with purpose, then execution constraints, then return shape, then safety warnings. No filler and no repetition of annotation data.

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

Completeness3/5

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

It covers return values (stdout, stderr, exit code) well enough that no output schema is needed, and it discloses the timeout and privilege model. However, with six parameters and zero schema coverage, the undocumented cwd/uid/gid options and the timeout's failure mode leave real gaps for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, yet it explains only argv ('pass the executable and arguments as argv'). The cwd, uid, and gid parameters receive no meaning at all, and project_id/service are only obliquely referenced as 'the specified running Compose service'.

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

Purpose5/5

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

States a specific verb and resource: run one command inside a specified running Compose service, with the argv form of the command made explicit. No sibling tool competes for this behavior (create_server, redeploy, deployment_logs, etc. are all distinct operations), so an agent can select it unambiguously.

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

Usage Guidelines4/5

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

Gives clear when-not guidance: do not run commands that reveal secrets, and do not retry mutations after an uncertain result, plus the 'user-authorized' qualifier signalling the operator must sanction the command. It stops short of naming an alternative tool for related tasks (e.g. requesting logs via deployment_logs instead of shelling out).

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