Skip to main content
Glama

p2p_file_write

Writes or updates a file in a P2P Hyperdrive, streaming changes to connected peers automatically so shared state stays in sync.

Instructions

Schreibt oder aktualisiert eine Datei im P2P-Hyperdrive. Die Änderung wird automatisch an verbundene Peers gestreamt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoDer Hex-Key des Drives (optional falls nur ein Drive aktiv ist).
contentYesDer Textinhalt der Datei.
filePathYesVirtueller Pfad im Drive (z. B. "/context/task.md" oder "/state.json").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that changes are automatically streamed to connected peers, which is important side-effect context, but it omits authentication requirements, overwrite semantics, conflict behavior, and failure modes for a mutating operation.

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 two short sentences, front-loaded with the core operation and followed by the key side effect. Every sentence contributes useful information without repetition or filler.

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?

For a write tool with no annotations and no output schema, the description covers the basic action and peer-streaming behavior. However, it leaves out important operational context such as permission requirements, overwrite behavior, conflict resolution, and what happens on failure.

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 100%, so filePath, content, and key are already documented in the schema. The description adds no additional parameter meaning, format details, or constraints beyond what the structured input schema provides.

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?

The description states a specific verb and resource: it writes or updates a file in a P2P hyperdrive. This clearly differentiates the operation from a read tool, but it does not explicitly position itself against siblings such as p2p_file_read or p2p_drive_create.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, nor any prerequisites such as required drive context or permissions. The write/update action implies usage, but the description does not state when-not-to-use or point to sibling tools.

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