organization_enrichment
Enrich company data by providing domain or name to access detailed organizational information from Apollo.io database.
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/index.ts:112-128 (registration)Registers the 'organization_enrichment' tool with the MCP server, including its name, description, and input schema.{ 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 server handler for the 'organization_enrichment' tool: delegates to ApolloClient.organizationEnrichment and returns JSON response.case 'organization_enrichment': { const result = await this.apollo.organizationEnrichment(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
- src/apollo-client.ts:41-45 (schema)TypeScript interface defining the input query parameters for organization enrichment (matches tool inputSchema).export interface OrganizationEnrichmentQuery { domain?: string; name?: string; [key: string]: any; }
- src/apollo-client.ts:117-135 (handler)Core implementation of organization enrichment: makes GET request to Apollo.io API /organizations/enrich endpoint with query params.* Use the Organization Enrichment endpoint to enrich data for 1 company. * https://docs.apollo.io/reference/organization-enrichment */ 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; } }