Skip to main content
Glama

AddAttachmentTool

Upload a file attachment directly to an existing task/story/piece

Input Schema

NameRequiredDescriptionDefault
file_urlNoPublic https URL of the file to attach; the server downloads it
file_nameNoFilename with extension (required when using file_content, e.g., "report.pdf")
account_codeYesAccount code (e.g., "bcp", "jchsoft")
file_contentNoBase64-encoded file content (use this for remote MCP clients)
signed_blob_idNoSigned blob id of a file already uploaded to a direct-upload URL
piece_relative_idYesRelative ID of the piece to attach file to

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / signed_blob_id
      Added value: +{
      +  "description": "Signed blob id of a file already uploaded to a direct-upload URL",
      +  "type": [
      +    "null",
      +    "string"
      +  ]
      +}
  2. Changed2 schema fields changed
    • removedInput schema / properties / file_path
      Removed value: -{
      -  "description": "Absolute path to file to attach (server-local files only)",
      -  "type": [
      -    "null",
      -    "string"
      -  ]
      -}
    • addedInput schema / properties / file_url
      Added value: +{
      +  "description": "Public https URL of the file to attach; the server downloads it",
      +  "type": [
      +    "null",
      +    "string"
      +  ]
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the write-but-non-destructive profile is covered. The description adds little beyond that: no mention of download behavior for file_url, size/type limits, whether existing attachments are affected, or required permissions.

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?

A single well-formed sentence with the action front-loaded and no filler. It is efficient, though so terse that it omits the mode-selection context an agent would benefit from.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with three alternative content-supply parameters and no output schema, the description should clarify which input mode to pick and what the caller gets back (an attachment reference). Neither is addressed, though the schema carries the parameter burden.

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 description coverage is 100%, so each of the six parameters is already documented, including the three mutually exclusive upload modes. The description contributes no additional meaning about those modes or the optionality of file_name, so 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 (upload a file attachment) plus the exact target (an existing task/story/piece), so an agent can distinguish it from GetAttachmentTool. The word 'directly' gestures at a different upload path (CreateUploadUrlTool) but doesn't name it, leaving some ambiguity about which tool is the right one.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage ('directly to an existing task') but never states when to prefer this over CreateUploadUrlTool or the two-step signed_blob_id flow. No preconditions or exclusions are given, so the agent must infer the routing decision.

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