Skip to main content
Glama
chaodongzhang

gemini-cli-bridge

Writefile

WriteFile

Save UTF-8 text content to a specified path, creating parent directories as needed, and return an ok confirmation.

Instructions

Write a UTF-8 text file, creating parents as needed. Return "ok".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

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 burden. It does disclose useful traits — UTF-8 encoding, automatic parent-directory creation, and the "ok" return — but omits the critical question for a write tool: whether an existing file at the path is overwritten or truncated. That gap matters for a mutation 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?

Two short sentences, zero filler, with the core action front-loaded and the secondary behaviors appended. Nothing redundant.

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?

An output schema exists, so the return value need not be explained (though it is). For a two-parameter mutation tool with no annotations and 0% schema coverage, the description is thin on overwrite semantics and path format — the details an agent actually needs before invoking it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description adds no meaning for either parameter. It does not say whether "path" may be relative or absolute, or whether "content" is raw text vs. encoded data, so the caller must guess at both.

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 specific verb and resource ("Write a UTF-8 text file") with an extra scope detail (creates parents as needed). An agent can distinguish it from ReadFile and FindFiles, but the description does not differentiate it from the sibling Edit, which is the real ambiguity for a write tool.

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?

Usage is only implied by the verb: write a file when you have a path and contents. There is no statement of when to prefer WriteFile over Edit (e.g., new file vs. modifying existing content) or any prerequisite the caller must satisfy.

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