Skip to main content
Glama

Thought Tree

Attach evidence to a node

attach
Idempotent

Attach a link (PR, preview deploy, issue, log, doc) to a node so the human can open it from the tree. The result also gives the one-line command to upload a screenshot (PNG/JPEG/WebP, up to 1.5 MB) to the same node; use it after you change anything visible.

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": {
      "tree_id": "<tree_id>",
      "url": "<url>"
    },
    "name": "attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttp(s) link.
nodeNoNode the evidence belongs to. Default "root".
agentNoWho you are.
labelNo2-5 words, e.g. "PR #1094" or "preview".
tree_idYesTree id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations only declare openWorldHint=false and idempotentHint=true; the description adds genuinely new behavior: the result returns a one-line command for uploading a screenshot, with concrete constraints (PNG/JPEG/WebP, up to 1.5 MB). It also discloses the downstream effect of making the link openable by a human in the tree. It stops short of stating permissions or what happens on duplicate/rejected links, keeping it below 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.

Conciseness4/5

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

Two tight sentences, front-loaded with the core action, then the supplementary screenshot-command behavior. Nothing is wasted, though the second sentence joins two ideas (result contents and timing) with a semicolon in a slightly compressed way.

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 five params, no output schema, and light annotations, the description does the work an agent needs: what the tool attaches, the effect for the human, and the shape of the returned upload command including size/format limits. Only minor gaps remain (behavior on invalid or duplicate URLs), which are not critical for correct selection.

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%, so every parameter is already documented (url as http(s), node defaulting to "root", label as 2-5 words, agent, tree_id). The description's mention of PR/preview/issue/log/doc lightly clarifies the kind of `url` expected and the screenshot goes to "the same node," but it adds no syntax or formatting detail beyond the schema. Baseline 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?

States a specific verb and resource ("attach a link ... to a node") and enumerates the concrete artifact types it accepts (PR, preview deploy, issue, log, doc), so the agent knows exactly what belongs here. None of the siblings (ask_human, branch, mark, open_tree) overlap with attaching evidence, and the human-facing effect ("so the human can open it from the tree") further pins down the intent.

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?

Gives a clear triggering condition — "use it after you change anything visible" — and explains the follow-on screenshot flow. It does not name an alternative tool or state what should *not* be attached here, but the use case is unambiguous enough for correct invocation.

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.

Resources