{"uid":"cap_vp3SrO5xF048ZFyYXqpsG","slug":"pennyrail-character-count-string-length-b3b33bfc","name":"PennyRail Character Count / String Length","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.char-count--string-length","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"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_E-C_n0osuKcVwvKK1MIEW","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":"Counts the number of characters in a given string and returns its length","exampleAgentPrompt":"How many characters are in this string: 'The quick brown fox jumps over the lazy dog'?","exampleUseCases":[{"title":"Validate tweet length before posting","prompt":"Count the characters in this draft tweet so I know if it's under the 280-character limit: 'Just launched our new product — check it out at example.com! We think you'll love it. #launch #startup'"},{"title":"Check bio field character limit","prompt":"How many characters is this bio text? 'Passionate software engineer who loves building things that matter. Coffee enthusiast. Dog dad. Based in Austin, TX.' I need to make sure it fits a 150-character limit."},{"title":"Measure API response string length","prompt":"Tell me the exact character count of this string I got from an API response: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0'"}],"resultDescription":"Returns a JSON object containing the character count (string length) of the provided input string, indicating how many characters the text contains.","failureModes":["Missing or empty 'input' field in request body returns a validation error","Non-string input type may cause a schema validation failure","Payment of 0.001 USDC per call required; failure to pay results in a 402 Payment Required response","Extremely long strings may be subject to size limits or timeouts"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, micropayment-gated string length computation via the x402 protocol, particularly in agentic pipelines that already use PennyRail for machine-readable settlement. It is ideal for lightweight text validation tasks within automated workflows where per-call cost is negligible.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:48:49.967Z","isFirstParty":false}