# Agentshelf Newline No-Final Normalizer

> Agentshelf Newline No-Final Normalizer is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Normalizes text by removing any trailing final newline character(s), returning text with no trailing newline

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/newline-no-final?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-newline-no-final-normalizer-c9ad00d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7CuMGNz0x0VmkX6MVSvhr

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-newline-no-final-normalizer-c9ad00d3 -d '<json body>'
```

Example prompt: Can you clean up this text by removing any trailing newlines from the end? Here's the text: 'Hello world
This is my content
'

## When to prefer this

Use this endpoint when you need a deterministic, no-LLM, no-network operation to strip trailing newlines from text strings up to 100KB. Prefer the free sandbox endpoint POST /v1/sandbox/newline-no-final for testing or when you want to avoid the $0.002 USDC cost. Choose this paid endpoint for production pipelines where the sandbox is unavailable or rate-limited.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Text exceeding 100,000 characters is rejected
- Payment of $0.002 USDC not provided or insufficient results in 402 Payment Required
- Malformed request body returns 400 Bad Request

## How this service works

Call when an agent needs newlines normalized to no-final. No network and no LLM. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/newline-no-final first.

## Output

Returns the input text with any trailing newline characters removed from the end, producing a clean string with no final newline. The response is the normalized text string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "Hello, World!"
   ],
   "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-newline-no-final-normalizer-c9ad00d3/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)
