> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tattoo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# UCP tool input schemas (machine)

> Input JSON Schemas for Tattoo UCP MCP/REST tools.

```json theme={"dark"}
{
  "source": {
    "repository": "https://git.cafe/1gmedia/tattoo-protocol",
    "commit": "01662e5123a9b8c7f75b8fee3c1997c4e77b7c69",
    "note": "Dereferenced legacy business argument schemas; Wave 2 changes discovery naming, not these inputs."
  },
  "tools": {
    "search_directory": {
      "type": "object",
      "properties": {
        "directory": {
          "type": "object",
          "properties": {
            "strict": {
              "type": "boolean",
              "default": false,
              "description": "Disable unverified fallback candidates."
            },
            "summary": {
              "type": "boolean",
              "default": true
            },
            "fields": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            },
            "limit": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "include_expired": {
              "type": "boolean",
              "default": false
            },
            "include_rich": {
              "type": "boolean",
              "default": false
            },
            "view": {
              "type": "string",
              "enum": [
                "summary",
                "full"
              ],
              "default": "summary",
              "description": "Search returns compact cards by default. Use full only when needed; prefer get_artist/get_studio or paginated get_portfolio for details."
            },
            "query": {
              "type": "string",
              "description": "Free text: style, subject, artist or studio name.",
              "examples": [
                "fine line botanical forearm"
              ]
            },
            "like": {
              "type": "object",
              "description": "One similarity reference.",
              "properties": {
                "id": {
                  "type": "string"
                },
                "image": {
                  "type": "object",
                  "properties": {
                    "content_type": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string",
                      "contentEncoding": "base64"
                    }
                  }
                }
              }
            },
            "types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "artist",
                  "studio",
                  "flash"
                ]
              },
              "default": [
                "artist"
              ]
            },
            "context": {
              "type": "object",
              "description": "Soft: ranks, never excludes.",
              "properties": {
                "address_country": {
                  "type": "string"
                },
                "address_region": {
                  "type": "string"
                },
                "postal_code": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                }
              }
            },
            "filters": {
              "type": "object",
              "description": "Hard constraints. Results that cannot be shown to satisfy them are excluded, and messages[] says so.",
              "properties": {
                "near": {
                  "type": "object",
                  "properties": {
                    "lat": {
                      "type": "number"
                    },
                    "lng": {
                      "type": "number"
                    },
                    "postal_code": {
                      "type": "string"
                    },
                    "locality": {
                      "type": "string"
                    },
                    "region": {
                      "type": "string"
                    },
                    "radius_km": {
                      "type": "number"
                    }
                  },
                  "dependentRequired": {
                    "lat": [
                      "lng",
                      "radius_km"
                    ],
                    "lng": [
                      "lat",
                      "radius_km"
                    ]
                  }
                },
                "bounds": {
                  "type": "object",
                  "required": [
                    "west",
                    "south",
                    "east",
                    "north"
                  ],
                  "properties": {
                    "west": {
                      "type": "number"
                    },
                    "south": {
                      "type": "number"
                    },
                    "east": {
                      "type": "number"
                    },
                    "north": {
                      "type": "number"
                    }
                  }
                },
                "styles": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "OR within the list. Accepts labels (fine line), aliases (fineline), and ids (style.fine_line). Unknown values return unknown_style messages with suggested ids."
                },
                "subjects": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "placements": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "offer_kinds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "price": {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "integer"
                    },
                    "max": {
                      "type": "integer"
                    },
                    "basis": {
                      "type": "string"
                    },
                    "quote_ok": {
                      "type": "boolean"
                    }
                  }
                },
                "booking": {
                  "type": "object",
                  "properties": {
                    "books_open": {
                      "type": "boolean",
                      "description": "true requires explicitly open books; false requires explicitly closed books. Unknown, missing and waitlist statuses match neither."
                    },
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "transactable": {
                      "type": "boolean"
                    }
                  }
                },
                "available_between": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "string",
                      "format": "date"
                    },
                    "to": {
                      "type": "string",
                      "format": "date"
                    }
                  }
                },
                "min_trust": {
                  "type": "string",
                  "enum": [
                    "raw",
                    "curated",
                    "verified"
                  ],
                  "default": "raw"
                }
              }
            },
            "sort": {
              "type": "string",
              "enum": [
                "relevance",
                "name",
                "distance"
              ],
              "default": "relevance"
            },
            "pagination": {
              "type": "object",
              "properties": {
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 50,
                  "default": 10
                },
                "cursor": {
                  "type": "string"
                }
              }
            }
          }
        },
        "meta": {
          "type": "object",
          "description": "Optional UCP transport metadata, including ucp-agent.profile. Accepted without profile negotiation in this version.",
          "additionalProperties": true
        }
      },
      "required": [
        "directory"
      ]
    },
    "lookup_directory": {
      "type": "object",
      "properties": {
        "directory": {
          "type": "object",
          "required": [
            "ids"
          ],
          "properties": {
            "strict": {
              "type": "boolean",
              "default": false
            },
            "summary": {
              "type": "boolean",
              "default": true
            },
            "fields": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            },
            "limit": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "include_expired": {
              "type": "boolean",
              "default": false
            },
            "include_rich": {
              "type": "boolean",
              "default": false
            },
            "view": {
              "type": "string",
              "enum": [
                "summary",
                "full"
              ],
              "default": "summary",
              "description": "Compact cards by default; full opts into complete records."
            },
            "ids": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1,
              "maxItems": 50
            }
          }
        },
        "meta": {
          "type": "object",
          "description": "Optional UCP transport metadata, including ucp-agent.profile. Accepted without profile negotiation in this version.",
          "additionalProperties": true
        },
        "summary": {
          "type": "boolean",
          "default": true
        },
        "fields": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          ]
        },
        "limit": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "include_expired": {
          "type": "boolean",
          "default": false
        },
        "include_rich": {
          "type": "boolean",
          "default": false
        },
        "strict": {
          "type": "boolean",
          "default": false
        }
      },
      "required": [
        "directory"
      ]
    },
    "get_portfolio": {
      "type": "object",
      "properties": {
        "artist_id": {
          "type": "string",
          "minLength": 1
        },
        "cursor": {
          "type": "string",
          "minLength": 1
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 24
        },
        "meta": {
          "type": "object",
          "description": "Optional UCP transport metadata, including ucp-agent.profile. Accepted without profile negotiation in this version.",
          "additionalProperties": true
        }
      },
      "required": [
        "artist_id"
      ],
      "additionalProperties": false
    },
    "get_booking_options": {
      "type": "object",
      "properties": {
        "artist_id": {
          "type": "string",
          "description": "Opaque id. Copy exactly."
        },
        "studio_id": {
          "type": "string",
          "description": "Opaque id. Copy exactly."
        },
        "meta": {
          "type": "object",
          "description": "Optional UCP transport metadata, including ucp-agent.profile. Accepted without profile negotiation in this version.",
          "additionalProperties": true
        }
      },
      "required": []
    },
    "create_booking_request": {
      "type": "object",
      "properties": {
        "client_token": {
          "type": "string",
          "description": "Secret returned on creation. Required for follow-ups; REST may use Authorization: Bearer instead."
        },
        "booking": {
          "name": "dev.tattoo.booking.request_input",
          "title": "Tattoo Booking Request Input",
          "type": "object",
          "required": [
            "studio_id",
            "request"
          ],
          "properties": {
            "studio_id": {
              "type": "string"
            },
            "artist_id": {
              "type": "string"
            },
            "offer_id": {
              "type": "string"
            },
            "request": {
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "reference_images": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "content_type": {
                        "type": "string"
                      },
                      "data": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string",
                        "enum": [
                          "reference",
                          "placement"
                        ]
                      }
                    }
                  }
                },
                "placement": {
                  "type": "string"
                },
                "size_cm": {
                  "type": "object",
                  "properties": {
                    "width": {
                      "type": "number"
                    },
                    "height": {
                      "type": "number"
                    }
                  }
                },
                "color": {
                  "type": "string",
                  "enum": [
                    "black_and_grey",
                    "color",
                    "either"
                  ]
                },
                "cover_up": {
                  "type": "boolean"
                },
                "budget": {
                  "type": "object",
                  "properties": {
                    "max": {
                      "type": "integer"
                    },
                    "currency": {
                      "type": "string"
                    }
                  }
                },
                "preferred_dates": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "format": "date"
                      },
                      "to": {
                        "type": "string",
                        "format": "date"
                      }
                    }
                  }
                }
              }
            },
            "client": {
              "type": "object",
              "description": "Session-scoped. Send identity fields only once the business requests them via messages[]. Never cross-studio tracking ids.",
              "properties": {
                "id": {
                  "type": "string",
                  "examples": [
                    "cli_01"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "phone": {
                  "type": "string"
                },
                "age_confirmed": {
                  "type": "boolean"
                }
              }
            }
          },
          "additionalProperties": false
        },
        "idempotency_key": {
          "type": "string"
        },
        "meta": {
          "type": "object",
          "description": "Optional UCP transport metadata, including ucp-agent.profile. Accepted without profile negotiation in this version.",
          "additionalProperties": true
        }
      },
      "required": [
        "booking",
        "idempotency_key"
      ]
    },
    "create_checkout": {
      "type": "object",
      "oneOf": [
        {
          "required": [
            "artist_id",
            "request",
            "idempotency_key"
          ],
          "not": {
            "anyOf": [
              {
                "required": [
                  "studio_id"
                ]
              },
              {
                "required": [
                  "supply"
                ]
              }
            ]
          }
        },
        {
          "required": [
            "studio_id",
            "request",
            "idempotency_key"
          ],
          "not": {
            "anyOf": [
              {
                "required": [
                  "artist_id"
                ]
              },
              {
                "required": [
                  "supply"
                ]
              }
            ]
          }
        },
        {
          "required": [
            "supply"
          ],
          "not": {
            "anyOf": [
              {
                "required": [
                  "artist_id"
                ]
              },
              {
                "required": [
                  "studio_id"
                ]
              },
              {
                "required": [
                  "offer_id"
                ]
              },
              {
                "required": [
                  "route"
                ]
              },
              {
                "required": [
                  "request"
                ]
              },
              {
                "required": [
                  "client"
                ]
              }
            ]
          }
        }
      ],
      "properties": {
        "meta": {
          "type": "object",
          "description": "Optional UCP transport metadata, including ucp-agent.profile. Accepted without profile negotiation in this version.",
          "additionalProperties": true
        },
        "client_token": {
          "type": "string",
          "description": "Required for an idempotent replay of an existing checkout."
        },
        "supply": {
          "type": "object",
          "required": [
            "variant_id",
            "quantity"
          ],
          "additionalProperties": false,
          "properties": {
            "variant_id": {
              "type": "string",
              "minLength": 1
            },
            "quantity": {
              "type": "integer",
              "minimum": 1
            },
            "seller_domain": {
              "type": "string",
              "pattern": "^[A-Za-z0-9.-]+$"
            }
          }
        },
        "artist_id": {
          "type": "string",
          "minLength": 1
        },
        "studio_id": {
          "type": "string",
          "minLength": 1
        },
        "offer_id": {
          "type": "string",
          "minLength": 1
        },
        "route": {
          "enum": [
            "native",
            "deposit_link",
            "scheduler_link",
            "request_form",
            "message",
            "walk_in"
          ]
        },
        "request": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string"
            },
            "reference_images": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "content_type": {
                    "type": "string"
                  },
                  "data": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "reference",
                      "placement"
                    ]
                  }
                }
              }
            },
            "placement": {
              "type": "string"
            },
            "size_cm": {
              "type": "object",
              "properties": {
                "width": {
                  "type": "number"
                },
                "height": {
                  "type": "number"
                }
              }
            },
            "color": {
              "type": "string",
              "enum": [
                "black_and_grey",
                "color",
                "either"
              ]
            },
            "cover_up": {
              "type": "boolean"
            },
            "budget": {
              "type": "object",
              "properties": {
                "max": {
                  "type": "integer"
                },
                "currency": {
                  "type": "string"
                }
              }
            },
            "preferred_dates": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date"
                  },
                  "to": {
                    "type": "string",
                    "format": "date"
                  }
                }
              }
            }
          }
        },
        "client": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1
            },
            "email": {
              "type": "string",
              "format": "email"
            },
            "phone": {
              "type": "string",
              "minLength": 1
            },
            "age_confirmed": {
              "type": "boolean"
            },
            "approved_fields": {
              "type": "array",
              "items": {
                "enum": [
                  "name",
                  "email",
                  "phone",
                  "appointmentType",
                  "a1"
                ]
              },
              "uniqueItems": true
            }
          },
          "additionalProperties": false
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.