{"uid":"cap_sHKkyCDgzx8IWNGCOFloM","slug":"delx-bool-coerce-54f03af6","name":"Delx Bool Coerce","description":"Coerce common truthy/falsey tokens into a boolean — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted ext…","url":"https://api.delx.ai/api/v1/x402/bool-coerce","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"string","description":"Input field: value."}}},"responseSchema":{"type":"json","example":{"ok":true,"value":true,"schema":"delx/util-bool-coerce/v1","source":"string"}},"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_omHiALRGmoePUxoNjh2Yl","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":"Coerces common truthy/falsy string tokens (e.g. 'yes', 'true', '1', 'off', 'no') into a deterministic boolean JSON result","exampleAgentPrompt":"Can you coerce the string 'yes' into a proper boolean true/false value for me?","exampleUseCases":[{"title":"Normalize user-submitted flag values","prompt":"A user submitted the string 'on' as a feature-flag setting — can you coerce that into a proper boolean so I can store it correctly?"},{"title":"Preflight check before conditional logic","prompt":"Before I branch my workflow, I need to know if the string 'FALSE' should be treated as boolean false — can you coerce it for me?"},{"title":"Sanitize environment variable booleans","prompt":"My config file has the string '0' for a toggle — coerce it into a real boolean true or false so my agent can use it safely."}],"resultDescription":"A deterministic JSON object indicating whether the input string token resolves to boolean true or false, with no retained state or side effects.","failureModes":["Unrecognized token (e.g. an arbitrary string like 'banana') may return an error or null/indeterminate result","Empty or missing 'value' field returns a validation error","Non-string input types may not be handled","Payment failure via x402 prevents execution"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, deterministic coercion of common truthy/falsy string tokens (yes, no, true, false, 1, 0, on, off) into machine-readable booleans without implementing your own lookup table. Ideal for agent preflight steps, config normalization, and input sanitization pipelines where correctness matters and the cost is negligible.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:15.517Z","isFirstParty":false}