Skip to main content
Glama

goal-attach-file

Attach a small file (mockup, diagram, screenshot, PDF) to a GOAL as a description attachment — NOT evidence: it is not bound to any acceptance criterion, is never judged and never counts toward closing the goal. Returns {attachment.url, attachment.markdown}; paste markdown into the goal description (goal-update description) and the web UI renders images inline.

contentBase64 is reliable only for payloads ≤ ~1 KB (long string arguments get truncated on the agent side before the request is sent). For anything bigger call goal-request-upload with goalId and stream the file with a single PUT — same result shape, no base64.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalIdYesUUID of the goal the file illustrates
captionNoOptional alt-text / caption used in the markdown fragment
filenameYesOriginal file name (basename only; used for download + markdown alt)
mimeTypeNoOptional MIME hint; server sniffs bytes when omitted or not whitelisted
createdByNoIdentifier of the uploading agent
contentBase64YesFile bytes, standard base64 (RFC 4648). Tiny files only — see description.
contentSha256NoOptional hex sha256 of the raw bytes — server fails fast on transport corruption

TDQS

A4.9/5.0
Behavior5/5

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

The description discloses important behavioral details: that contentBase64 is reliable only for payloads ≤ ~1 KB and that longer strings get truncated on the agent side. It also explains the return value ({attachment.url, attachment.markdown}) and clarifies that the attachment is not evidence and does not count toward closing the goal. These details go beyond the annotations (readOnlyHint: false, idempotentHint: false) and provide transparency about side effects and limitations.

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-structured with two clear paragraphs: the first outlines the purpose and return shape, the second addresses size limitations and alternatives. It is succinct without unnecessary repetition, and each sentence adds relevant information. The use of emphasis (— NOT evidence) and clear instructions keeps it focused.

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 is a mutation (readOnlyHint: false) and not idempotent (idempotentHint: false), the description sufficiently covers usage context: it explains what the tool does, when to use it, and when not to use it (large files). It also explains the output format and how to integrate it ('paste markdown into the goal description'). No additional critical context is missing.

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?

The input schema covers all 7 parameters with descriptions, so the baseline is 3. The description adds value by explaining the size constraint on contentBase64 and clarifying its purpose ('Tiny files only — see description'). It also explains the usage of the returned markdown, which indirectly clarifies the purpose of filename and goalId. However, it does not elaborate on mimeType, createdBy, or contentSha256 beyond their schema descriptions, so some parameters lack additional context.

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 clearly states the action ('Attach a small file') and the target resource ('to a GOAL as a description attachment'). It distinguishes this from evidence attachment by explicitly noting 'NOT evidence', and provides the output shape. The verb and resource are specific, and the sibling tool goal-attach-evidence is implicitly differentiated.

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?

The description gives explicit usage guidance: it is for small files (mockup, diagram, screenshot, PDF) to be used as description attachments, not evidence. It also provides an explicit alternative for larger files: 'For anything bigger call goal-request-upload with goalId and stream the file with a single PUT'. This clearly tells when to use this tool vs alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools have clear distinct purposes (goal-create vs goal-update vs goal-delete), but the evidence-related tools (goal-add-evidence-text, goal-attach-evidence, goal-request-upload) and note tools (goal-add-note) have overlapping concepts that require careful reading of descriptions to differentiate. Overall, the detailed descriptions help resolve ambiguity, but a few tools could be easily confused.

Naming Consistency4/5

The majority follow a consistent verb_noun pattern with a resource prefix (goal-create, goal-get, project-list, project-update). However, there are deviations like account-delete (noun-verb reversed), goal-todo, goal-summary, goal-tree, and goal-recent-unresolved that break the pattern. The inconsistency is minor but noticeable.

Tool Count2/5

With 38 tools, this server has a very large surface area. Even for a complex planner with evidence management, the number exceeds the 25-tool threshold for 'too many'. Many tools could potentially be consolidated (e.g., goal-add-note and goal-add-evidence-text), and the size may overwhelm agents during tool selection.

Completeness5/5

The tool set provides complete coverage of the domain: full goal lifecycle (create, get, update, delete, list, tree, move, reorder, block), evidence management (attach, request upload, text evidence, remove), acceptance criteria (add, update, remove, request change, resolve escalation), assumptions (add, update, remove, suggest, attach evidence), blockers, notes, project management (CRUD, dependencies), and configuration settings. No critical gaps are apparent.

Resources