Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

list_company_fields

Retrieve all company fields in Freshdesk using this tool to streamline data management and enhance integration with automated support operations.

Instructions

List all company fields in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'list_company_fields' MCP tool. It makes an authenticated GET request to the Freshdesk API endpoint for company fields and returns the list or an error dictionary.
    @mcp.tool() async def list_company_fields() -> List[Dict[str, Any]]: """List all company fields in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/company_fields" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}", "Content-Type": "application/json" } async with httpx.AsyncClient() as client: try: response = await client.get(url, headers=headers) response.raise_for_status() return response.json() except httpx.HTTPStatusError as e: return {"error": f"Failed to fetch company fields: {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