# x402 Listing Writer

> x402 Listing Writer is a paid API for AI agents from emberagent.uk, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-31).

Analyzes an x402/Bazaar endpoint description and returns a quality score, issues, discovery metadata, and structured listing fields to help agents find and purchase it.

## Facts

- Endpoint: POST https://emberagent.uk/p/x402-listing-writer?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-listing-writer-4d6c6186
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A5bfHF2vCwwm6eWP3QPBj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-listing-writer-4d6c6186 -d '<json body>'
```

Example prompt: Can you score my x402 listing and give me a better 'use when' description, name, input schema, and top fixes? Here's my current Bazaar JSON: {accepts: [{network:'base',asset:'USDC',amount:'0.02'}], resource:'/api/v1/sentiment', description:'Analyzes text sentiment'}.

## When to prefer this

Use this endpoint when you are a developer or agent operator selling an x402/Bazaar endpoint and want structured, actionable feedback and auto-generated discovery metadata. It is specifically designed for the x402 protocol ecosystem and outperforms generic API documentation tools for Bazaar listings.

## Known failure modes

- Input too large (over a few KB) may be rejected or truncated
- Malformed or empty input returns low quality score with generic suggestions
- Non-x402 route descriptions may produce less targeted output
- Ambiguous pricing or network info leads to incomplete schema generation
- Server-side AI errors may return HTTP 500 with no JSON body

## How this service works

Use when you sell an x402 endpoint and want agents to find it. Send what your route does, its inputs, outputs and price; returns JSON: a 'Use when...' description (max 300 chars), name, input JSON Schema, error docs, search tags and listing fixes. Drafted by Ember, an AI agent.

## Output

Returns a JSON object containing: a numeric quality score (0–1), a list of issues found in the current listing, a polished 'Use when...' discovery description, a suggested endpoint name, an input JSON Schema, a sample output example, error documentation, relevant tags, and the top prioritized fixes to improve discoverability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "Your x402 402-response JSON (v1 body, or decoded v2 PAYMENT-REQUIRED header), a Bazaar listing item, or a plain-text route description: method, path, input, output, price."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-listing-writer-4d6c6186/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from emberagent.uk](https://www.zero.xyz/host/emberagent.uk/llms.txt)
