Skip to main content
Glama

add_attachments_to_project

Destructive

Saves PDF files attached to the current message as project documents, deduplicating by content and recording same-named sheets with new content as revisions.

Instructions

For a SMALL PDF the person attached in the composer of THIS message (a real plan set is dropped on the panel and uploaded by the app directly, never through you — if you were told plans were added, they are already saved, do not call this). Saves the attached PDF files into the open project as its documents — the same thing the Documents drop zone does (dedup by content; a same-named sheet with new content is recorded as a revision). Only PDFs attached to the current message are available; screenshots are never saved as plans. Returns the files now on the project and the document summary (pages, size class). Explicitly classified specifications queue local indexing automatically: check get_spec_index, then use bounded cited source reads. Unclassified documents need the user's type selection before paid reading. For drawings, use start_parse after the person requests reading. Never show AI usage or dollar estimates in chat.

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": {
      "project_id": "<project_id>"
    },
    "name": "add_attachments_to_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project to work on (list_projects names them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A4.2/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=false, and the description adds substantive behavior the annotations cannot: content-based dedup, same-named sheets with new content recorded as revisions, only the current message's attachments being reachable, screenshots never persisted as plans, and automatic local indexing for classified specifications. It also explains what is returned: files now on the project plus a document summary with pages and size class.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core rule is front-loaded, but the body is one long run-on with nested parentheticals, and the trailing sentences drift into downstream workflow advice (get_spec_index, start_parse, paid reading) plus an unrelated directive about never showing AI usage or dollar estimates. Useful content is padded and would benefit from tight bullet structure.

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?

With no output schema, the description does cover return values (attached files and document summary), dedup/revision semantics, and the classification/indexing consequence. Minor gaps remain: 'SMALL PDF' is never quantified and the interaction between the destructiveHint flag and dedup behavior is not spelled out.

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 coverage is 100% with a single project_id parameter whose schema description already points at list_projects, so the schema carries the load. The description only indirectly implies scope by saying 'the open project', adding little beyond the structured field.

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 concrete verb+resource: it saves PDFs attached to the current message into the open project as documents, and it explicitly contrasts that with the app's direct upload path for real plan sets. An agent can tell what it does, though the sibling add_attachments_to_library (library vs. project) is never named, so the distinction must be inferred from the word 'project'.

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?

Gives explicit when-to-use (small PDF attached in the composer of THIS message), when-not-to-use ('if you were told plans were added, they are already saved, do not call this'), and downstream routing (check get_spec_index, use start_parse after the user requests reading). This is about as strong as guidance gets.

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

Deploy Server

Other Tools