{"uid":"cap_qRvVZ6ipnsfQ9kM1N4sQa","slug":"bitwise-integer-analyzer-85075ac8","name":"Bitwise Integer Analyzer","description":"Inspect a non-negative integer's bit structure: bit length, set-bit count (population count), trailing-zero count, power-of-two test, and hex/binary representations. An optional width zero-pads the binary form.","url":"https://bitwise.openverbs.com/v1/analyze","method":"POST","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"value":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer as a decimal string."},"width":{"type":"integer","minimum":1,"maximum":1024,"description":"Optional bit width; zero-pads the binary output and bounds the value."}},"required":["value"],"additionalProperties":false}},"required":["type","method","bodyType","body"],"additionalProperties":false}},"required":["input"]},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7jVRBMrwgME9U-49ZrzaD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a non-negative integer's bit structure, returning bit length, population count, trailing-zero count, power-of-two test, and hex/binary representations with optional zero-padding.","exampleAgentPrompt":"What's the bit length, population count, trailing-zero count, and binary representation of 2048, zero-padded to a width of 16 bits?","exampleUseCases":[{"title":"Power-of-two check in code review","prompt":"Is 65536 a power of two, and how many bits does it take to represent it?"},{"title":"Embedded systems register inspection","prompt":"Give me the full bit breakdown of the value 305441741 — I need bit length, how many bits are set, trailing zeros, and its binary form padded out to 32 bits."},{"title":"Cryptographic bitmask analysis","prompt":"Analyze the bit structure of 4294967295 for me — I want the set-bit count, bit length, hex value, and whether it's a power of two."}],"resultDescription":"Returns a structured object containing: bit_length (number of bits needed to represent the value), popcount (number of set bits), trailing_zeros (count of least-significant zero bits), is_power_of_two (boolean), hex (hexadecimal string), and binary (binary string, optionally zero-padded to the requested width).","failureModes":["Value is not a valid non-negative decimal integer string — returns validation error","Specified width is less than 1 or greater than 1024 — returns schema validation error","Value requires more bits than the specified width — may return bounds error","Non-numeric or negative string passed as value — rejected by regex pattern","Missing required 'value' field — returns 400-level error"],"whenToPreferThis":"Use this endpoint when you need a comprehensive one-shot inspection of an integer's binary properties — bit length, population count, trailing zeros, power-of-two status, and both hex and binary representations — rather than calling separate endpoints. Prefer it over general-purpose code execution when you just need these specific metrics quickly and cheaply, especially when width-padded binary output is needed for display or protocol work.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:21.387Z","isFirstParty":false}