Skip to main content
Glama

Serena MCP Server

by lin2000wl

delete_lines

Remove specified lines in a file by defining start and end indices. Requires prior verification with the read_file tool to ensure accurate deletion within the Serena MCP Server environment.

Instructions

Deletes the given lines in the file. Requires that the same range of lines was previously read using the read_file tool to verify correctness of the operation.

Input Schema

NameRequiredDescriptionDefault
end_lineYesThe 0-based index of the last line to be deleted.
relative_pathYesThe relative path to the file.
start_lineYesThe 0-based index of the first line to be deleted.

Input Schema (JSON Schema)

{ "properties": { "end_line": { "description": "The 0-based index of the last line to be deleted.", "title": "End Line", "type": "integer" }, "relative_path": { "description": "The relative path to the file.", "title": "Relative Path", "type": "string" }, "start_line": { "description": "The 0-based index of the first line to be deleted.", "title": "Start Line", "type": "integer" } }, "required": [ "relative_path", "start_line", "end_line" ], "title": "applyArguments", "type": "object" }

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/lin2000wl/Serena-cursor-mcp'

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