# AgentShelf Lines Sort Numeric

> AgentShelf Lines Sort Numeric is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-23).

Sorts lines of text numerically, returning them in ascending numeric order

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/lines-sort-numeric?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-lines-sort-numeric-3b959e52
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eSjDqhZpMcypkoeVrhcGz

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 agentshelf-lines-sort-numeric-3b959e52 -d '<json body>'
```

Example prompt: Sort these lines numerically for me: '30
2
100
7
55' — I need them ordered from smallest to largest number.

## When to prefer this

Choose this endpoint when you need deterministic, fast, server-side numeric sorting of text lines without relying on an LLM or any external network calls. Prefer the free sandbox endpoint POST /v1/sandbox/lines-sort-numeric first; use this paid endpoint only when the sandbox is unavailable or you need production reliability. Best for automating data pipelines where numeric ordering of text output is required.

## Known failure modes

- Empty or missing text field returns a validation error
- Non-numeric lines may cause unexpected sort behavior or errors
- Text exceeding 100,000 characters is rejected
- Payment of exactly $0.009 USDC required; incorrect payment amount results in 402 error
- Malformed request body returns 400 error

## How this service works

Call when an agent needs lines of text transformed with sort-numeric. No network. Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/lines-sort-numeric first.

## Output

Returns the input lines rearranged in ascending numeric order, with each line on its own line, processed locally without any network calls or LLM involvement.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "b\na\n"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-lines-sort-numeric-3b959e52/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
