Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

update_agent

Modify agent details in Freshdesk by specifying the agent ID and updated fields to streamline support operations and maintain accurate agent records.

Instructions

Update an agent in Freshdesk.

Input Schema

NameRequiredDescriptionDefault
agent_fieldsYes
agent_idYes

Input Schema (JSON Schema)

{ "properties": { "agent_fields": { "title": "Agent Fields", "type": "object" }, "agent_id": { "title": "Agent Id", "type": "integer" } }, "required": [ "agent_id", "agent_fields" ], "title": "update_agentArguments", "type": "object" }

Implementation Reference

  • The update_agent tool implementation. This async function is decorated with @mcp.tool(), which both registers the tool named 'update_agent' (matching the function name) and provides the handler logic to update an agent in Freshdesk by sending a PUT request to the Freshdesk API with the provided agent_fields.
    @mcp.tool() async def update_agent(agent_id: int, agent_fields: Dict[str, Any]) -> Dict[str, Any]: """Update an agent in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/agents/{agent_id}" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}" } async with httpx.AsyncClient() as client: response = await client.put(url, headers=headers, json=agent_fields) return response.json()
  • The @mcp.tool() decorator registers the subsequent update_agent function as an MCP tool.
    @mcp.tool()

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