list_api
Import an API spec (OpenAPI, Swagger, Postman) to create a draft bolthub listing with endpoints and default pricing. Re-importing shows a diff instead of duplicating.
Instructions
Turn an API spec into a DRAFT bolthub listing: parses OpenAPI/Swagger or Postman (JSON or YAML), creates the endpoints as unlisted drafts (never visible in the directory), and applies a default per-request price you can refine. Publishing is a separate explicit step — use publish_listing. Requires BOLTHUB_ACCOUNT_TOKEN (your bolthub account, dashboard → MCP setup). Re-importing a spec for an origin that already has endpoints shows a dry-run diff instead of duplicating anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_url | No | URL of the spec. Fetched server-side through bolthub's SSRF-safe proxy — never directly. | |
| tenant_id | No | Workspace id to list into. Omit when the account has exactly one workspace; with several, the tool lists them so the user can pick. | |
| apply_sync | No | Re-import only: after reviewing the dry-run diff from a previous call, set true to apply it. Sync updates spec-owned fields only and never touches pricing. | |
| origin_url | No | Base URL of the upstream API (e.g. https://api.example.com). Required when the spec declares no servers/base URL; overrides it when it does. | |
| price_sats | No | Per-request price in sats applied to the draft (default 5, minimum 1). Per-endpoint refinement happens in the dashboard before publishing. | |
| spec_content | No | Inline spec instead of a URL: OpenAPI/Swagger/Postman JSON or YAML, or a plain JSON array of rows like [{"method":"GET","path":"/v1/x","title":"...","description":"..."}] for manual assembly from a conversation. |