agentleFS
Node804Node804/node804-freshservice-mcp/skills/freshservice/SKILL.md

freshservice

Skill1 starsChanged 6 months agoMITView on GitHub

How to use the Freshservice MCP tools efficiently and safely — which convenience tools to call for "my tickets", group queues, service requests, status lookups, agent identity, replies vs notes, attachments, time entries, approvals, changes, knowledge-base articles, and filter queries. Use whenever working with Freshservice or the helpdesk — tickets (including IDs like INC-1234, SR-1234, #1234), changes (CHN-), agents, requesters, approvals, the service catalog, or solution articles.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a tool you need is missing, the mode is too low.

    line 10
  2. Distinctive:

    Prefer the convenience tools below over chaining lower-level calls.

    line 16
  3. Very specific:

    Every tool takes the plain numeric ID.

    line 20
  4. Very specific:

    Use get_my_tickets(status_filter="unresolved").

    line 24
  5. Very specific:

    If the item fetch fails, the ticket still comes back with ticket.requested_items_error — report that error instead of saying the request is …

    line 38
  6. Very specific:

    If a ticket came from a catalog item but has another type (logged as an Incident, or a custom type name), pass include_requested_items=True …

    line 39
  7. Very specific:

    Use get_ticket_statuses for categorized status IDs (resolved_ids, unresolved_ids, and a full statuses list).

    line 46
  8. Very specific:

    Use get_current_agent for the authenticated user's agent ID, email, or group memberships.

    line 50
  9. Very specific:

    Call find_file first whenever the user wants to find or attach a local file, or gives a partial name.

    line 63
  10. Very specific:

    Delete: delete_ticket_time_entry (full mode, permanent)

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Using the Freshservice tools

These tools wrap the Freshservice REST API v2. Which tools exist depends on the server's permission mode (read, standard, full, admin); call server_status to see the current mode and tool count.

If a tool you need is missing, the mode is too low. Tell the user which tool and which mode it needs, rather than working around it:

  • standard: create/update tickets and changes, replies, notes, attachments, time entries, approvals, service requests
  • full: products, requesters, KB article writes, deleting notes/tasks/time entries
  • admin: deleting tickets, changes or attachments; creating/updating agents and groups

Prefer the convenience tools below over chaining lower-level calls. They save API calls and tokens.

Ticket IDs

Every tool takes the plain numeric ID. Users often write INC-1234, SR-1234, CHN-56 or #1234 — strip the prefix and pass 1234.

"My tickets" / "My open tickets"

Use get_my_tickets(status_filter="unresolved"). Do NOT manually call get_current_agent → get_ticket_fields → parse statuses → filter_tickets; the compound tool does that internally with cached dependencies.

  • status_filter="unresolved" (default) — everything except Resolved/Closed
  • status_filter="resolved" — only Resolved and Closed
  • status_filter="all" — every ticket assigned to the agent

"My group's tickets" / team queue

Get the agent's group IDs from get_current_agent (cached): agent.member_of for groups they belong to, agent.observer_of for groups they only observe. Resolve names with get_agent_group_by_id if the user names a group. Then filter_tickets("group_id:<id> AND (status:2 OR status:3)"). Use get_ticket_statuses if the tenant has custom unresolved statuses you need to include.

Service requests

get_ticket_by_id automatically fetches catalog items for tickets whose type is exactly "Service Request" and returns them as ticket.requested_items. Do NOT call get_requested_items as a follow-up. A service request's description is normally empty; the real details are in the items' custom fields, so read those rather than reporting the ticket as blank.

  • If the item fetch fails, the ticket still comes back with ticket.requested_items_error — report that error instead of saying the request is empty.
  • If a ticket came from a catalog item but has another type (logged as an Incident, or a custom type name), pass include_requested_items=True to force the lookup.
  • Pass include_requested_items=False when the items aren't needed (e.g. you only want the status).

List tools (get_my_tickets, get_tickets, filter_tickets) don't include items. When a page contains service requests, the response carries service_request_ids and a note; call get_ticket_by_id for any you need to summarize.

Status lookups

Use get_ticket_statuses for categorized status IDs (resolved_ids, unresolved_ids, and a full statuses list). Do NOT parse get_ticket_fields yourself.

Agent identity

Use get_current_agent for the authenticated user's agent ID, email, or group memberships. It is cached — call it freely.

Writing to tickets

  • Reply vs note. send_ticket_reply emails the requester and cannot be unsent. Show the user the draft and get a clear yes before sending. Use create_ticket_note for anything internal (notes are never emailed).
  • Signatures. Replies (send_ticket_reply, add_reply_attachment) get the agent's Freshservice signature appended automatically. Don't add your own sign-off. Notes get no signature.
  • Creating. create_ticket requires subject, description, source, priority, status, and either email or requester_id. Status must be a standard value (2=Open, 3=Pending, 4=Resolved, 5=Closed); priority 1=Low … 4=Urgent; source 1=Email, 2=Portal, 3=Phone, 9=Walk-up. To use a custom status, create with 2 then update_ticket.
  • Assigning. The agent field is responder_id (not agent_id). Pass group_id and responder_id explicitly on create.
  • Updating. update_ticket takes a ticket_fields dict; nest custom fields under a custom_fields key.
  • Editing a reply or note uses update_ticket_conversation with the conversation ID from list_all_ticket_conversation, not the ticket ID.

Files and attachments

Call find_file first whenever the user wants to find or attach a local file, or gives a partial name. It searches only the directories in FRESHSERVICE_FILE_SEARCH_PATHS, is case-insensitive, and accepts partial names (report) or globs (*.pdf).

Then upload with add_ticket_attachment, add_note_attachment, or add_reply_attachment, passing the absolute file_path. Total attachments per ticket cannot exceed 40 MB. List or remove with list_ticket_attachments, delete_ticket_attachment, delete_conversation_attachment.

Time entries

  • Read: list_ticket_time_entries, view_ticket_time_entry
  • Log work: create_ticket_time_entry — requires time_spent as "hh:mm", note, and agent_id (for "log time for me", take it from get_current_agent); optional billable, and executed_at (ISO date) to back-date work
  • Edit: update_ticket_time_entry
  • Delete: delete_ticket_time_entry (full mode, permanent)

Equivalent *_change_time_entry tools exist for changes.

Approvals

list_ticket_approvals shows each approver's stage and decision (requested/approved/rejected); view_ticket_approval fetches one by approval_id. Equivalents for changes: list_change_approvals, view_change_approval.

Changes

Change status codes differ from ticket codes: 1=Open, 2=Planning, 3=Awaiting Approval, 4=Pending Release, 5=Pending Review, 6=Closed.

  • "My changes": there's no shortcut — get the agent ID from get_current_agent, then filter_changes("agent_id:<id> AND (status:1 OR status:2 OR status:3 OR status:4 OR status:5)") for open ones.
  • Awaiting approval: filter_changes("status:3"), then list_change_approvals on the ones you need.
  • Closing: close_change requires change_result_explanation; it sets status 6 in one call.
  • Field definitions: list_change_fields (cached).

Knowledge base

There is no article search. Browse down the hierarchy: get_all_solution_category → get_list_of_solution_folder(category_id) → get_list_of_solution_article(folder_id) → get_solution_article(article_id) for the body. Folder and category lists are small; fetch them once and pick by name.

Filter query syntax

filter_tickets and filter_changes take a query string:

  • Single: "status:2"
  • AND: "status:2 AND priority:1"
  • OR: "status:2 OR status:3"
  • Grouped: "agent_id:123 AND (status:2 OR status:3)"
  • Text values in single quotes: "type:'Service Request'", "tag:'VPN'"
  • Dates, in single quotes with > or <: "created_at:>'2026-01-01'"

Field names match the API (agent_id, status, priority, requester_id, group_id, type, tag, created_at, updated_at). In filter queries the assignee field is agent_id; on create/update it is responder_id.

Pagination

Fetch more pages only if the user asks or the response shows more exist. Don't auto-paginate through everything unless asked. How "more" is signalled differs by tool:

  • get_my_tickets, filter_tickets: fixed 30 per page, no per_page. Compare total with page × 30.
  • get_tickets: check pagination.next_page.
  • Other list tools: take page/per_page (default 30, max 100) and return has_more.

Cache

Schema and reference data (get_ticket_fields, get_ticket_statuses, get_current_agent, list_change_fields, …) are cached for FRESHSERVICE_CACHE_TTL (default 1 hour). If the user says something changed in Freshservice, call clear_cache and retry.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.