{"uid":"cap_FyU14JqCRxETYcRSL3X12","slug":"pennyrail-text-truncate-fbfc78bf","name":"PennyRail Text Truncate","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.truncate--truncate-text","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_GISucuO0VW5u_s8Q7ycnX","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 a text string to a specified length or limit via a paid micro-service endpoint","exampleAgentPrompt":"Truncate this product description to 150 characters: 'Our handcrafted leather wallet is made from full-grain Italian leather, featuring 8 card slots, a hidden cash pocket, and RFID blocking technology for everyday carry.'","exampleUseCases":[{"title":"Shorten UI display text","prompt":"I have a long article headline that needs to fit in a card component — can you truncate it to 60 characters? The headline is: 'Global leaders convene in Geneva to address unprecedented climate policy reform amid record-breaking temperatures worldwide.'"},{"title":"Generate preview snippets","prompt":"Trim this blog post intro to 200 characters so I can use it as a meta description preview: 'In today's fast-paced digital landscape, businesses must adapt rapidly to shifting consumer demands, emerging technologies, and evolving regulatory environments that reshape how we work.'"},{"title":"Clip user-generated content","prompt":"A user just submitted a bio that's way too long — can you truncate it to 100 characters max? Here it is: 'I am a passionate software engineer, avid coffee enthusiast, amateur photographer, and weekend hiker based in Portland, Oregon, always looking for new adventures.'"}],"resultDescription":"Returns an object containing the truncated version of the input text, cut to the requested length or word/character limit.","failureModes":["Missing or malformed 'input' object returns a validation error","No truncation parameters specified may result in no-op or error","Payment failure or insufficient USDC balance causes 402 response","Extremely large input strings may time out or be rejected","Ambiguous truncation criteria (neither character nor word limit) may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable, paid micro-service for text truncation without building custom string-handling logic. Particularly useful in agentic pipelines where text must be clipped to fit UI components, API field limits, or preview snippets, and you want a stateless, idempotent operation billed at $0.001 USDC per call via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:55.445Z","isFirstParty":false}