Skip to main content
Glama

PureScript MCP Server

by avi892nash

getTopLevelDeclarationNames

Extract top-level declaration names, such as function names, data types, and type classes, from PureScript code. Analyze code directly or from a file path without requiring IDE server setup.

Instructions

List all main definitions in PureScript code: function names, data types, type classes, etc. Gets just the names (like 'myFunction', 'MyDataType'). Fast analysis without needing IDE server.

Input Schema

NameRequiredDescriptionDefault
codeNoPureScript code string.
filePathNoAbsolute path to the PureScript file. Only absolute paths are supported.

Input Schema (JSON Schema)

{ "additionalProperties": false, "description": "Exactly one of 'filePath' or 'code' must be provided.", "properties": { "code": { "description": "PureScript code string.", "type": "string" }, "filePath": { "description": "Absolute path to the PureScript file. Only absolute paths are supported.", "type": "string" } }, "type": "object" }
Install Server

Other Tools from PureScript MCP Server

Related Tools

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/avi892nash/purescript-mcp-tools'

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