Skip to main content
Glama
local-pc-mcp

local-pc-mcp

by contra333

Write file

file_write
DestructiveIdempotent

Create or overwrite a UTF-8 text file inside allowed roots without deleting existing files. Use it to save or replace text content in permitted local-pc-mcp directories.

Instructions

Create or overwrite a UTF-8 text file inside ALLOWED_ROOTS. Does not delete files.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
contentYes

Output Schema

NameRequiredDescriptionDefault
pathYes
bytes_writtenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, and the description usefully scopes that destructiveness: overwrite replaces existing content but the tool never removes files. It also adds encoding (UTF-8) and the root-containment restriction, which are not in the annotations. It stops short of describing behavior for missing parent directories or invalid paths.

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?

Two short sentences with zero filler, and the destructive-write semantics are front-loaded ahead of the non-deletion clarification. Every clause carries information an agent needs.

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?

An output schema exists, so return values need no explanation, and only two required parameters are involved. However, for a destructive write tool with 0% schema coverage the definition omits error/failure behavior and precise path rules, leaving gaps an agent would hit on first invocation.

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

Parameters3/5

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

Schema description coverage is 0%, so both parameters rest entirely on the description, which only implies that 'path' must fall inside ALLOWED_ROOTS and that 'content' is UTF-8 text. It adds real but partial meaning; path format (absolute vs relative) and path-escape handling are left undefined.

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?

States a specific verb pair (create or overwrite) and resource (UTF-8 text file) plus a hard scope constraint (ALLOWED_ROOTS), which cleanly separates it from the read/list siblings. It never names an alternative explicitly, so differentiation is implicit rather than stated.

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?

The clause 'Does not delete files' functions as an exclusion, and 'inside ALLOWED_ROOTS' bounds where it may be used, which gives implied guidance. There is no explicit when-to-use routing (e.g. use file_json_get for JSON, file_read for inspection) and no stated prerequisites or failure conditions.

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