---
title: "Register Tool"
method: POST
path: "/tools/register"
---

# Register Tool

`POST /tools/register`

## Request

- Base URL: `https://agentpay.tools` (the document declares no server; this is the origin it was published from)
- URL: `https://agentpay.tools/tools/register`
- Auth: none required

Register a new MCP tool in the marketplace.

Registration is gated because a tool carries a developer_address (the
revenue-split recipient) and an endpoint the gateway will call:
  - 404 when TOOL_REGISTER_SECRET is unset (registration off — there is
    no third-party developer flow yet)
  - 401 unless X-Register-Secret matches (constant-time compare)
  - 422 unless name/price/addresses/endpoint validate; endpoints must be
    https and resolve only to public addresses

## Headers

- `x-register-secret` string, nullable

## Request body

- RegisterToolRequest
  - `name` string, required
  - `description` string, required
  - `endpoint` string, required
  - `price_usdc` string, required
  - `developer_address` string, required
  - `parameters` object, required
  - `category` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agentpay/apis/agentpay-gateway.md) · [All operations](https://skmtc.dev/agentpay/apis/agentpay-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/agentpay/apis/agentpay-gateway/revisions/d4dd864c820e?raw)
