Skip to main content
Glama
bshada
by bshada
common-properties.ts830 B
/** * Common filter properties for limiting response data * These can be added to any tool that returns large datasets */ export const filterProperties = { max_items: { type: 'number', description: 'Maximum number of items to return (limits response size)', }, fields: { type: 'array', items: { type: 'string' }, description: 'Specific fields to include in response (e.g., ["symbol", "price", "change"])', }, summary: { type: 'boolean', description: 'Return only summary instead of full data (useful for very large datasets)', }, }; /** * Helper to add filter properties to a tool's input schema */ export function addFilterProperties(properties: Record<string, any>): Record<string, any> { return { ...properties, ...filterProperties, }; }

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/bshada/nse-bse-mcp'

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