---
title: "Agency mode only"
method: POST
path: "/api/mcp/tools/agency_create_client_app"
tags: ["tools"]
---

# Agency mode only

`POST /api/mcp/tools/agency_create_client_app`

## Request

- Base URL: `https://finestructure.ai`
- URL: `https://finestructure.ai/api/mcp/tools/agency_create_client_app`
- Auth: HTTP bearer

Agency mode only. Create a new app owned by the agent, start generation, and create a claim link for the client. Ownership transfers only when the invited client logs in with the same email and accepts the claim link.

## Request body

- object
  - `client_email` string, required: Client email allowed to claim ownership
  - `client_full_name` string: Optional client display name
  - `name` string, required: Name for the app (1-100 chars)
  - `prompt` string, required: Detailed description of the app to build
  - `description` string: Optional short app description
  - `note` string: Optional internal client/project note
  - `keep_agent_collaborator` boolean: After claim, invite the agent back as an editor collaborator
  - `claim_expires_in_days` integer: Claim link lifetime, 1-90 days

## Response `200`

Tool executed successfully

- ToolResult
  - `ok` boolean, required
  - `tool` string, required
  - `result` object, required

## Other responses

- `400`: Invalid arguments for this tool
- `401`: Missing or invalid bearer token
- `402`: Not enough credits on the account
- `403`: Token scope does not permit this tool
- `404`: Unknown tool name
- `429`: Rate limit exceeded, retry after the indicated delay
- `500`: Internal error while executing the tool

---

[API](https://skmtc.dev/finestructure/apis/fine-structure-api.md) · [All operations](https://skmtc.dev/finestructure/apis/fine-structure-api/llms.txt) · [OpenAPI document](https://skmtc.dev/finestructure/apis/fine-structure-api/revisions/02c50ed5fd70?raw)
