Skip to main content
Glama

HappyFox MCP by usefulapi

Create a ticket

happyfox_create_ticket
Destructive

Open a new ticket on behalf of a contact (created if the email is new). Needs a category id (a public category), a subject and a message in text or html. HappyFox: POST /api/1.1/json/tickets/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoCC email addresses, as a comma-separated string.
bccNoBCC email addresses, as a comma-separated string.
htmlNoMessage in HTML (text or html is required).
nameYesContact name.
tagsNoTags, as a comma-separated string.
textNoMessage in plain text (text or html is required).
emailYesContact email address.
phoneNoContact phone number.
subjectYesTicket subject.
assigneeNoAgent id to assign the ticket to (from happyfox_list_staff); null to unassign.
categoryYesThe category (happyfox_list_categories; must be public) id.
due_dateNoDue date, yyyy-mm-dd or dd/mm/yyyy.
priorityNoPriority id (happyfox_list_priorities); defaults to the default priority.
custom_fieldsNoCustom field values keyed "t-cf-<id>" / "c-cf-<id>". Ticket (t-cf-) and contact (c-cf-) fields; required ones must be present. Values: text = string, number = number, dropdown = choice id, multiple choice = array of choice ids, date = yyyy-mm-dd.
visible_only_staffNotrue = private ticket, visible to staff only.

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

A3.8/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true, so the description carries real weight: it discloses the side effect that a new contact is created when the email is unknown, and the constraint that the category must be public. It omits auth requirements, rate limits, and any note on duplicate-ticket behavior.

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?

Two sentences, front-loaded with the core action and the contact-creation caveat, with no padding. The trailing API endpoint ("POST /api/1.1/json/tickets/") is low-value detail for an agent choosing a tool, which keeps it from a perfect score.

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

Completeness3/5

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

For a 15-parameter creation tool with only a destructiveHint annotation and no output schema, the description is thin. Most critically, it never says what is returned (presumably the new ticket id), which an agent likely needs for follow-up calls like happyfox_update_ticket_tags.

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 baseline is 3. The description's parameter claims (public category, text-or-html requirement) largely restate what the schema already documents, adding little semantic value beyond the schema.

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?

States a specific verb and resource ("Open a new ticket") plus the acting party ("on behalf of a contact"), and the parenthetical about auto-creating a new contact is a meaningful scope detail. It is clearly distinct from reply-oriented siblings like happyfox_add_staff_reply and happyfox_add_private_note, though it never names an alternative explicitly.

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?

Gives prerequisites (needs a public category id, subject, and text or html message), which is exactly what an agent needs before invoking. It also pre-answers the practical question of whether to call happyfox_create_contact first. It stops short of stating when not to use it or naming alternatives for ticket creation paths.

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.