Skip to main content
Glama
proteus-mcp
by Fretzzz

write_project_file

Destructive

Creates or replaces text files inside a Proteus .pdsprj project archive—such as firmware source—with optional backup and alternate output path. Close the project in Proteus first.

Instructions

Create or replace a text file inside the archive, e.g. firmware source under FIRMWARE/. ROOT.DSN and ROOT.CDB cannot be written raw (use the component tools). Close the project in Proteus first.

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>",
      "entry": "<entry>",
      "content": "<content>"
    },
    "name": "write_project_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to a Proteus .pdsprj project file
entryYes
backupNoWhen overwriting, first copy the original to <file>.bak (default true)
contentYes
outputPathNoWrite to this path instead of overwriting the project

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the write risk is known; the description adds real value on top by disclosing the file-locking requirement (close in Proteus) and the protected-file restriction. It does not say what happens to the original on replace or whether the operation is atomic, leaving some destructive-mutation detail unstated.

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?

Three short sentences, each load-bearing: what it does, what it must not touch, and the operational precondition. The most important constraint (close the project) is placed last but the primary action is front-loaded.

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

Completeness4/5

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

For a destructive file-write tool with no output schema, the description covers purpose, precondition, and protected paths, which is close to sufficient. The main remaining hole is the undefined entry parameter and the absence of any statement about return behavior or backup default (which only appears in the schema).

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 coverage is 60%: path, backup, and outputPath are documented in the schema, but entry and content carry no schema description. The description implies entry is a location inside the archive but never defines its format or relation to path, so it only partially compensates for the coverage gap.

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 pair and resource ("Create or replace a text file inside the archive") and gives a concrete example target (FIRMWARE/ firmware source). It also distinguishes itself from other tools by naming the exception case: ROOT.DSN and ROOT.CDB must go through the component tools instead.

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 a hard precondition ("Close the project in Proteus first") and an explicit exclusion with an alternative ("ROOT.DSN and ROOT.CDB cannot be written raw (use the component tools)"). It does not discuss when to choose the overwrite path versus the outputPath parameter, so 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.