Skip to main content
Glama

bridge_workspace_write

bridge_workspace_write
Destructive

Write text files to a workspace path with explicit confirmation and permission; create or overwrite files only when authorized.

Instructions

Gravar arquivo texto somente no workspace; DISABLED por padrão, exige confirmação e permissão.

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>",
      "confirm": "<confirm>"
    },
    "name": "bridge_workspace_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesCaminho relativo dentro da pasta
confirmYesAutoriza esta gravação
contentYesConteúdo
overwriteNoAutoriza substituir arquivo existente

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.5

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only carry destructiveHint=true; the description adds genuinely useful context beyond that — the tool is disabled by default and requires explicit confirmation and permission, and it only writes plain text inside the workspace. It still omits what happens on overwrite, on path escape, or on permission failure, which matters for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the write action and the gating conditions front-loaded, no filler. It is arguably over-compressed, since the confirmation/permission requirement is squeezed into a semicolon clause, but nothing is wasted.

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 four-parameter destructive write with no output schema, the definition covers the safety gate but leaves the agent without return-value or failure-mode expectations. It is minimally sufficient to avoid a blind call, but not complete for a mutation tool.

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 all four parameters including confirm and overwrite are already documented in the schema. The description adds only the workspace-scoping and text-only constraint, which is largely redundant with the existing 'Caminho relativo dentro da pasta' and string-typed content, so the baseline 3 applies.

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 concrete verb+resource: 'Gravar arquivo texto' scoped to the workspace ('somente no workspace'), which separates it from the read/list/search siblings. It does not explicitly name a counterpart write path or say what happens outside the workspace, so it falls short of full sibling differentiation.

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?

Gives one meaningful precondition ('DISABLED por padrão, exige confirmação e permissão'), which implies the agent must supply confirm before calling. It never says when to choose this over other write-like options, when not to use it, or how overwrite changes the decision, so usage is only implied.

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