Skip to main content
Glama
NKS osTicket MCP

NKS osTicket MCP

by nks-hub

osticket_download_attachment

Downloads a ticket attachment by its numeric file ID from osTicket and returns the file as base64 for AI agents to retrieve thread attachments.

Instructions

Download a ticket attachment by its numeric file id (from a thread entry's attachments[].fileId in osticket_get_ticket), returned as base64.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileId": "<fileId>"
    },
    "name": "osticket_download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesAttachment file id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileId / maximum
      Added value: +9007199254740991
  2. First observedv1.1.0

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden. It does useful work by declaring the payload is base64 rather than a binary stream or URL, which changes how the agent should handle the result, but it says nothing about size limits, permissions/auth requirements, or behavior when the file id is invalid or missing.

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?

A single sentence that front-loads the action and resource, then the input, then the output format. No filler, and the provenance hint is appended without bloat.

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

Completeness5/5

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

For a one-parameter read-only download with no output schema, the description covers what the agent needs: the id's type and source, and the encoding of the returned content. Remaining unknowns (error cases, size ceilings) are peripheral for a simple fetch tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents fileId as an integer attachment id, so baseline is 3. The description adds real meaning beyond that by specifying it is numeric and, more importantly, by giving its provenance (attachments[].fileId from osticket_get_ticket), which tells the agent where to source a valid value.

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?

States a specific verb (download) and resource (ticket attachment), and adds the input identity (numeric file id) plus the return form (base64). It also names the sibling tool where the id originates, so an agent can tell this apart from thread-reading tools like osticket_get_ticket.

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 gives clear positive routing: get the fileId from a thread entry's attachments[].fileId in osticket_get_ticket, then call this tool. It does not state when-not to use it or what happens with an id that doesn't belong to the ticket, but the calling context is unambiguous.

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