Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Copy an image to the clipboard

copy_image_to_clipboard
DestructiveIdempotent

Copies an image file from disk to the macOS clipboard as an image, replacing existing clipboard contents so other apps can paste it as if copied in Preview.

Instructions

Put an image on the clipboard, from a file, replacing what it held. Other apps get it as an image copied in Preview, not as a file.

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": {
      "path": "<path>"
    },
    "name": "copy_image_to_clipboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe path of the image file, in any format macOS opens (PNG, JPEG, HEIC, GIF, TIFF, PDF...).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.3.2
    • removedInput schema / properties / path / title
      Removed value: -"Path"
    • removedInput schema / title
      Removed value: -"copy_image_to_clipboardArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"copy_image_to_clipboardOutput"
  2. Addedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false; the description earns credit by specifying what is destroyed ('replacing what it held') and how the pasted result is represented to other apps. It adds real context on top of the hints rather than repeating them, though it says nothing about failure modes for unsupported or missing files.

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?

Two short sentences with zero filler; the core action is front-loaded and the paste-representation nuance follows as supporting detail.

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?

For a single-parameter tool with full schema coverage, complete annotations, and an output schema, the description covers the action, input source, clipboard replacement, and receiver-side semantics. Nothing needed to invoke it correctly is missing.

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?

One parameter with 100% schema description coverage, including the accepted formats, so the schema does the heavy lifting. The description's 'from a file' only reinforces what the schema already states about the path, adding no new syntax or constraint.

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 ('Put an image on the clipboard, from a file') and immediately distinguishes the operation from its closest sibling by clarifying the receiver sees an image, 'not as a file' — precisely the distinction versus copy_files_to_clipboard.

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?

The 'as an image copied in Preview, not as a file' clause gives a clear condition for choosing this over the file-based alternative, and 'from a file' scopes the input. It stops short of an explicit when-not or named alternative, so it is clear context rather than full routing guidance.

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