Skip to main content
Glama
sandraschi

Windows Operations MCP

by sandraschi

winops_json_write

Idempotent

Write JSON data to a file at the specified path, creating parent directories automatically when they do not exist. Returns the file path and success status for confirmation.

Instructions

Write data to a JSON file, creating parent directories as needed.

Return Format

{"success": bool, "path": str}

Examples

write(path="D:\\config\\settings.json", data={"debug": true})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesData to serialise as JSON.
pathYesDestination file path.
indentNoIndentation spaces.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description discloses a meaningful behavior beyond annotations: it creates parent directories as needed and documents the return format. It does not explicitly state whether an existing file is overwritten or merged, but annotations already communicate the mutation and idempotency profile, and the description adds useful practical context.

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?

The description is compact and front-loaded with the core purpose, followed by a short return format and a concrete example. Every section earns its place without repetition or filler.

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 simple three-parameter write tool, the description adequately covers purpose, example usage, return format, and a notable side effect (directory creation). The only meaningful omission is explicit overwrite/merge semantics, but the included information is sufficient for typical selection and 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?

The input schema already describes all three parameters (path, data, indent) with 100% coverage, so the description does not need to re-explain them. The example helps clarify invocation, but it does not add significant semantic detail beyond the schema.

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?

The description opens with a specific verb and resource: 'Write data to a JSON file', clearly identifying the tool as a file-write operation. This distinguishes it from sibling JSON tools like json_read, json_validate, and json_patch, and the added 'creating parent directories as needed' gives useful scope.

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 intended use is implied by the action itself: use this when you want to persist data as JSON. However, there is no explicit guidance about when not to use it or when to prefer alternatives like json_patch for partial updates, so the usage context is only inferred rather than stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandraschi/windows-operations-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server