Skip to main content
Glama

cua_clipboard

Read UTF-8 text from or write UTF-8 text to the macOS or Windows system clipboard, enabling AI agents to exchange text with desktop apps without manual copy or paste.

Instructions

Read from or write UTF-8 text to the macOS or Windows system clipboard.

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": {
      "action": "<action>"
    },
    "name": "cua_clipboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses two real constraints: text is UTF-8 only (no images/files/binary) and the tool is limited to macOS and Windows. It does not mention what happens when the clipboard is empty or holds non-text data, whether reads require OS accessibility permissions, or any size limits.

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?

One sentence, front-loaded with the verb and resource, with the platform and encoding constraints packed in without filler. Nothing here is wasted.

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?

For a two-parameter tool with an enum and no output schema, the definition covers purpose, platform, and encoding adequately. The main gap is that on a read action it never says the clipboard contents come back as the result, which is the only way an agent learns what to expect from the return.

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 for two undocumented parameters. 'UTF-8 text' tells the agent the shape of the `text` parameter, but it never states that `text` is required for write and ignored on read, which is the single most important semantic detail an agent needs.

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 pair and resource: read or write UTF-8 text to the system clipboard. An agent knows exactly what the tool touches. No sibling in the catalog overlaps with clipboard access, so the lack of explicit differentiation costs little, but the definition does not call that out.

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 action enum (read/write) implies the two usage modes, and 'macOS or Windows system clipboard' implies the platform context, but there is no explicit statement of when to reach for this tool versus another (e.g., instead of typing text via cua_keyboard, or instead of reading via cua_element_action). Guidance is implied rather than stated.

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