Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_download_taiga_attachment

Downloads a Taiga task attachment to local disk from its URL or attachment ID, returning the saved file path and a text preview for text-like files.

Instructions

Download a Taiga task attachment to local disk. Provide the attachment url (from erpnext_get_taiga_tasks) or a numeric attachment_id. Returns the saved file path and — for text-like files — a content preview.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "erpnext_download_taiga_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoAttachment download URL (from a task's attachments list).
filenameNoOptional filename to save as.
save_dirNoDirectory to save into. Default: OS temp/devflow-attachments/taiga.
attachment_idNoNumeric attachment id (used to resolve the url when url is not given).
preview_charsNoMax characters of text preview (default: 4000).
include_text_previewNoFor text-like files, include a content preview (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key side effect (writes a file to local disk) plus the return values (saved path and text preview). It omits whether an existing file is overwritten, any permission or size constraints, and how failures surface, which matters for a disk-writing tool.

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?

Three short sentences, front-loaded with the purpose, then the input routing, then the return shape. No filler or redundant restatement of the name.

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

Completeness4/5

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

Though there is no output schema and no annotations, the description compensates by stating the return values (saved file path, content preview for text files). Some behavioral gaps remain for a six-parameter file-writing tool, but an agent has enough to invoke it correctly.

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%, so every parameter is already documented, and the description largely restates the url-or-id resolution rule found in the schema. It adds only a light connection between 'text-like files' and the preview parameters, so the 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 first sentence gives a specific verb ('Download') and resource ('a Taiga task attachment to local disk'), and the Taiga qualifier separates it from the Redmine download sibling. An agent can identify the operation and target system without opening the schema.

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 explains the two alternative inputs (a url or a numeric attachment_id) and explicitly traces where the url comes from ('from erpnext_get_taiga_tasks'), which links this tool into a real workflow. It stops short of stating when not to use it or how it relates in behavior to erpnext_download_redmine_attachment.

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