Skip to main content
Glama

Write Clipboard

clipboard_write

Write text or file paths to the macOS clipboard, replacing existing contents.

Instructions

Replace the system clipboard contents with text, or with file references (native helper only — no CLI fallback exists for file references). Uses the native helper (NSPasteboard); falls back to pbcopy (text only) if the helper is unavailable. Overwrites whatever is currently on the clipboard. No permission required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoText to place on the clipboard. Provide this or filePaths.
filePathsNoAbsolute file paths to place on the clipboard as file references. Requires the native helper.
Behavior5/5

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

Discloses that it overwrites existing clipboard content, uses NSPasteboard with a pbcopy fallback for text only, and requires no permission. This adds substantial behavioral context beyond the annotations (readOnlyHint=false, destructiveHint=false). No contradiction exists between the description and annotations.

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?

Three concise sentences, front-loaded with the main action, followed by fallback behavior and overwrite side effect. Every sentence contributes meaningful information without redundancy.

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?

Covers purpose, implementation details, fallback behavior, overwrite side effect, and permissions. For a two-parameter tool with no output schema, this description is comprehensive and leaves no significant gaps.

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 schema already provides 100% parameter descriptions, but the description adds operational context: filePaths require the native helper and have no CLI fallback, while text has a fallback. This clarifies conditions beyond the schema's static descriptions, adding value.

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?

The description clearly states the tool replaces the system clipboard contents with text or file references. It specifies the verb 'Replace', identifies the resource (system clipboard), and distinguishes between text and file references, effectively differentiating from sibling clipboard_read.

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?

Provides clear context on when to use the tool (to set clipboard content) and important constraints: file references require the native helper, text falls back to pbcopy, and no permission is required. It doesn't explicitly name alternatives, but the writing vs reading distinction is implicit through the sibling clipboard_read.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sitharaj88/macctl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server