Skip to main content
Glama
Todoist AI MCP Server
by todoist

view-attachment

Read-onlyIdempotent

Retrieve a Todoist comment attachment by fileUrl, returning images inline, text files as text, and binaries like PDFs as embedded resources for review.

Instructions

View a file attachment from a Todoist comment. Pass the fileUrl from a comment's fileAttachment field. Supports images (returned inline), text files (returned as text), and binary files like PDFs (returned as embedded resources).

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": {
      "fileUrl": "<fileUrl>"
    },
    "name": "view-attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileUrlYesThe fileUrl from a comment's fileAttachment. Allowed hosts (https only): files.todoist.com, todoist.b-cdn.net, d1ysz50cxb9zwl.cloudfront.net.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv21.0.2
    • changedInput schema / properties / fileUrl / description
      Previous value: -"The URL of the attachment file to view. Get this from the fileUrl field in a comment's fileAttachment."New value: +"The fileUrl from a comment's fileAttachment. Allowed hosts (https only): files.todoist.com, todoist.b-cdn.net, d1ysz50cxb9zwl.cloudfront.net."
  2. Changed2 schema fields changedv17.0.0
    • removedInput schema / properties / fileUrl / format
      Removed value: -"uri"
    • addedInput schema / properties / fileUrl / pattern
      Added value: +"^https:\\/\\/(?:files\\.todoist\\.com|todoist\\.b-cdn\\.net|d1ysz50cxb9zwl\\.cloudfront\\.net)\\/\\S*$"
  3. Changed1 schema field changedv13.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. First observedv10.4.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world, and non-destructive behavior, so the bar is lower, yet the description still adds real value by disclosing how output varies by file type (images inline, text as text, PDFs as embedded resources). That return-shape information matters because no output schema exists. It omits size limits or failure behavior for unsupported hosts, which keeps it from a 5.

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 source, then the output variants. Every sentence carries distinct information and none is redundant.

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 a single-parameter read tool with full annotation coverage, the definition covers purpose, input provenance, and return behavior across the three file classes. There is no output schema, but the description compensates by describing what comes back. Nothing an agent needs to invoke it correctly is missing.

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?

With 100% schema description coverage and a single constrained parameter (host pattern enforced), the schema already does the heavy lifting. The description restates that the URL comes from a comment's fileAttachment, matching the schema text rather than adding new meaning. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('View a file attachment from a Todoist comment'), so the agent knows exactly what the tool returns. It also names the source field (a comment's fileAttachment), which implicitly distinguishes it from comment-listing siblings like find-comments, though it does not call out any alternative by name.

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?

Explicitly tells the agent how to obtain the input ('Pass the fileUrl from a comment's fileAttachment field'), which is the real usage precondition for this tool. It gives no when-not-to-use cases or named alternatives, so it stops short of full routing guidance.

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