Skip to main content
Glama
@serversareup/mcp-server

@serversareup/mcp-server

write_instance_file

Destructive

Writes or replaces a UTF-8 guest file on a specified instance, enabling scoped file updates for VM and container management.

Instructions

Write/replace a UTF-8 guest file; requires instances:files:write.

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": {
      "id": "<id>",
      "path": "<path>",
      "content": "<content>"
    },
    "name": "write_instance_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
pathYes
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so safety is covered. The description adds two pieces of context not in the structured data: the required authorization scope instances:files:write, and the encoding constraint (UTF-8) plus overwrite/replace semantics. It still omits whether overwriting is recoverable and what happens to the prior contents, keeping it from a 5.

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?

A single compact clause with the action first and the permission requirement second; every fragment carries information and nothing is padded. Terseness here is a stylistic strength even though coverage elsewhere is thin.

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

Completeness2/5

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

For a destructive write with no output schema and a completely undescribed parameter set, the description leaves out path semantics, overwrite behavior details, and any indication of the result. The destructive annotation and permission scope are helpful, but an agent still cannot reliably infer call correctness from this text.

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 must carry parameter meaning and does not. It never explains that id is the instance identifier, whether path is absolute or relative, whether parent directories are created, or any constraint on content beyond UTF-8. With three required, undocumented parameters, this is a clear gap.

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

Purpose4/5

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

"Write/replace a UTF-8 guest file" names a specific verb pair (write/replace) and a specific resource (a guest file with UTF-8 encoding), so the agent knows this is the write counterpart to file reading. It does not explicitly name a sibling such as read_instance_file, so it stops short of full differentiation.

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

Usage Guidelines3/5

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

Usage is only implied by the verb: use this to write or overwrite a file on a guest instance. There is no explicit when-to-use versus alternatives, no note on whether the file must already exist, and no exclusion guidance. The stated permission scope (instances:files:write) gives a partial prerequisite, which lifts it above bare 'no guidance'.

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