Skip to main content
Glama
bruhsb
by bruhsb

paperclip_upload_attachment

Upload a local file as an attachment to an issue. Provide the issue ID and file path to attach reports, logs, or diffs.

Instructions

Upload a local file as an attachment to an issue.

Args:

  • issueId: string — Issue ID or identifier (example: "PAP-42")

  • filePath: string — Absolute path to the local file (example: "/tmp/report.pdf")

  • filename: string (optional) — Override filename in the upload (defaults to basename of filePath)

  • mimeType: string (optional) — MIME type (example: "application/pdf")

Returns: Returns the created attachment record: id, filename, mimeType, size, createdAt.

Examples:

  • Use when: attaching a generated report, diff, or log file to an issue

  • Don't use when: you need to download an attachment — use paperclip_download_attachment instead

Error Handling:

  • 400: validation failure → check filePath is absolute and the file exists

  • 401: authentication failed → check PAPERCLIP_API_KEY

  • 404: issue not found → verify ID with paperclip_list_issues

  • 413: file too large → check Paperclip attachment size limits

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueIdYesIssue ID or identifier (e.g. PAP-22)
filePathYesAbsolute path to the local file to upload
filenameNoOverride filename in the upload (defaults to basename of filePath)
mimeTypeNoMIME type of the file (e.g. text/plain, application/pdf)
Behavior5/5

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

Annotations already indicate destructiveHint=false, and the description adds valuable behavioral context: it returns the created attachment record with fields, and lists specific error codes (400, 401, 404, 413) with explanations. No contradiction with annotations.

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?

The description is well-structured: one-sentence summary, clear args list, returns, examples, and error handling. It is front-loaded with the core action and contains no unnecessary words.

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?

Given 4 parameters, no output schema, no nested objects, and good annotations, the description fully covers the tool's behavior, usage, error handling, and return format. It is complete for effective agent usage.

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%, so parameters are well-documented in schema. The description adds value by providing examples, clarifying defaults (e.g., filename defaults to basename), and requiring absolute paths. However, the schema already covers the meaning, so slightly above baseline.

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 'Upload a local file as an attachment to an issue.' It distinguishes from sibling tools like paperclip_download_attachment by explicitly stating 'Don't use when: you need to download an attachment — use paperclip_download_attachment instead.'

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

Usage Guidelines5/5

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

The description provides explicit when-to-use ('attaching a generated report, diff, or log file') and when-not-to-use ('need to download an attachment'). It also includes error handling guidance (e.g., check filePath exists, verify issue ID) that helps the agent decide.

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/bruhsb/paperclip-mcp'

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