{"uid":"cap_BN1IO33AzTMFEghLLB2dp","slug":"coco-cidr-calculator-7a89a02b","name":"CoCo CIDR Calculator","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/cidr?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"value":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["network"],"properties":{"network":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"prefix":24,"netmask":"255.255.255.0","network":"10.0.0.0","private":true,"version":4,"broadcast":"10.0.0.255","last_host":"10.0.0.254","first_host":"10.0.0.1","usable_hosts":254,"total_addresses":256},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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_BxBnEotGmMqyWvj6W8nYA","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":"Computes detailed network information for a given IP address or CIDR block, including subnet mask, broadcast address, host range, and address counts.","exampleAgentPrompt":"Can you calculate the subnet details for 10.0.0.0/24 — I need the network address, broadcast, first and last host, netmask, and how many usable hosts there are?","exampleUseCases":[{"title":"Subnet planning for cloud infrastructure","prompt":"I'm setting up a VPC and need to know the details for 192.168.1.0/26 — give me the network address, broadcast, usable host range, and total addresses."},{"title":"Verifying private IP range membership","prompt":"Is 172.16.5.0/20 a private network? Also tell me the netmask, prefix length, and how many hosts it can support."},{"title":"Troubleshooting network configuration","prompt":"Our router is configured for 10.10.10.0/28 — what's the broadcast address, first and last usable host, and total number of addresses in that subnet?"}],"resultDescription":"Returns a JSON object with full subnet details: network address, prefix length, netmask, broadcast address, first and last usable host IPs, number of usable hosts, total address count, IP version (4 or 6), and whether the range is a private network.","failureModes":["Invalid or malformed CIDR notation returns an error or empty response","Missing 'value' query parameter may return a bad request error","IPv6 inputs may not be fully supported or may return partial data","Prefix lengths out of valid range (e.g. /33 for IPv4) may cause computation errors"],"whenToPreferThis":"Choose this endpoint when you need quick, offline-computable CIDR/subnet decomposition without hitting a heavy network library or setting up your own tooling. It is ideal for agents doing network planning, infrastructure configuration, or IP range validation where a single structured JSON result covering all key subnet fields is needed in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:43:44.898Z","isFirstParty":false,"canonicalSlug":"coco-cidr-calculator-7a89a02b"}