Skip to main content
Glama
leynier

MCP System Bridge

by leynier

copy_to_clipboard

Read-only

Copies provided text to the system clipboard, enabling quick data transfer for AI assistants.

Instructions

Copy text to the clipboard.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes

Implementation Reference

  • The copy_to_clipboard tool handler function. Uses pyperclip.copy() to copy text to the system clipboard. Decorated with @mcp.tool which handles both registration and annotations.
    @mcp.tool(annotations=ToolAnnotations(readOnlyHint=True))
    def copy_to_clipboard(text: str) -> str:
        """
        Copy text to the clipboard.
        """
        try:
            pyperclip.copy(text)
            return "Text copied to clipboard successfully."
        except Exception as e:
            return f"Error copying text to clipboard: {e}"
  • src/server.py:41-41 (registration)
    The tool is registered via the @mcp.tool decorator (line 41) with ToolAnnotations(readOnlyHint=True). FastMCP handles registration automatically via the decorator pattern.
    @mcp.tool(annotations=ToolAnnotations(readOnlyHint=True))
  • The pyperclip library is imported to handle clipboard operations. pyperclip.copy() is the core utility that performs the actual clipboard write.
    import pyperclip
    from fastmcp import FastMCP
Behavior1/5

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

The description states a write operation ('copy to clipboard'), but annotations set readOnlyHint=true, which is a clear contradiction. No additional behavioral traits are disclosed beyond this inconsistency.

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?

The description is very short and front-loaded, but the single sentence provides minimal value. It is concise but lacks substance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple clipboard tool, the description omits important context such as that it replaces current clipboard content or scope limitations (e.g., system vs. browser). Incomplete given the lack of output schema and parameter description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain the 'text' parameter beyond its name and type from the schema. No guidance on text format, limitations, or effect.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Copy text to the clipboard.' essentially restates the tool name 'copy_to_clipboard' without adding new information. It is a tautology and does not differentiate from siblings, though siblings are unrelated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives or any prerequisites. The description lacks any context about appropriate usage scenarios.

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/leynier/mcp-sys-bridge'

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