Skip to main content
Glama

Serena MCP Server

by lin2000wl

insert_after_symbol

Add content after a specified symbol’s definition in code files within the Serena MCP Server. Use to insert new classes, functions, methods, or variable assignments efficiently. Specify symbol path, file location, and content to insert.

Instructions

Inserts the given body/content after the end of the definition of the given symbol (via the symbol's location). A typical use case is to insert a new class, function, method, field or variable assignment.

Input Schema

NameRequiredDescriptionDefault
bodyYesThe body/content to be inserted. The inserted code shall begin with the next line after the symbol.
name_pathYesName path of the symbol after which to insert content (definitions in the `find_symbol` tool apply).
relative_pathYesThe relative path to the file containing the symbol.

Input Schema (JSON Schema)

{ "properties": { "body": { "description": "The body/content to be inserted. The inserted code shall begin with the next line after\nthe symbol.", "title": "Body", "type": "string" }, "name_path": { "description": "Name path of the symbol after which to insert content (definitions in the `find_symbol` tool apply).", "title": "Name Path", "type": "string" }, "relative_path": { "description": "The relative path to the file containing the symbol.", "title": "Relative Path", "type": "string" } }, "required": [ "name_path", "relative_path", "body" ], "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