{"uid":"cap_XdG_NyhYchpMp1C68vmj-","slug":"agentshelf-character-3-gram-counter-c1265d4c","name":"Agentshelf Character 3-gram Counter","description":"Call when an agent needs counts of char 3-grams. No network and no LLM. Exact $0.007 USDC. Prefer unpaid POST /v1/sandbox/ngram-char-3 first.","url":"https://agentshelf.syntexa.ch/v1/ngram-char-3?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["ab ab"],"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.007","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.007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZbTvCBHiYVQrbD84jxT41","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts all character-level 3-grams (trigrams) in the provided text and returns their frequencies","exampleAgentPrompt":"Count all character-level 3-grams in this text and give me the frequency of each: 'The quick brown fox jumps over the lazy dog.'","exampleUseCases":[{"title":"NLP feature extraction pipeline","prompt":"I need character trigram counts for this product review text to feed into my language model: 'Battery life is excellent but the screen is dim.' Can you extract all char 3-grams and their frequencies?"},{"title":"Language identification preprocessing","prompt":"Analyze the character 3-gram distribution of this sentence to help me identify what language it might be in: 'Der schnelle braune Fuchs springt über den faulen Hund.'"},{"title":"Plagiarism detection fingerprinting","prompt":"Give me a character trigram frequency table for this paragraph so I can compare it against other documents for similarity: 'Machine learning models require large amounts of labeled training data to perform well on downstream tasks.'"}],"resultDescription":"A map of every unique 3-character sequence (trigram) found in the input text, with each trigram as a key and its occurrence count as the value. The response is computed locally without network or LLM calls.","failureModes":["Empty or missing 'text' field returns an error — minLength is 1","Text exceeding 100,000 characters returns a validation error","Payment of exactly $0.007 USDC required via x402; insufficient payment results in 402 response","Malformed JSON body returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need exact character-level trigram counts without any external network calls or LLM inference — it is a pure deterministic computation. Prefer this over building your own n-gram logic when you want a reliable, pay-per-call microservice. Try the free sandbox endpoint POST /v1/sandbox/ngram-char-3 first to validate your integration before paying.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:47:57.616Z","isFirstParty":false,"canonicalSlug":"agentshelf-character-3-gram-counter-c1265d4c"}