Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

update_ticket_summary

Modify the summary of a Freshdesk ticket by specifying the ticket ID and updated body. Automates ticket management for streamlined customer support operations.

Instructions

Update the summary of a ticket in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
ticket_idYes

Implementation Reference

  • The main handler function for the 'update_ticket_summary' tool, decorated with @mcp.tool() for automatic registration. It performs a PUT request to the Freshdesk API to update the ticket summary with the provided body.
    @mcp.tool()
    async def update_ticket_summary(ticket_id: int, body: str) -> Dict[str, Any]:
        """Update the summary of a ticket in Freshdesk."""
        url = f"https://{FRESHDESK_DOMAIN}/api/v2/tickets/{ticket_id}/summary"
        headers = {
            "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}",
            "Content-Type": "application/json"
        }
        data = {
            "body": body
        }
    
        async with httpx.AsyncClient() as client:
            try:
                response = await client.put(url, headers=headers, json=data)
                response.raise_for_status()
                return response.json()
            except httpx.HTTPStatusError as e:
                return {"error": f"Failed to update ticket summary: {str(e)}"}
            except Exception as e:
                return {"error": f"An unexpected error occurred: {str(e)}"}
  • The @mcp.tool() decorator registers the update_ticket_summary function as an MCP tool.
    @mcp.tool()
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states 'Update' which implies a mutation operation, but doesn't disclose behavioral traits like required permissions, whether changes are reversible, rate limits, or what happens on success/failure. For a mutation tool with zero annotation coverage, this leaves critical behavioral aspects unspecified.

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 a simple operation and front-loads the essential information without unnecessary elaboration.

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?

Given this is a mutation tool with no annotations, 0% schema coverage, no output schema, and 2 parameters, the description is incomplete. It doesn't cover parameter meanings, behavioral implications, usage context, or expected outcomes. For a tool that modifies data in a system with many sibling operations, more contextual information is needed.

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?

Schema description coverage is 0%, so parameters are undocumented in the schema. The description doesn't add any parameter semantics—it doesn't explain what 'ticket_id' and 'body' represent, their formats, constraints, or examples. With 2 required parameters and no schema descriptions, this is inadequate compensation.

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 ('summary of a ticket in Freshdesk'), making the purpose immediately understandable. It distinguishes this from other update operations like update_ticket or update_ticket_conversation by specifying it's for the summary field specifically. However, it doesn't explicitly contrast with delete_ticket_summary or view_ticket_summary among siblings.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an existing ticket), when not to use it (e.g., for other ticket fields), or direct alternatives like update_ticket for broader modifications. With many sibling tools including other update operations, this lack of differentiation is a significant gap.

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