Skip to main content
Glama

PropertyValues

Retrieve and filter property values from a graph database to support data-driven decisions and queries.

Instructions

Get values for a specific property

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertyIdYesID of the property to get values for
queryNoOptional search query for filtering values
orderByNoOrdering for value results
limitNoMax number of values to return
skipNoNumber of values to skip

Implementation Reference

  • The core handler function that executes the PropertyValues tool logic by querying the database for values associated with a specific property ID, supporting optional filters.
    export async function PropertyValues(params: { propertyId: string query?: string orderBy?: 'asc' | 'desc' limit?: number skip?: number }) { const { propertyId, query, orderBy, limit, skip } = params const searchQuery: Record<string, any> = {} if (query) searchQuery.query = query if (orderBy) searchQuery.orderBy = orderBy if (limit) searchQuery.limit = limit if (skip) searchQuery.skip = skip const result = await db.properties.values(propertyId, searchQuery) return result.data }
  • Input schema defining the parameters for the PropertyValues tool, including required propertyId and optional query, ordering, pagination.
    inputSchema: { type: 'object', properties: { propertyId: { type: 'string', description: 'ID of the property to get values for' }, query: { type: 'string', description: 'Optional search query for filtering values' }, orderBy: { type: 'string', enum: ['asc', 'desc'], description: 'Ordering for value results' }, limit: { type: 'number', description: 'Max number of values to return' }, skip: { type: 'number', description: 'Number of values to skip' } }, required: ['propertyId'] }
  • tools.ts:371-385 (registration)
    Registration of the PropertyValues tool in the tools array, including name, description, and schema; used by index.ts for MCP listTools.
    { name: 'PropertyValues', description: 'Get values for a specific property', inputSchema: { type: 'object', properties: { propertyId: { type: 'string', description: 'ID of the property to get values for' }, query: { type: 'string', description: 'Optional search query for filtering values' }, orderBy: { type: 'string', enum: ['asc', 'desc'], description: 'Ordering for value results' }, limit: { type: 'number', description: 'Max number of values to return' }, skip: { type: 'number', description: 'Number of values to skip' } }, required: ['propertyId'] } },
  • index.ts:44-44 (registration)
    Import of the PropertyValues handler function into the main index.ts for use in tool dispatching.
    import { PropertyValues } from './tools/PropertyValues.js'
  • index.ts:410-425 (registration)
    Dispatch case in the MCP CallToolRequest handler that invokes the PropertyValues function and formats the response.
    case 'PropertyValues': const propertyValues = await PropertyValues({ propertyId: args.propertyId as string, query: args.query as string | undefined, orderBy: args.orderBy as 'asc' | 'desc' | undefined, limit: args.limit as number | undefined, skip: args.skip as number | undefined }) return { content: [ { type: 'text', text: propertyValues ? JSON.stringify(propertyValues, null, 2) : 'No property values 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