Skip to main content
Glama

HappyFox MCP by usefulapi

Reply to a ticket as an agent

happyfox_add_staff_reply
Destructive

Add an agent reply to a ticket and/or change its status, priority, assignee, due date or tags. The contact is emailed ONLY if update_customer is true (HappyFox default: false). With no message it just updates properties. Moving to a completed status may require the category's compulsory custom fields. HappyFox: POST /api/1.1/json/ticket/<ticket_number>/staff_update/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoCC email addresses, as a comma-separated string.
bccNoBCC email addresses, as a comma-separated string.
htmlNoReply in HTML.
tagsNoTags to set, as a comma-separated string.
staffYesThe agent making the reply (happyfox_list_staff) id.
statusNoNew status id (happyfox_list_statuses).
subjectNoOverride the subject of the email sent to the contact.
assigneeNoAgent id to assign the ticket to (from happyfox_list_staff); null to unassign.
due_dateNoDue date, yyyy-mm-dd or dd/mm/yyyy.
priorityNoNew priority id (happyfox_list_priorities).
plaintextNoReply in plain text.
time_spentNoMinutes to add to the ticket's time spent (some categories require it).
send_surveyNotrue = send the satisfaction survey.
custom_fieldsNoCustom field values keyed "t-cf-<id>". Ticket fields (ids from happyfox_list_ticket_custom_fields); compulsory-on-completion fields are required when closing. Values: text = string, number = number, dropdown = choice id, multiple choice = array of choice ids, date = yyyy-mm-dd.
ticket_numberYesThe ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id.
update_customerNotrue = send the reply to the contact by email. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations supply only destructiveHint=true, so the description carries the load and does it well: it discloses the customer-facing email side effect and its default-off behavior, the no-message property-only mode, and the compulsory-custom-field prerequisite for closing. These are the highest-risk, least-obvious behaviors of this mutation.

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?

Four dense sentences, front-loaded with the core action and the most surprising constraint (email gating) placed early. The trailing REST endpoint line is harmless but not something an agent needs to select or invoke the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter destructive mutation with no output schema, the description covers the important behavioral prerequisites and side effects. It omits anything about return payload, error conditions, or partial-update behavior, but with no output schema that burden is lower.

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 100%, so the schema already documents every parameter including update_customer, custom_fields, and the completion requirement. The description reinforces update_customer and the closing constraint but adds little syntax or format detail beyond what the schema provides, matching the baseline 3.

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 gives a specific verb+resource ('Add an agent reply to a ticket') and immediately broadens it to the property-mutation capability (status, priority, assignee, due date, tags), so the dual nature of the tool is unmistakable. It does not, however, explicitly distinguish itself from close siblings such as happyfox_add_private_note or happyfox_update_ticket_tags, leaving that contrast to inference.

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?

It gives real decision context: the contact is emailed ONLY when update_customer is true (default false), and with no message the call degrades to a pure property update. It also warns that moving to a completed status may require compulsory custom fields. It stops short of naming an alternative tool for the internal-note case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.