Skip to main content
Glama
Raheem-19

Serena MCP Server

by Raheem-19

create_text_file

Create or overwrite text files with UTF-8 content, returning a success or failure message for each operation.

Instructions

Write a new file or overwrite an existing file. Returns a message indicating success or failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesThe (utf-8-encoded) content to write to the file.
relative_pathYesThe relative path to the file to create.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries full burden. It discloses the destructive nature of overwriting and the return message type ('Returns a message indicating success or failure'). However, it does not mention potential side effects like handling of missing directories or encoding behavior beyond the utf-8 note in the schema.

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 concise sentences, front-loaded with the verb and resource, and directly states the return value. Every word adds value and there is no redundant information.

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 two-parameter tool with well-described schema and a stated return message, the description is complete enough. It could explicitly mention that overwriting replaces content without confirmation, but that is already implied by 'overwrite an existing file'.

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 has 100% description coverage for both parameters ('relative_path' and 'content'), so the tool description adds no additional parameter guidance beyond what the schema provides. The schema itself sufficiently documents the parameters.

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 the specific verb 'Write' and identifies the resource as a file, clearly stating it creates or overwrites. This distinguishes it from siblings like find_file, read_file, and write_memory, which target different operations or storage types.

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 description implies usage for creating/overwriting text files (as indicated by the tool name) but does not explicitly mention when to prefer this tool over alternatives like write_memory or edit tools. There is no exclusion or alternative guidance provided.

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/Raheem-19/serena-optimized'

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