Skip to main content
Glama

zendesk_post_internal_note

Post internal notes on Zendesk tickets for agent-only communication without notifying the requester.

Instructions

Post an internal note on a Zendesk ticket. Internal notes are only visible to agents and are not sent to the requester.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticket_idYes
bodyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The tool handler for zendesk_post_internal_note. It calls the helper _post_comment_data with public=False, making the note internal (agent-only visibility).
    @mcp.tool()
    def zendesk_post_internal_note(ticket_id: int, body: str) -> str:
        """Post an internal note on a Zendesk ticket. Internal notes are only visible to agents and are not sent to the requester."""
        return _post_comment_data(ticket_id, body, public=False)
  • Core helper function that creates the Zendesk API client, builds a Ticket with a Comment (public or private), and updates it via the Zenpy library. Handles configuration errors and API errors gracefully.
    def _post_comment_data(ticket_id: int, body: str, public: bool) -> str:
        try:
            client = get_client()
            ticket = Ticket(id=ticket_id)
            ticket.comment = Comment(body=body, public=public)
            client.tickets.update(ticket)
            label = "Public comment" if public else "Internal note"
            return f"{label} posted successfully on ticket #{ticket_id}."
        except ConfigError as e:
            return str(e)
        except Exception as e:
            if "RecordNotFound" in str(e) or "404" in str(e):
                return f"Ticket #{ticket_id} not found or not accessible with current credentials."
            return f"Zendesk API error: {e}"
  • Registration call in the main server function that registers all write comment tools (including zendesk_post_internal_note) on the FastMCP instance.
    register_write_comment_tools(mcp)
  • Registration function that uses @mcp.tool() decorator to register both zendesk_post_comment and zendesk_post_internal_note as MCP tools.
    def register_write_comment_tools(mcp) -> None:
        @mcp.tool()
        def zendesk_post_comment(ticket_id: int, body: str) -> str:
            """Post a public reply on a Zendesk ticket. The reply is visible to the requester. Use for customer-facing responses."""
            return _post_comment_data(ticket_id, body, public=True)
    
        @mcp.tool()
        def zendesk_post_internal_note(ticket_id: int, body: str) -> str:
            """Post an internal note on a Zendesk ticket. Internal notes are only visible to agents and are not sent to the requester."""
            return _post_comment_data(ticket_id, body, public=False)
Behavior3/5

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

With no annotations provided, the description carries the full burden but only states that notes are visible only to agents. It does not disclose authentication requirements, error handling, rate limits, or other behavioral aspects.

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

Conciseness4/5

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

The description is extremely concise at two sentences, but could include parameter details without much added length. It is well-structured and front-loaded.

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?

The description is minimal for a tool with two required parameters and no schema coverage. It does not explain what the function returns or any side effects, though an output schema exists.

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?

The description does not explain the parameters (ticket_id, body) despite schema coverage being 0%. It fails to add meaning beyond the schema, leaving the agent with no additional semantic context.

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

Purpose5/5

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

The description clearly states the action ('Post an internal note on a Zendesk ticket') and distinguishes this tool from similar ones like zendesk_post_comment by specifying that internal notes are only visible to agents and not sent to the requester.

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

Usage Guidelines4/5

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

The description provides clear context on when to use this tool (for agent-only notes) but does not explicitly mention alternatives or when not to use it, though the distinction from public comments is implied.

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

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/michaelrice/zendesk-mcp'

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