Skip to main content
Glama

read_work_item_attachment

Fetch attachment content from a Plane work item to read or analyze images and text files. Supports PNG, JPEG, GIF, WEBP and TXT, MD, CSV, HTML, XML, YAML, JSON, returning vision images or strings.

Instructions

Fetch an attachment's content so the LLM can read or analyze it.

Supported file types: Images (returned as vision-readable image, max 5 MB): PNG, JPEG, GIF, WEBP Text (returned as a string, max 1 MB): TXT, MD, CSV, HTML, XML, YAML, JSON

Not supported (use get_work_item_attachment_download_url instead): PDF — requires a text-extraction library (not installed) DOCX/XLSX/PPTX — binary Office formats, require extraction Audio / Video — non-textual binary formats Generic binary — executables, archives, etc.

Args: project_id: UUID of the project work_item_id: UUID of the work item attachment_id: UUID of the attachment

Returns: Image object for image files, plain string for text files.

Raises: ValueError: If the file type is unsupported or the file exceeds the size limit for its category.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
work_item_idYes
attachment_idYes
Behavior5/5

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

With no annotations, the description carries full burden. It fully discloses return types (image vs string), size limits (5 MB images, 1 MB text), error conditions (ValueError), and even explains why certain formats are unsupported (missing extraction libraries). This is exemplary transparency.

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-organized into logical sections (supported, unsupported, args, returns, raises) and every sentence adds value—no fluff or repetition. It's longer than many but each detail is necessary for correct use.

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 tool's moderate complexity (format handling) and the absence of annotations and output schema, the description provides complete guidance: supported and unsupported types, return formats, size limits, and exception behavior. Nothing critical is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it does. Each parameter is described as 'UUID of the project/work item/attachment', adding meaning beyond the bare type='string' in the schema. This fully covers parameter intent.

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 opens with a specific verb and resource ('Fetch an attachment's content') and clarifies the LLM-focused purpose. It explicitly distinguishes itself from the sibling tool get_work_item_attachment_download_url by directing unsupported file types there.

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?

It clearly delineates when to use this tool (for images and text files) and when to use the alternative get_work_item_attachment_download_url for unsupported types. Supported and unsupported lists make the decision straightforward.

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/leigangzhang/plane-mcp-server-adapter'

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