Skip to main content
Glama

NewsDigest MCP

by SomeiLam

get_definitions

Retrieve and display TypeScript symbol definitions, including surrounding lines, from specified files in a given directory. Ideal for developers analyzing and understanding code structure.

Instructions

Get the definition(s) of a TypeScript symbol

Input Schema

NameRequiredDescriptionDefault
afterNoNumber of lines to show after the definition
beforeNoNumber of lines to show before the definition
filePathYesFile path (relative to root)
lineYesLine number (1-based) or string to match in the line
rootYesRoot directory for resolving relative paths
symbolNameYesName of the symbol

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "after": { "default": 0, "description": "Number of lines to show after the definition", "type": "number" }, "before": { "default": 0, "description": "Number of lines to show before the definition", "type": "number" }, "filePath": { "description": "File path (relative to root)", "type": "string" }, "line": { "description": "Line number (1-based) or string to match in the line", "type": [ "number", "string" ] }, "root": { "description": "Root directory for resolving relative paths", "type": "string" }, "symbolName": { "description": "Name of the symbol", "type": "string" } }, "required": [ "root", "filePath", "line", "symbolName" ], "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/SomeiLam/news-mcp'

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