Skip to main content
Glama

workspace_put_file

Idempotent

Write or replace a shared workspace file so all agents can read the current version; existing paths retain prior content in history.

Instructions

Write a shared workspace file (a capsule, note, or deliverable) that every agent can read. Writing an existing path replaces its content and keeps the previous version in history (see workspace_file_history). The path may not contain "..". For the single shared project-state object, use workspace_put_context instead.

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": {
      "agent": "<agent>",
      "path": "<path>",
      "text": "<text>"
    },
    "name": "workspace_put_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesWorkspace-relative file path, for example "notes/plan.md". May not contain "..".
textYesThe full new content of the file.
agentYesYour registered agent name (recorded as the file's last writer).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.12
    • addedInput schema / properties / agent / description
      Added value: +"Your registered agent name (recorded as the file's last writer)."
    • addedInput schema / properties / path / description
      Added value: +"Workspace-relative file path, for example \"notes/plan.md\". May not contain \"..\"."
    • addedInput schema / properties / text / description
      Added value: +"The full new content of the file."
  2. First observedv0.5.11

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that writing an existing path replaces its content while retaining the prior version in history, and that paths may not contain '..'. This adds important overwrite, versioning, and validation context that the annotations alone do not convey.

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 three compact sentences with the primary action and scope stated first. Each sentence adds useful information: overwrite behavior, path restriction, and the sibling alternative.

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

Completeness5/5

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

For a three-parameter write tool with no output schema, the description covers the essential behavior: what it writes, overwrite semantics, history retention, path constraints, and the relevant alternative tool. Nothing required for correct invocation is missing.

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 100%, so the schema already explains path, text, and agent. The description repeats the path restriction against '..' but adds no new parameter-level meaning beyond what is structured, so the baseline score of 3 is appropriate.

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 uses a specific verb and resource: 'Write a shared workspace file (a capsule, note, or deliverable) that every agent can read.' It distinguishes the tool from its closest sibling by naming workspace_put_context for the single shared project-state object.

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

Usage Guidelines5/5

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

It gives explicit routing guidance: use this tool for shared workspace files, but use workspace_put_context for the single shared project-state object. It also points to workspace_file_history when previous versions matter, leaving little ambiguity about when this tool is the right choice.

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