Skip to main content
Glama

CodePress Sites

Claim guest site into account

claim_guest_site
Idempotent

Moves a published guest site into the signed-in CodePress account as an App, at the same public address. It lands in organization (the slug or id of a workspace the account belongs to) when given; otherwise in this sign-in's default workspace, or the account's primary workspace, and only an account with no workspace gets a new Personal workspace. Authorized by the site's private manage capability; the edit capability is not accepted. expected_generation is the site's current generation. Claiming is free and the claimed site has no expiry. A repeated operation_id returns the same result; repeating it with a different organization is refused. Afterwards guest capabilities no longer change the site and the account's normal App permissions apply; the owner can move it later with App Settings → Transfer app. Returns the App id and name (from the page title), the organization slug and name, the App slug, the App's dashboard URL and the public URL.

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": {
      "guest_id": "<guest_id>",
      "manage_capability": "<manage_capability>",
      "operation_id": "<operation_id>",
      "expected_generation": "<expected_generation>"
    },
    "name": "claim_guest_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
guest_idYes
operation_idYes
organizationNoWorkspace slug or id to claim into; one the account belongs to. Omit for the default workspace.
manage_capabilityYes
expected_generationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the operation is free with no expiry, repeated operation_id returns the same result while a repeat with a different organization is refused, expected_generation must be the site's current generation, and after claiming guest capabilities no longer mutate the site. It also notes the move is reversible via App Settings → Transfer app, consistent with destructiveHint=false.

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 core action, then workspace resolution, authorization, idempotency, and return values in a logical order. It is a dense run-on paragraph with many clauses that would be easier to scan if split into a short list, but no sentence is filler.

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 mutation tool with no output schema, it covers authorization, generation precondition, idempotency/retry behavior, workspace defaults, and even the shape of the returned fields (App id, name, organization, slug, dashboard and public URLs). An agent has everything needed to invoke and interpret it.

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?

With only 20% schema description coverage, the description carries the load: it explains organization's fallback semantics, manage_capability's authorization role (manage accepted, edit rejected), operation_id's idempotency contract, and expected_generation's meaning. Only guest_id is left implicit, so this is strong but not exhaustive.

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 and resource: 'Moves a published guest site into the signed-in CodePress account as an App, at the same public address.' This distinguishes the claim operation from sibling creation/publish tools (create_guest_site, publish_guest_site) by naming the transformation outcome (guest site becomes an App).

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?

Gives clear preconditions (authorized by the site's private manage capability; the edit capability is not accepted) and describes the workspace-resolution fallback chain for when organization is omitted. It does not explicitly name an alternative sibling tool or say when NOT to claim, so it falls just short of full routing guidance.

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.