Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

search_companies

Locate companies in Freshdesk to streamline customer support operations. Use this tool to search and retrieve company data, enabling efficient ticket management and support interactions.

Instructions

Search for companies in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Implementation Reference

  • The core handler function for the 'search_companies' tool. It performs an autocomplete search on the Freshdesk companies API using the provided query as the 'name' parameter and returns the JSON response or an error.
    @mcp.tool() async def search_companies(query: str) -> Dict[str, Any]: """Search for companies 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" } # Use the name parameter as specified in the API params = {"name": query} 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 search companies: {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