Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

find_company_by_name

Locate a company in Freshdesk by entering its name. This tool helps users quickly retrieve company details for efficient customer support management and ticket handling.

Instructions

Find a company by name in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Implementation Reference

  • The handler function for the 'find_company_by_name' tool. It performs an autocomplete search on the Freshdesk companies API endpoint using the provided company name and returns the matching companies or an error.
    @mcp.tool() async def find_company_by_name(name: str) -> Dict[str, Any]: """Find a company by name in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/companies/autocomplete" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}", "Content-Type": "application/json" } params = {"name": name} async with httpx.AsyncClient() as client: try: response = await client.get(url, headers=headers, params=params) response.raise_for_status() return response.json() except httpx.HTTPStatusError as e: return {"error": f"Failed to find company: {str(e)}"} except Exception as e: return {"error": f"An unexpected error occurred: {str(e)}"}

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/effytech/freshdesk_mcp'

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