Skip to main content
Glama

write_attachment

Upload base64-encoded files to a Targetprocess card and read them back without local file access.

Instructions

Upload base64-encoded files to a card and read them back; pounce never reads local files.

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": {
      "id": "<id>",
      "files": "<files>"
    },
    "name": "write_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
filesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / id / anyOf
      Removed value: -[
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "pattern": "^\\d+$",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / id / type
      Added value: +"number"
  2. First observedv1.0.1

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It usefully reveals the critical behavioral trait that content must be inlined as base64 and that the server never touches the local filesystem, but it says nothing about overwrite/replace semantics, per-call limits, permission requirements, or what 'read them back' actually returns.

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?

One compact sentence with the encoding constraint front-loaded and no filler. The clause after the semicolon is the highest-value information in the definition and is placed well, though folding a read capability into a write tool's summary adds avoidable ambiguity.

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

Completeness2/5

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

Given zero annotations, no output schema, and 0% schema coverage on a two-parameter tool with nested file objects, this one-liner under-delivers. An agent still cannot tell whether uploads replace existing attachments, what the response contains, or how the 'read back' path relates to read_attachments.

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 0%, so the description must compensate, and it does partially: it clarifies that the files array carries inline base64 content rather than paths, which is exactly the ambiguity in a field named contentBase64. It adds nothing for the id parameter (only inferable as card id from 'to a card'), nor for name/mimeType or the ten-file ceiling that the schema enforces silently.

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?

The description gives a specific verb and resource: upload base64-encoded files to a card, and states the encoding contract. The trailing 'and read them back' muddies the purpose because a sibling named read_attachments exists, but never names it, so the read/upload boundary is left implicit rather than resolved.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no named alternative, even though read_attachments is an obvious counterpart for the retrieval half of the sentence. The only usability hint is the negative constraint that local paths are never read, which is a constraint rather than a selection rule.

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