# Sort Lines Text Tool (x402)

> Sort Lines Text Tool (x402) is a paid API for AI agents from gpt55.558686.xyz, paid per call via x402, $0.0001/call, status unknown (last checked 2026-09-13).

Sorts lines of text alphabetically or numerically, in ascending or descending order, via a pay-per-call x402 USDC micro-payment API.

## Facts

- Endpoint: GET https://gpt55.558686.xyz/v1/tools/sort-lines
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sort-lines-text-tool-x402-d1d765f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8bVFbzJIslWa6S379KxRz

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 sort-lines-text-tool-x402-d1d765f7
```

Example prompt: Sort these lines alphabetically in ascending order: 'Banana
Apple
Cherry
Date' — pay per call with USDC.

## When to prefer this

Use this endpoint when you need a simple, cheap, stateless line-sorting operation paid per-call with USDC on Base via x402, without requiring a subscription or API key management. Best for agents already integrated with x402 micro-payment flows needing a quick text sorting utility.

## Known failure modes

- Missing required 'text' query parameter returns validation error
- Text exceeding 50,000 characters rejected
- Payment failure or insufficient USDC balance causes 402 response
- Invalid boolean values for 'numeric' or 'descending' params cause bad request
- Service unavailability on third-party gateway host

## How this service works

Sort newline-separated text alphabetically or numerically without calling an upstream model. Pay up to $0.001 per request with x402 USDC on Base. Public paid calls are limited to 1500 input characters and 128 output tokens.

## Output

Returns a JSON object with ok (boolean), tool name ('sortLines'), and the sorted text output, plus a fetchedAt timestamp. Cost is $0.0001 USDC per call via x402 on Base.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": true
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 50000,
       "minLength": 1
      },
      "numeric": {
       "type": "boolean"
      },
      "descending": {
       "type": "boolean"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sort-lines-text-tool-x402-d1d765f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt55.558686.xyz](https://www.zero.xyz/host/gpt55.558686.xyz/llms.txt)
