Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

update_contact

Modify contact details in Freshdesk by specifying the contact ID and updating relevant fields. Streamline customer data management within the Freshdesk ecosystem.

Instructions

Update a contact in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contact_fieldsYes
contact_idYes

Implementation Reference

  • The handler function for the 'update_contact' tool, decorated with @mcp.tool() which serves as its registration in the MCP server. This function implements the core logic to update a contact in Freshdesk by sending a PUT request to the /api/v2/contacts/{contact_id} endpoint with the provided fields.
    @mcp.tool()
    async def update_contact(contact_id: int, contact_fields: Dict[str, Any])-> Dict[str, Any]:
        """Update a contact in Freshdesk."""
        url = f"https://{FRESHDESK_DOMAIN}/api/v2/contacts/{contact_id}"
        headers = {
            "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}"
        }
        data = {}
        for field, value in contact_fields.items():
            data[field] = value
        async with httpx.AsyncClient() as client:
            response = await client.put(url, headers=headers, json=data)
            return response.json()
    @mcp.tool()
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. While 'Update' implies a mutation operation, the description doesn't address critical aspects: what permissions are required, whether changes are reversible, what happens to unspecified fields, rate limits, or error conditions. This leaves significant gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that gets straight to the point with zero wasted words. It's appropriately sized for such a basic statement of purpose, though this conciseness comes at the expense of providing necessary details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations, 0% schema coverage, no output schema, and two parameters (including a nested object), the description is severely inadequate. It provides only the most basic purpose statement without addressing behavioral aspects, parameter details, usage context, or return values that an agent needs to use this tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and two parameters (contact_id and contact_fields), the description provides no information about parameter meanings, formats, or constraints. It doesn't explain what contact_fields should contain, what fields are updatable, or how contact_id should be obtained. The description fails to compensate for the complete lack of schema documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Update') and resource ('a contact in Freshdesk'), making the purpose immediately understandable. However, it doesn't distinguish this tool from sibling update tools like update_agent or update_ticket, which follow the same pattern for different resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided about when to use this tool versus alternatives. The description doesn't mention prerequisites (like needing an existing contact ID), when not to use it, or how it differs from other contact-related tools like create_contact or get_contact.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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