Skip to main content
Glama

nworks_mail_download_attachment

Idempotent

Download email attachments by specifying mail ID and attachment ID. Save to a local directory or receive file content directly, with support for text and base64-encoded binaries.

Instructions

메일 첨부파일을 다운로드합니다. mailId와 attachmentId는 nworks_mail_read로 조회 가능. User OAuth 인증 필요 (mail.read scope). outputDir을 지정하면 로컬에 파일로 저장하고, 미지정 시 파일 내용을 직접 반환합니다 (텍스트는 text, 바이너리는 base64). 5MB 초과 파일은 반드시 outputDir를 지정해야 합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mailIdYes메일 ID (nworks_mail_list로 조회 가능)
userIdNo대상 사용자 ID (미지정 시 me)
outputDirNo저장 디렉토리 (지정 시 파일로 저장, 미지정 시 내용을 직접 반환)
outputNameNo저장 파일명 (미지정 시 원본 파일명)
attachmentIdYes첨부파일 ID (nworks_mail_read로 조회 가능)
Behavior4/5

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

Description exceeds annotations by specifying OAuth requirements, output modes (file vs. direct content), and the 5MB limitation. Annotations indicate non-destructive and idempotent, but description adds meaningful behavioral context not covered by 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?

Description is succinct, front-loaded with the core purpose and key conditions (outputDir, file size limit). Every sentence adds critical information without redundancy.

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?

Despite no output schema, description provides enough detail on return modes and constraints. The complexity is moderate and fully addressed with parameter semantics and usage guidance. Missing details like empty states or error handling are minor given the tool's simplicity.

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 covers all parameters with descriptions, and the tool description further clarifies the roles of mailId, attachmentId, outputDir, and outputName. Even though coverage is 100%, the description adds value by explaining when to use outputDir for large files and specifying content type handling.

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?

Description clearly states the tool downloads mail attachments, identifies required parameters (mailId, attachmentId), and explains the output behavior (file save or direct return). It distinguishes itself from siblings by focusing on attachment download specifically.

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 mentions that mailId and attachmentId can be obtained via nworks_mail_read, and that OAuth scope mail.read is needed舋clearly setting the context. It doesn't explicitly state when NOT to use this tool versus alternatives, but the focused purpose and sibling names (e.g., mail_send, mail_read) make the intent clear.

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/yjcho9317/nworks'

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