Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

view_ticket_summary

Retrieve detailed summaries of support tickets from Freshdesk to streamline ticket management and enhance customer support workflows.

Instructions

Get the summary of a ticket in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticket_idYes

Implementation Reference

  • The main handler function for the 'view_ticket_summary' tool, decorated with @mcp.tool() for registration. It fetches the ticket summary from the Freshdesk API using the provided ticket_id, handles HTTP errors, and returns the JSON response or error message.
    @mcp.tool()
    async def view_ticket_summary(ticket_id: int) -> Dict[str, Any]:
        """Get 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"
        }
    
        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 ticket summary: {str(e)}"}
            except Exception as e:
                return {"error": f"An unexpected error occurred: {str(e)}"}
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. It states 'Get the summary' which implies a read-only operation, but doesn't clarify authentication requirements, rate limits, error conditions, or what the 'summary' includes versus full ticket details. For a tool with zero annotation coverage, this leaves significant behavioral gaps unaddressed.

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, clear sentence that efficiently communicates the core function without unnecessary words. It's appropriately sized for a simple tool and front-loads the essential information ('Get the summary'). Every word earns its place, making this maximally concise while still being informative.

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 the tool's moderate complexity (retrieving specific data), lack of annotations, no output schema, and 0% schema description coverage, the description is insufficiently complete. It doesn't explain what a 'summary' contains, how it differs from full ticket data, or provide any context about the Freshdesk system. For a tool with these characteristics, more contextual information would be helpful.

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%, meaning the single parameter 'ticket_id' has no documentation in the schema. The description adds no information about this parameter—it doesn't explain what constitutes a valid ticket ID, where to find it, or format requirements. With low schema coverage and no parameter details in the description, this fails to compensate for the documentation gap.

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 ('Get') and resource ('summary of a ticket in Freshdesk'), making the purpose immediately understandable. It doesn't explicitly differentiate from sibling tools like 'get_ticket' or 'view_ticket_field', but the focus on 'summary' provides some distinction. The description avoids tautology by specifying what is being retrieved rather than just restating the tool name.

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 like 'get_ticket' or 'view_ticket_field', nor does it mention any prerequisites or context for usage. It simply states what the tool does without indicating appropriate scenarios or exclusions, leaving the agent to infer usage from the tool name alone.

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