Skip to main content
Glama

GetRecord

Retrieve a specific record from the RushDB graph database by providing its unique ID, enabling quick access to stored data for AI agents and development teams.

Instructions

Get a specific record by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recordIdYesID of the record to retrieve

Implementation Reference

  • The core handler function that executes the GetRecord tool logic: fetches a specific record by its ID from the database using db.records.findById and returns the data.
    export async function GetRecord(params: { recordId: string }) { const { recordId } = params const result = await db.records.findById(recordId) return result.data }
  • Input schema definition for the GetRecord tool, specifying that it requires a 'recordId' string parameter. This schema is used for tool listing and validation in the MCP server.
    name: 'GetRecord', description: 'Get a specific record by ID', inputSchema: { type: 'object', properties: { recordId: { type: 'string', description: 'ID of the record to retrieve' } }, required: ['recordId'] } },
  • index.ts:208-219 (registration)
    Registration and dispatch logic in the MCP server's CallToolRequestHandler: imports the GetRecord handler and invokes it in the switch statement when the tool is called, formatting the response as MCP content.
    case 'GetRecord': const record = await GetRecord({ recordId: args.recordId as string }) return { content: [ { type: 'text', text: JSON.stringify(record, null, 2) } ] }

Latest Blog Posts

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/1pxone/RushDB'

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