Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

create_ticket_note

Add a note to a Freshdesk support ticket by specifying the ticket ID and note content to assist with ticket management and customer communication.

Instructions

Create a note for a ticket in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
ticket_idYes

Implementation Reference

  • The handler function for the 'create_ticket_note' tool. It creates a private note on a Freshdesk ticket by making a POST request to the /tickets/{ticket_id}/notes API endpoint. The @mcp.tool() decorator registers this function as an MCP tool.
    @mcp.tool()
    async def create_ticket_note(ticket_id: int,body: str)-> Dict[str, Any]:
        """Create a note for a ticket in Freshdesk."""
        url = f"https://{FRESHDESK_DOMAIN}/api/v2/tickets/{ticket_id}/notes"
        headers = {
            "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}"
        }
        data = {
            "body": body
        }
        async with httpx.AsyncClient() as client:
            response = await client.post(url, headers=headers, json=data)
            return response.json()
  • The @mcp.tool() decorator registers the create_ticket_note function as a tool in the FastMCP server.
    @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 the full burden of behavioral disclosure. It mentions creation but doesn't specify permissions required, whether notes are editable/deletable, rate limits, or response format. For a mutation tool with zero annotation coverage, this leaves critical behavioral traits 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, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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 is a mutation operation with no annotations, 2 parameters at 0% schema coverage, and no output schema, the description is incomplete. It lacks details on behavior, parameters, and expected outcomes, which are essential for effective tool use in this context.

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

Parameters3/5

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

Schema description coverage is 0%, so the schema provides no parameter details. The description doesn't add any parameter semantics beyond implying 'ticket_id' and 'body' from the tool name and context, but it doesn't explain what these parameters represent or their constraints. With 2 parameters, this is a minimal baseline.

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 ('Create a note') and target resource ('for a ticket in Freshdesk'), which is specific and unambiguous. It distinguishes from siblings like 'create_ticket' or 'create_ticket_reply' by focusing on notes, though it doesn't explicitly contrast them.

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 'create_ticket_reply' or 'update_ticket_conversation', nor does it mention prerequisites such as needing an existing ticket. It only states what it does, not when or why to use it.

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