Skip to main content
Glama
alludium

Affinity MCP Server

by alludium

Get Company Lists

affinity_get_company_lists
Read-onlyIdempotent

Retrieve all lists containing a specific company, such as deal pipelines or opportunity stages, to understand where it is being tracked.

Instructions

Get all lists where a specific company appears.

Returns list metadata for each list containing this company. Useful for discovering which deal pipelines track a specific company.

Parameters:

  • companyId: Company ID (required) - get from affinity_search_companies or affinity_get_company

  • cursor: Pagination cursor (optional)

  • limit: Items per page (default 100, max 100)

Returns (JSON): { "lists": [ { "id": number, "name": string, // e.g., "SVV Deal Funnel" "type": string, // "company", "person", or "opportunity" "isPublic": boolean, "creatorId": number, "ownerId": number } ], "count": number, "hasMore": boolean, "nextCursor": string | null }

Note: Returns empty array if company not on any lists (very common).

Use Cases:

  • "Which deal pipelines is this company in?"

  • "Find all lists tracking this portfolio company"

  • "Check if company is already being tracked"

Next Steps:

  • Use affinity_get_company_list_entries to see full field data for each list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
companyIdYesCompany ID (numeric). Get from affinity_search_companies or affinity_get_company.
cursorNoPagination cursor from previous response
limitNoItems per page (default 100, max 100)
responseFormatNoOutput format: "json" or "markdown". Default: "json"
Behavior4/5

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

The description explains the return format with a JSON example, pagination parameters, and the common scenario of an empty array. Annotations already provide readOnlyHint, idempotentHint, etc., so the description adds context without contradictions.

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 well-structured with sections for parameters, return format, notes, use cases, and next steps. It is concise without unnecessary information, and each part serves a purpose.

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

Completeness5/5

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

Despite the absence of an output schema, the description includes a detailed JSON return example, covering all fields. It also provides use cases and next steps, making it complete for a read-only list retrieval tool.

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

Parameters4/5

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

Schema coverage is 100%, but the description adds value by explaining the source of companyId (get from affinity_search_companies or affinity_get_company) and default/max for limit. However, the description omits the responseFormat parameter, which is only in the schema.

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

Purpose5/5

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

The description clearly states 'Get all lists where a specific company appears.' It uses a specific verb and resource, and distinguishes itself from sibling tools like affinity_get_company_list_entries or affinity_get_list by focusing on lists containing a specific company.

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

Usage Guidelines4/5

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

The description provides context for usage, such as 'Useful for discovering which deal pipelines track a specific company.' It also includes a note about empty returns and suggests next steps like using affinity_get_company_list_entries, but it does not explicitly state when to avoid using this tool or list alternatives.

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/alludium/affinity-mcp-server'

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