Skip to main content
Glama

attach_issue_file_from_url

Attach a file to an Issue by URL. The server downloads the file (public http(s) URL only; internal and private addresses are blocked) and stores it as a real attachment, so the bytes never pass through the model and cannot truncate. Max 50 MB. fileName is optional and comes from the URL otherwise. The file counts against the organization's storage and its type is verified from its bytes, as an upload in the app is. Anyone who can edit the Issue can attach. For a file with no public URL, upload_issue_attachment takes the bytes 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": {
      "issueId": "<issueId>",
      "url": "<url>"
    },
    "name": "attach_issue_file_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL of the file to fetch. 1..2048 chars.
issueIdYesThe Issue to attach to.
fileNameNoOptional file name incl. extension. Derived from the URL when omitted.
idempotencyKeyNoOptional idempotency key. Pass a stable unique value (e.g. a UUID) to make this create safe to retry: calling again with the same key within 24h - even from a new session after a reconnect - replays the original result and creates no duplicate. Org-scoped; works across conversations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the write/external-fetch profile is covered; the description still adds real value with the 50 MB cap, storage accounting, byte-level type verification, and the no-truncation guarantee. It does not cover failure behavior for blocked or oversized URLs, and it says nothing about the idempotencyKey retry semantics that the schema leans on, which is a notable gap given idempotentHint=false.

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?

Front-loaded with purpose and mechanism, then constraints, then the routing sentence last. Six dense sentences with no filler, though the storage/type-verification clause could be trimmed, and the parenthetical style makes it slightly harder to scan than it needs to be.

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 an externally-fetching write tool with no output schema, it covers the essentials an agent needs: what gets created, the fetch policy, size limit, naming behavior, permission model, and the sibling to use when the precondition fails. Nothing material is missing for correct invocation.

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 the schema already documents all four parameters, and the baseline would be 3. The description adds light but real meaning on top: fileName is confirmed optional with URL-derived fallback, and the URL constraint is restated as a public-address requirement rather than just a string format.

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?

Opens with a specific verb and resource ("Attach a file to an Issue by URL") and immediately clarifies the non-obvious mechanism: the server downloads the file rather than the model passing bytes. That mechanism is exactly what separates it from sibling upload_issue_attachment, so an agent can choose without opening either schema.

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?

States the positive precondition (public http(s) URL only, internal/private blocked) and names the alternative with the condition that selects it: "For a file with no public URL, upload_issue_attachment takes the bytes as base64." It also gives the authorization condition ("Anyone who can edit the Issue can attach"), leaving nothing to inference.

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.