Skip to main content
Glama

hedwigai

Mirror a workbook into another account

mirror_workbook
Destructive

Puts a read-only copy of workbook in ANOTHER hedwigai account, named by its id (account, e.g. megacabs.com), and keeps it current: each version the owner writes arrives in the copy as its next version. The copy is there at once — nobody in that account is asked — filed under mirror/ at the folder path the workbook has here. A workbook has one owner, the account that hosts it, and only the owner changes it; it mirrors into one account at a time. The copy is an askroom: update_workbook on it answers a question of the document and changes nothing, and write_workbook, commit_workbook and restore_version are refused there. Only the document travels: its tabs and the spreadsheet or Word file it is made of. Sources, attachments, notes and run history stay with the owner.

With account, mirrors into it. Confirm the account id with the user first: the whole document becomes readable there. Without account, action:

  • show (the default): whether workbook is mirrored, with whom, whether this account owns it (you_own) or reads it, and last_error.

  • sync: bring the copy up to the owner's now, from either side.

  • stop: end the mirror, from either side. Nothing is deleted; the copy stays, as its account's own workbook.

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": {
      "workbook": "<workbook>"
    },
    "name": "mirror_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoWhat to do when no `account` is given. Default show.
accountNoThe id of the account that is to read a copy, e.g. megacabs.com.
workbookYesThe workbook id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: discloses the privacy consequence (the whole document becomes readable in the other account), the permission model (owner writes, copy is an askroom where write_workbook/commit_workbook/restore_version are refused and update_workbook only answers questions), and what does not travel (sources, attachments, notes, run history). The `stop` note that nothing is deleted is scoped to that action and does not contradict destructiveHint=true, which is consistent with the cross-account exposure the call creates.

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?

Long but front-loaded: the mirror semantics and the privacy warning come before the action enumeration. Nearly every sentence carries operative detail; the owner/one-mirror sentence is the only mild restatement.

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 cross-account, permission-changing tool with no output schema, it covers the readable results of `show` (`you_own`, `last_error`, who it is mirrored with) and the effects of `sync`/`stop`. It is silent on failure modes for the create path and on what `sync` or `stop` return, which keeps it short of fully complete.

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 the baseline is 3, but the description adds the crucial precedence rule the schema cannot express: `account` means mirror, its absence means `action` applies, including which value is the default. It also explains why only one account at a time is possible (single owner), giving the `account` parameter meaning beyond its one-line schema text.

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?

States a specific verb+resource (a read-only cross-account copy of `workbook`) and distinguishes it in substance from other sharing tools: the copy is live versioned, filed under `mirror/`, and read-only. An agent knows exactly what the tool creates without opening the schema.

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?

Explicit mode logic: passing `account` creates the mirror, omitting it selects `show` (default), `sync`, or `stop`, each explained. It adds a concrete prerequisite (confirm the account id with the user first). It does not name a sibling that performs a plain share instead, so the routing to non-mirror alternatives is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.