Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Read the clipboard

get_clipboard
Read-only

Reads the current clipboard to return copied text, whether an image is present, and any files, so tasks can use the user's last copied content.

Instructions

Read the clipboard: its text, whether it holds an image, and the files on it. What the user copied last may be private (a password, a message): read it when the task calls for it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_clipboard"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
textYesThe text on the clipboard. Null when it holds no text (an image, say).
filesYesThe paths of the files on it, as when copied in Finder. Empty when none.
has_imageYesWhether it holds an image, which get_clipboard_image returns.
change_countYesA counter that goes up each time any app changes the clipboard: compare two readings to know whether something was copied in between.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.2
    • removedInput schema / title
      Removed value: -"get_clipboardArguments"
    • removedOutput schema / properties / change_count / title
      Removed value: -"Change Count"
    • removedOutput schema / properties / files / title
      Removed value: -"Files"
    • removedOutput schema / properties / has_image / title
      Removed value: -"Has Image"
    • removedOutput schema / properties / text / title
      Removed value: -"Text"
    • removedOutput schema / title
      Removed value: -"Clipboard"
  2. Addedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds a genuine behavioral note — clipboard content may be private (passwords, messages) — which is real value beyond the annotations, but it says nothing about how image data is surfaced or how it relates to get_clipboard_image.

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 sentences, front-loaded with the verb and returned fields, followed by the privacy caveat. No filler or restatement of the title beyond the minimal verb phrase.

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 an output schema present and annotations covering safety, the description need not explain return values. The one gap is that a user wanting actual image pixels must know to reach for get_clipboard_image, which is left unstated.

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 tool takes zero parameters, so the baseline of 4 applies; there is no parameter meaning for the description to add or omit.

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?

Specific verb + resource ("Read the clipboard") followed by an enumeration of what is returned: text, an image-presence flag, and files. This implicitly separates it from get_clipboard_image (which would fetch actual image data), though that sibling is never named.

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 only usage guidance is the soft conditional "read it when the task calls for it," which is essentially circular. It does flag a privacy consideration that conditions use, but it never states when to prefer get_clipboard_image or any other sibling.

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