Skip to main content
Glama

FindPropertyById

Retrieve property details using a unique ID from the RushDB graph database for efficient data access.

Instructions

Find a specific property by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertyIdYesID of the property to retrieve

Implementation Reference

  • The main handler function that implements the core logic of the FindPropertyById tool by querying the database for a property using its ID and returning the data.
    export async function FindPropertyById(params: { propertyId: string }) { const { propertyId } = params const result = await db.properties.findById(propertyId) return result.data }
  • Defines the tool's metadata including name, description, and input schema for validation and listing in MCP tool discovery.
    { name: 'FindPropertyById', description: 'Find a specific property by ID', inputSchema: { type: 'object', properties: { propertyId: { type: 'string', description: 'ID of the property to retrieve' } }, required: ['propertyId'] } },
  • index.ts:454-465 (registration)
    Registers the tool in the MCP server's CallToolRequest handler by dispatching calls to the FindPropertyById function and formatting the response.
    case 'FindPropertyById': const foundProperty = await FindPropertyById({ propertyId: args.propertyId as string }) return { content: [ { type: 'text', text: foundProperty ? JSON.stringify(foundProperty, null, 2) : 'Property not found' } ] }

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