Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

update_ticket_field

Modify ticket fields in Freshdesk using the specified ticket field ID and updated field values to streamline support ticket management and ensure accurate data.

Instructions

Update a ticket field in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticket_field_fieldsYes
ticket_field_idYes

Implementation Reference

  • The handler function for the 'update_ticket_field' tool, decorated with @mcp.tool() for registration. It performs a PUT request to the Freshdesk admin API to update the specified ticket field.
    @mcp.tool()
    async def update_ticket_field(ticket_field_id: int, ticket_field_fields: Dict[str, Any]) -> Dict[str, Any]:
        """Update a ticket field in Freshdesk."""
        url = f"https://{FRESHDESK_DOMAIN}/api/v2/admin/ticket_fields/{ticket_field_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=ticket_field_fields)
            return response.json()
  • The @mcp.tool() decorator registers the update_ticket_field 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 for behavioral disclosure. While 'Update' implies a mutation, the description doesn't specify permission requirements, whether changes are reversible, rate limits, or what happens to existing field configurations. This leaves significant gaps for a tool that modifies data.

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 without unnecessary words. It's appropriately sized for a basic tool definition and front-loads the essential information.

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 complex parameters (including a nested object), the description is inadequate. It doesn't explain what the tool returns, what fields can be updated, or behavioral constraints, leaving too many unknowns for effective use.

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 2 parameters (including a nested object), the description provides no information about parameter meanings. It doesn't explain what 'ticket_field_id' identifies or what fields can be updated in 'ticket_field_fields', failing to compensate for the schema's lack of 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 ticket field in Freshdesk'), making the purpose immediately understandable. It distinguishes this as a mutation operation on ticket fields specifically, though it doesn't differentiate from sibling tools like 'update_ticket' or 'update_contact_field' beyond the resource 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?

No guidance is provided about when to use this tool versus alternatives. With sibling tools like 'create_ticket_field', 'get_ticket_fields', and 'view_ticket_field', the description offers no context about prerequisites, appropriate scenarios, or distinctions from related operations.

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