Skip to main content
Glama
kesslerio

Attio MCP Server

by kesslerio

get-list-entries

Retrieve CRM list entries such as companies and people from sales pipelines. Fetch specific records with pagination support to manage large datasets effectively.

Instructions

Get entries for a specific CRM list (companies, people, etc. in sales pipelines)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of entries to fetch (default: 20)
listIdYesID of the list to get entries for
offsetNoNumber of entries to skip for pagination (default: 0)

Implementation Reference

  • The handler function for the 'get-list-entries' tool, including UUID validation for listId and delegation to the core getListEntries function.
    getListEntries: {
      name: 'get-list-entries',
      handler: async (listId: string, limit?: number, offset?: number) => {
        // UUID validation - hard fail for invalid list IDs
        if (!isValidUUID(listId)) {
          return {
            isError: true,
            content: [
              {
                type: 'text',
                text: `Invalid list_id: must be a UUID. Got: ${listId}`,
              },
            ],
          };
        }
        return await getListEntries(listId, limit, offset);
      },
      formatResult: (
        results:
          | AttioListEntry[]
          | { isError: boolean; content: Array<Record<string, unknown>> }
      ) => {
        // Handle validation error response
        if (results && typeof results === 'object' && 'isError' in results) {
          return 'Error: Invalid list ID';
        }
    
        // Return JSON string
        return JSON.stringify(Array.isArray(results) ? results : []);
      },
    } as GetListEntriesToolConfig,
  • Tool definition including name, description, and input schema for the 'get-list-entries' tool.
    {
      name: 'get-list-entries',
      description: formatToolDescription({
        capability:
          'Retrieve all records in a list with pagination (companies, people in pipelines).',
        boundaries: 'filter entries or modify list memberships.',
        constraints:
          'Requires list UUID (not slug); default limit 20, max per page varies by API.',
        recoveryHint:
          'Use filter-list-entries for attribute-based filtering instead.',
      }),
      inputSchema: {
        type: 'object',
        properties: {
          listId: {
            type: 'string',
            description: 'UUID of the list to get entries for',
            example: '550e8400-e29b-41d4-a716-446655440000',
          },
          limit: {
            type: 'number',
            description: 'Maximum number of entries to fetch (default: 20)',
            example: 50,
          },
          offset: {
            type: 'number',
            description: 'Number of entries to skip for pagination (default: 0)',
            example: 0,
          },
        },
        required: ['listId'],
        additionalProperties: false,
      },
    },
  • Central registry where listsToolConfigs (including get-list-entries) is registered under ResourceType.LISTS in TOOL_CONFIGS.
    export const TOOL_CONFIGS = USE_UNIVERSAL_TOOLS_ONLY
      ? {
          // Universal tools for consolidated operations (Issue #352)
          UNIVERSAL: universalToolConfigs,
          // Lists are relationship containers - always expose them (Issue #470)
          [ResourceType.LISTS]: listsToolConfigs,
          // Workspace members for user discovery (Issue #684)
          [ResourceType.WORKSPACE_MEMBERS]: workspaceMembersToolConfigs,
        }
      : {
          // Legacy resource-specific tools (deprecated, use DISABLE_UNIVERSAL_TOOLS=true to enable)
          [ResourceType.COMPANIES]: companyToolConfigs,
          [ResourceType.PEOPLE]: peopleToolConfigs,
          [ResourceType.DEALS]: dealToolConfigs,
          [ResourceType.LISTS]: listsToolConfigs,
          [ResourceType.TASKS]: tasksToolConfigs,
          [ResourceType.RECORDS]: recordToolConfigs,
          [ResourceType.WORKSPACE_MEMBERS]: workspaceMembersToolConfigs,
          GENERAL: generalToolConfigs,
          // Add other resource types as needed
        };
  • Core helper function getListEntries called by the tool handler, which delegates to the generic API operation.
    export async function getListEntries(
      listId: string,
      limit: number = 20,
      offset: number = 0,
      filters?: ListEntryFilters
    ): Promise<AttioListEntry[]> {
      return getGenericListEntries(listId, limit, offset, filters);
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but only states what the tool does without disclosing behavioral traits such as pagination behavior (implied by offset/limit but not explained), rate limits, authentication needs, or error handling. It mentions 'companies, people, etc.' but doesn't clarify if this is exhaustive or example-based.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose with zero waste. It uses parentheses to add clarifying examples without bloating the text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read operation with 3 parameters and 100% schema coverage but no annotations or output schema, the description is minimally adequate. It covers the basic purpose but lacks details on return values, error cases, or behavioral context that would help an agent use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents parameters (listId, limit, offset). The description adds no additional parameter semantics beyond what's in the schema, such as format details for listId or constraints on limit/offset values.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get' and resource 'entries for a specific CRM list', with examples like 'companies, people, etc. in sales pipelines' that clarify the type of data. It distinguishes from general search tools but doesn't explicitly differentiate from sibling tools like 'filter-list-entries' or 'advanced-filter-list-entries'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like 'filter-list-entries', 'advanced-filter-list-entries', or 'search' tools is provided. The description implies usage for retrieving list entries but lacks explicit context or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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