organization_enrichment
Enrich company data by providing domain or name to retrieve comprehensive organizational information from Apollo.io.
Instructions
Use the Organization Enrichment endpoint to enrich data for 1 company
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Company domain | |
| name | No | Company name |
Implementation Reference
- src/apollo-client.ts:120-135 (handler)Core handler function that executes the organization enrichment by calling Apollo.io API /organizations/enrich endpoint with query params.async organizationEnrichment(query: OrganizationEnrichmentQuery): Promise<any> { try { const url = `${this.baseUrl}/organizations/enrich`; const response = await this.axiosInstance.get(url, { params: query }); if (response.status === 200) { return response.data; } else { console.error(`Error: ${response.status} - ${response.statusText}`); return null; } } catch (error: any) { console.error(`Error: ${error.response?.status} - ${error.response?.statusText || error.message}`); return null; } }
- src/apollo-client.ts:41-45 (schema)TypeScript interface defining the input query for organization enrichment.export interface OrganizationEnrichmentQuery { domain?: string; name?: string; [key: string]: any; }
- src/index.ts:112-128 (registration)Tool registration in MCP server, defining name, description, and input schema for listTools.{ name: 'organization_enrichment', description: 'Use the Organization Enrichment endpoint to enrich data for 1 company', inputSchema: { type: 'object', properties: { domain: { type: 'string', description: 'Company domain' }, name: { type: 'string', description: 'Company name' } } } },
- src/index.ts:242-249 (handler)MCP CallToolRequest handler case that invokes the ApolloClient organizationEnrichment method and formats response.case 'organization_enrichment': { const result = await this.apollo.organizationEnrichment(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };