Skip to main content
Glama
search.ts759 B
/** * List search operations. */ import type { AttioList } from '../../types/attio.js'; import { getLists } from './base.js'; export async function searchLists( query: string, limit: number = 20, offset: number = 0 ): Promise<AttioList[]> { const allLists = await getLists(undefined, 100); const listsArray = Array.isArray(allLists) ? allLists : []; const lowerQuery = query.toLowerCase(); const filtered = listsArray.filter((list) => { if (!list || typeof list !== 'object') return false; const name = (list.name || '').toLowerCase(); const description = (list.description || '').toLowerCase(); return name.includes(lowerQuery) || description.includes(lowerQuery); }); return filtered.slice(offset, offset + limit); }

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/kesslerio/attio-mcp-server'

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