Skip to main content
Glama

Create service directory

create_service_directory

Creates a directory at an absolute path on a VPSnet server, optionally creating missing parent directories.

Instructions

Create a directory (0755, owned by the parent directory's owner unless that is root). parents=true creates missing parents and answers an existing directory as it is. A slow guest answers 202 with an operation: this tool polls it itself and returns the final answer, or, after waitSeconds, the operationId to continue with get_service_file_operation (never repeat the call). Requires files:manage on a FULL-access API key as an explicit grant; the hosted connector needs vm:files:write. Execution-equivalent targets (authorized_keys, cron, systemd units, sudoers, PAM, profile files) are refused to every API key (filesExecEquivalentScopeMissing). Availability: Firecracker servers need the updated guest agent (filesUnavailable reason agent_update_required; node_update_required while the host node is not updated yet) and Cloud VPS (KVM) servers need the VDS file-manager switch (reason feature_disabled while it is off); relay any unavailable reason verbatim and never work around it. A server whose 2FA lock is on answers 423.

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": {
      "orderNo": "<orderNo>",
      "path": "<path>"
    },
    "name": "create_service_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path inside the server (UTF-8, at most 4096 bytes, no . or .. components)
orderNoYesTenant-owned service order number, e.g. VP12345
parentsNo
waitSecondsNoHow long this tool waits for a slow guest's operation before returning its operationId (default 30, recursive delete and extract 60)
confirmSystemPathNoSet true only after the user explicitly approved changing this operating-system path (otherwise 409 filesSystemPathConfirmRequired)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.17

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it is a non-destructive, non-idempotent, closed-world write. The description adds substantially more: required scopes (files:manage as an explicit grant, vm:files:write for the hosted connector), self-polling of slow-guest 202 operations with a waitSeconds fallback, refusal of execution-equivalent targets, per-platform availability reasons, and the 423 2FA-lock response. Nothing here contradicts the annotations, and 'answers an existing directory as it is' nuances rather than contradicts idempotentHint=false.

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

Conciseness4/5

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

Purpose and permissions are front-loaded and nearly every clause carries operational content, including error codes an agent must handle. The single dense paragraph mixes call semantics, auth, refusal rules, availability matrix, and error codes, which slightly hurts scannability, and waitSeconds behavior partly repeats the schema.

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

Completeness5/5

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

For a complex tool with no output schema, the description covers return behavior (final answer vs. operationId after waitSeconds), permission prerequisites, platform-specific unavailability, refused path classes, and the 2FA-lock response. An agent has everything needed to call it and interpret the result correctly.

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

Parameters4/5

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

Schema coverage is 80%, so the baseline is 3, but the description adds real meaning for the undocumented 'parents' flag (creates ancestors, tolerates existing directory) and explains how waitSeconds interacts with the internal polling and operationId return. It does not restate path/orderNo formats, which the schema already handles.

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?

Opens with a specific verb and resource ('Create a directory') and immediately qualifies it with mode (0755) and ownership rules. It also names the sibling used for continuation (get_service_file_operation), so an agent can distinguish this call from the operation-polling tool without inspecting schemas.

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 concrete conditional guidance: parents=true for creating missing ancestors and tolerating an existing directory, 'never repeat the call' after receiving an operationId, and 'relay any unavailable reason verbatim and never work around it.' It does not compare against other file-creation routes (e.g. upload/extract tools), so routing guidance is strong but not exhaustive.

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

Deploy Server

Other Tools