Skip to main content
Glama
Cyreslab-AI

Crunchbase MCP Server

get_funding_rounds

Retrieve funding round details for a specific company using the Crunchbase MCP Server. Input a company name or ID to access funding information and limit results as needed.

Instructions

Get funding rounds for a specific company

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
company_name_or_idYesCompany name or UUID
limitNoMaximum number of results to return (default: 10)

Implementation Reference

  • MCP tool handler implementation for 'get_funding_rounds'. Validates input arguments, constructs GetFundingRoundsInput parameters, calls CrunchbaseAPI.getFundingRounds, and returns the result as JSON text content.
    case 'get_funding_rounds': { if (!args || typeof args !== 'object' || !('company_name_or_id' in args) || typeof args.company_name_or_id !== 'string') { throw new McpError(ErrorCode.InvalidParams, 'Missing or invalid company_name_or_id parameter'); } const params: GetFundingRoundsInput = { company_name_or_id: args.company_name_or_id, limit: typeof args.limit === 'number' ? args.limit : undefined }; const fundingRounds = await this.crunchbaseApi.getFundingRounds(params); return { content: [ { type: 'text', text: JSON.stringify(fundingRounds, null, 2), }, ], }; }
  • src/index.ts:243-260 (registration)
    Tool registration in the ListToolsRequestSchema handler, defining the name, description, and inputSchema for 'get_funding_rounds'.
    { name: 'get_funding_rounds', description: 'Get funding rounds for a specific company', inputSchema: { type: 'object', properties: { company_name_or_id: { type: 'string', description: 'Company name or UUID', }, limit: { type: 'number', description: 'Maximum number of results to return (default: 10)', }, }, required: ['company_name_or_id'], }, },
  • Core helper function in CrunchbaseAPI class that implements the API call to retrieve funding rounds: first resolves company UUID, then queries Crunchbase API endpoint for funding_rounds.
    async getFundingRounds(params: GetFundingRoundsInput): Promise<FundingRound[]> { try { // First, get the company UUID const company = await this.getCompanyDetails({ name_or_id: params.company_name_or_id }); // Then, get the funding rounds const response = await this.client.get<CrunchbaseApiResponse<FundingRound[]>>(`/entities/organizations/${company.uuid}/funding_rounds`, { params: { limit: params.limit || 10, order: 'announced_on DESC' } }); return response.data.data; } catch (error) { console.error('Error getting funding rounds:', error); throw this.handleError(error); } }
  • TypeScript interface defining the input shape for getFundingRoundsInput used by the tool handler and API helper.
    export interface GetFundingRoundsInput { company_name_or_id: string; limit?: number; }

Other Tools

Related 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/Cyreslab-AI/crunchbase-mcp-server'

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