GetSettings
Retrieve current database configuration and settings to verify setup and optimize performance in RushDB's graph database environment.
Instructions
Get the current database settings and configuration
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools/GetSettings.ts:17-21 (handler)The main handler function for the GetSettings tool. It retrieves the current database settings using the db.settings.get() method and returns the data.export async function GetSettings() { const result = await db.settings.get() return result.data }
- tools.ts:458-462 (schema)The schema definition and metadata (name, description, inputSchema) for the GetSettings tool, used for tool listing and validation.{ name: 'GetSettings', description: 'Get the current database settings and configuration', inputSchema: { type: 'object', properties: {}, required: [] } }
- index.ts:532-541 (registration)The registration and dispatch logic in the MCP server's CallToolRequestSchema handler, which invokes the GetSettings function and formats the response.case 'GetSettings': const settings = await GetSettings() return { content: [ { type: 'text', text: JSON.stringify(settings, null, 2) } ] }
- index.ts:72-76 (registration)The MCP server registration for listing tools, which includes GetSettings via the imported tools array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools } })