Skip to main content
Glama

mac_paste

Pastes text into the focused app with Cmd+V while preserving and restoring the clipboard, verifying the field receives the text and preventing unintended clipboard insertion.

Instructions

Paste text with Cmd+V through the clipboard (⌘V goes out on the key that types V in the current keyboard layout; no such key: not_delivered, keyboard_layout), then put the user's clipboard back: every item and type is copied aside and restored within one call, only after the paste shows in the focused element (else after a 1 s hold) and only if nothing else wrote to the clipboard meanwhile — not while the app does not answer, so a late paste cannot insert the user's own clipboard; delivered_verified only when the focused field's value becomes exactly the text pasted over its selection; a password manager's concealed item is never copied — the clipboard is cleared after the paste instead. The pasted text is marked transient for clipboard managers. Pass app to refuse input unless that app is frontmost (focus guard). Refused when the clipboard holds Universal Clipboard content or more than 64 MB (force:true pastes anyway and leaves the pasted text on the clipboard). mac_type does not touch the 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": {
      "text": "<text>"
    },
    "name": "mac_paste"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
textYes
forceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.6
    • addedInput schema / properties / force
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / required
      Added value: +[
      +  "text"
      +]
  2. First observedv0.1.2

TDQS

A4/5.0
Behavior5/5

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

Goes far beyond the annotations: it discloses clipboard save/restore semantics, the 1 s hold fallback, the not-while-app-unresponsive guard, password-manager concealed items and the clear-instead-of-restore behavior, Universal Clipboard and 64 MB refusals, forced-mode side effects, and transient marking. The write/read-write reality is consistent with readOnlyHint=false, destructiveHint=false, and idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every clause carries real information, but the definition is delivered as one sprawling, em-dash-and-parenthetical-laden block with no sentence-level separation between the core action, the restore contract, and the failure modes. Restructuring into short ordered sentences would preserve the content and greatly improve scanability.

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 clipboard-mutating paste tool with no output schema and three parameters, the description covers the outcome verification signal (delivered_verified), the failure signal (not_delivered, keyboard_layout), timing, and side effects. An agent has enough to call it correctly and predict its consequences.

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?

Schema description coverage is 0%, so the description must carry parameter meaning, and it explains two of three: app as a frontmost focus guard, and force:true as override that leaves pasted text on the clipboard. text is only implied as the payload, and there is no note on additionalProperties, but the ambiguous parameters are well covered.

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 opening clause names a specific verb and mechanism: "Paste text with Cmd+V through the clipboard," and the closing sentence distinguishes it from mac_type ("mac_type does not touch the clipboard"). The core action is unambiguous, though it is buried under an unusually dense paragraph of edge-case detail.

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?

Usage context is implied rather than stated: the mac_type contrast suggests choosing this tool when clipboard-mediated paste is required, and the app/focus-guard parameter hints at when to constrain focus. There is no explicit "use this when / not when" routing or a named conditional that selects it over mac_type or mac_paste alternatives.

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