{"uid":"cap_p0egT950tGnhu_meiuWob","slug":"agentshelf-lines-sort-descending-d152e432","name":"AgentShelf Lines Sort Descending","description":"Call when an agent needs lines of text transformed with sort-desc. No network. Send JSON {\"text\":\"b\\na\\n\"}. Exact $0.008 USDC on Base. Try unpaid POST /v1/sandbox/lines-sort-desc first.","url":"https://agentshelf.syntexa.ch/v1/lines-sort-desc?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-kheIqFhWjoYfwrC6I7cN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sorts lines of text in descending (Z-to-A / largest-to-smallest) order and returns the result","exampleAgentPrompt":"Sort these lines of text in descending (Z-to-A) order: 'banana\napple\ncherry\ndate'","exampleUseCases":[{"title":"Reverse-alphabetical glossary ordering","prompt":"I have a list of technical terms, one per line, and I need them sorted from Z to A. Here they are: 'Zygote\nXenon\nApex\nBeta\nMorpheme\nDelta'. Can you sort them descending for me?"},{"title":"High-to-low numeric list ranking","prompt":"Sort these numeric strings from highest to lowest for me — they're each on their own line: '100\n003\n045\n200\n012\n999'"},{"title":"Descending log entry triage","prompt":"I've got a bunch of error codes from a log file, one per line, and I want them sorted in descending order so the highest severity codes appear first. Here they are: 'ERR_500\nERR_200\nERR_404\nERR_503\nERR_301'"}],"resultDescription":"Returns the input text with all lines reordered in descending (reverse lexicographic / Z-to-A) order, preserving line content but sorting their sequence from largest to smallest.","failureModes":["Empty or missing 'text' field returns a validation error","Text exceeding 100,000 characters is rejected","Payment failure or insufficient USDC balance prevents processing","Network errors or service unavailability return 5xx responses"],"whenToPreferThis":"Use this endpoint when you need server-side descending sort of text lines without implementing sorting logic locally, especially in agent workflows where a quick paid microservice call is acceptable. Prefer the free sandbox endpoint POST /v1/sandbox/lines-sort-desc first if available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:54:44.064Z","isFirstParty":false,"canonicalSlug":"agentshelf-lines-sort-descending-d152e432"}