{"uid":"cap_wf45UjZ-WhqU4miyRCcn3","slug":"pennyrail-character-count-06dc785e","name":"PennyRail Character Count","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/f/text.char-count","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"string"}}},"responseSchema":{"type":"object","required":["operation","result"],"properties":{"result":{},"operation":{"type":"string"}},"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_I7G-3XGu5l51KFtzp4ie2","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 input string","exampleAgentPrompt":"Count the characters in this string: 'Hello, world! This is my sample sentence.'","exampleUseCases":[{"title":"Validate tweet length before posting","prompt":"Count the characters in this draft tweet so I know if it fits within the limit: 'Just launched our new product — check it out at example.com! #launch #startup'"},{"title":"Check form field character limits","prompt":"How many characters are in this user bio I'm about to save: 'Passionate software engineer based in San Francisco, building tools that make developers' lives easier'?"},{"title":"Measure code comment length","prompt":"Can you count the characters in this comment string: 'This function initializes the database connection pool and sets retry parameters'?"}],"resultDescription":"Returns a JSON object containing the operation name (e.g. 'char-count') and the result, which is the total character count of the provided input string.","failureModes":["Missing required 'input' field returns a validation error","Non-string input type may cause unexpected results","Very large strings may result in timeout or processing errors","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use character counting operation via the x402 micropayment protocol, especially in automated agent workflows where billing granularity and machine-readable settlement matter. Prefer over rolling your own if you want auditable, on-chain payment records per computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:49:02.618Z","isFirstParty":false}