{"uid":"cap_mrDUEJSu1d72ST4O0ArsE","slug":"truthy-count-utility-6ed7bc24","name":"Truthy Count Utility","description":"Machine-callable x402-paid utilities for autonomous agents.","url":"https://creator-desk-x402-isolated.onrender.com/v1/utility/truthy-count?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{},"options":{"type":"object"}}},"responseSchema":{"type":"json","example":{"result":"example","operation":"truthy_count"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_C9ji81vrSHVkAce9QarNH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 truthy values in a given input value or collection, returning the total count and operation name.","exampleAgentPrompt":"Count how many truthy values are in this array for me: [1, 0, null, 'hello', false, 42, '', undefined] — I need the total number of items that evaluate to true.","exampleUseCases":[{"title":"Validating form field completeness","prompt":"I have a form submission object with fields like name, email, phone, address — can you count how many of those fields actually have truthy values so I know how complete the submission is?"},{"title":"Filtering non-empty responses from a survey","prompt":"I have a list of survey answers like [\"yes\", \"\", null, \"no\", \"maybe\", false, \"agree\"] — tell me how many responses are truthy so I can see how many people actually answered."},{"title":"Checking feature flag activation count","prompt":"Given this feature flags object with true/false values, count how many flags are currently enabled — I want to know how many features are active right now."}],"resultDescription":"Returns a JSON object with a 'result' field containing the count of truthy values found in the input, and an 'operation' field confirming this was a 'truthy_count' operation.","failureModes":["Missing or malformed 'value' input may return an error or unexpected count","Payment failure via x402 protocol results in 402 response blocking execution","Deeply nested or very large inputs may produce unexpected results depending on traversal depth","Options object misuse may alter counting behavior unpredictably"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call computation to count truthy values in arbitrary data structures without setting up your own evaluation logic. Best suited for autonomous agents needing on-demand boolean aggregation over small to medium collections at low cost ($0.01 USDC per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:43:23.163Z","isFirstParty":false,"canonicalSlug":"truthy-count-utility-6ed7bc24"}