Skip to main content
Glama

list_issue_attachments

Retrieve all attachments for a specific issue by its index, returning each file's ID, name, size, download count, and direct download URL to manage or access issue files.

Instructions

List the attachments on one issue by its index. Each attachment has id (used by get/edit/delete_issue_attachment), name, size, download_count, and browser_download_url. RISK: instances can disable attachments (404 means the feature is off).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNoRepository name (defaults to GITEA_DEFAULT_REPO)
indexYesIssue number
ownerNoRepository owner (defaults to GITEA_DEFAULT_OWNER)
Install Server

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses the risk of disabled attachments (404) and lists the returned fields, which adds transparency. It does not explicitly state read-only nature, but 'List' implies it; also no side effects are mentioned. This is adequate given the simple operation.

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 two concise sentences that front-load the primary purpose and include only essential details (return fields, risk warning). No unnecessary verbiage, making it highly efficient.

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 the lack of an output schema, the description compensates by listing the exact fields returned (`id`, `name`, `size`, `download_count`, `browser_download_url`) and also warns about the 404 risk. This is comprehensive for a list operation with three well-documented parameters, leaving no significant gaps.

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% with all parameters (repo, index, owner) described including defaults. The description only reiterates 'by its `index`' without adding additional semantic detail beyond the schema. Since schema already covers parameter meanings, a baseline of 3 is appropriate.

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 the action: 'List the attachments on one issue by its `index`.' It specifies the resource (attachments on an issue) and distinguishes from sibling attachment operations by mentioning the `id` is used by get/edit/delete_issue_attachment, implying this is the listing step.

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?

It implicitly guides usage by stating the `id` is used by get/edit/delete tools, suggesting when this list tool is appropriate. However, it does not explicitly mention when to use this vs. other attachment tools or provide exclusion criteria, falling short of explicit guidance.

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

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/amonstack/gitea_mcp'

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