Skip to main content
Glama

Clipboard

clipboard

Reads and sets text in the browser’s tab-shared paste buffer without touching the system paste area; returns text, line breaks, length, and HTML presence, and can stage text for Ctrl+V.

Instructions

Reads the browser's own clipboard, shared by its tabs (the machine's clipboard is never touched): the text, with line breaks shown as \n (the browser stores CRLF on Windows for its pastes and a page's copy), its length, and whether HTML is there. With set, first puts that text there without pasting; Ctrl+V then pastes 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": "clipboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
setNoText to put on the clipboard first.
htmlNoAlso show the HTML, up to 20,000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does real work: it declares the machine clipboard is never touched (a meaningful safety boundary), that the value is shared across tabs, and that line breaks are normalized to \n with CRLF on Windows as the underlying reason. It omits edge behavior — empty clipboard, permission failures, or what happens if `set` is called with `html`.

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

Conciseness4/5

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

Front-loaded with the primary read purpose, then the mutation mode. The CRLF parenthetical is slightly heavy but earns its place by explaining the normalization an agent will observe in returned text. No filler sentences.

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 2-optional-param tool with no output schema and no annotations, the definition covers the return contents, the write-then-paste workflow, and the safety boundary. What remains thin are failure modes and the interaction between `html` and `set` in a single call.

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 coverage is 100%, so baseline would be 3, but the description adds genuine meaning beyond the schema: `set` writes without pasting and requires a subsequent Ctrl+V to take effect, which is not evident from 'Text to put on the clipboard first.' The `html` flag's read-side meaning ('whether HTML is there') is partly covered by the schema's own 20,000-character note.

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+resource: reads the browser's own clipboard, scoped to tabs, and lists what comes back (text, length, HTML presence). The second sentence adds the write mode via `set`. It implies a boundary with the `paste` sibling ('without pasting; Ctrl+V then pastes it') but never names that sibling, so differentiation is inferred rather than stated.

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 is only implied: read by default, write when `set` is supplied, and the human then presses Ctrl+V. There is no explicit when-to-use versus the `paste` tool, nor any stated precondition such as whether a user gesture or permission is needed before the clipboard can be read.

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