Skip to main content
Glama

Copy an app

fork_app

Creates a new app in the account from an app the caller can open (their own or someone else's). It starts empty unless withData copies the data of one of the caller's own copies (chosen with instanceId when there are several), without exposing its contents. Other people's data is never copied. Returns the new app and openUrl; the new app starts private.

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": {
      "appId": "<appId>",
      "name": "<name>"
    },
    "name": "fork_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the new app.
appIdYesThe short id of the app to copy.
withDataNotrue copies the data of one of the caller's copies of the original app. Default false: the new app starts empty.
instanceIdNoThe full docId of a copy (a data document of the app), as returned by list_instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the initial state (empty, private), the hard privacy rule (other people's data is never copied, contents not exposed), the source-app permission requirement, and the return payload (new app plus openUrl). Annotations only cover readOnly/destructive/openWorld, so this is substantive added context.

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?

Four dense sentences, front-loaded with the purpose, each adding a distinct fact (source scope, data-copy rule, privacy, return). The parenthetical about instanceId makes the third sentence slightly convoluted but nothing is wasted.

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?

With no output schema, the description carries the return-value burden and does so (new app and openUrl), plus it covers permissions, default behavior, and privacy constraints. Nothing an agent needs to invoke this correctly appears to be missing.

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; the description earns above that by explaining the relationship between withData and instanceId (instanceId selects among the caller's several copies) and by clarifying that copied data is not exposed, which the schema does not state.

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 and resource: creates a new app in the account by copying an existing app the caller can open. It distinguishes copying from scratch creation implicitly ('from an app the caller can open') but never names the sibling create_app, so the agent must infer the fork-vs-create boundary.

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 implied by the copy semantics and the permission scoping ('their own or someone else's'), but there is no explicit when-to-use or when-not-to-use guidance, and no pointer to create_app for building an app from scratch or to list_instances beyond the schema's mention.

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.

Resources