{"uid":"cap_rsHsRfII09haYuqEsHhsZ","slug":"pennyrail-text-truncate-shorten-to-characters-6a2a3559","name":"PennyRail Text Truncate / Shorten to Characters","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.truncate--shorten-to-characters","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bAkN6tV9kHhERBLrXJ2pc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Truncates or shortens a text string to a specified character length","exampleAgentPrompt":"Can you shorten this product description to 150 characters: 'Our handcrafted artisan coffee blends are sourced from the finest small-batch farms across Ethiopia, Colombia, and Guatemala, roasted fresh weekly to bring out complex, vibrant flavors'?","exampleUseCases":[{"title":"Truncate product description for card UI","prompt":"This product description is too long for our card layout — can you trim it to 80 characters: 'Premium noise-cancelling wireless headphones with 30-hour battery life and foldable design for travel'?"},{"title":"Shorten article excerpt for email preview","prompt":"I need a short preview snippet for our newsletter — please shorten this article intro to 120 characters: 'Artificial intelligence is reshaping the way businesses operate, from customer service automation to predictive analytics and beyond.'"},{"title":"Clip username or bio for profile display","prompt":"Our profile page only shows 60 characters for the bio — can you cut this down: 'Passionate software engineer, open-source contributor, coffee lover, and occasional blogger about distributed systems'?"}],"resultDescription":"Returns the input text truncated to the specified character count, likely with the shortened string as the primary output field, possibly including metadata such as original length and whether truncation occurred.","failureModes":["Missing or empty input text returns a validation error","Character limit not provided or non-numeric causes a bad request","Input object schema mismatch returns a 400 error","Payment not included or insufficient results in a 402 Payment Required response","Very large input strings may cause timeout or oversized payload errors"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, pay-per-call text truncation operation without setting up your own string-processing logic. It is well-suited for agents that occasionally need to clip text to fit UI constraints, character limits, or storage schemas, and want a lightweight, stateless microservice rather than a full NLP pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:55.616Z","isFirstParty":false}