{"uid":"cap_7U8hhO_1jIQkeHineZO84","slug":"coco-age-calculator-840697a0","name":"CoCo Age 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/age?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":{"on":{"type":"string"},"birthdate":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["years"],"properties":{"years":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"years":26,"total_days":9787,"next_birthday":"2027-01-01","days_until_next":75},"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_UyqBoNmxD5nHB1P9Lx8Df","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":"Calculates a person's age in years, total days lived, and days until their next birthday given a birthdate","exampleAgentPrompt":"How old is someone born on March 15, 1998? Give me their age in years, total days lived, and how many days until their next birthday.","exampleUseCases":[{"title":"Verify user age eligibility","prompt":"Can you check how old someone born on July 4, 2005 is today? I need to know if they're at least 18 years old and when their next birthday falls."},{"title":"Birthday countdown for a friend","prompt":"My friend's birthdate is November 22, 1990 — how many days until their next birthday, and how old will they be turning?"},{"title":"Age calculation for a historical figure","prompt":"How old would Abraham Lincoln be today if he were still alive? His birthdate was February 12, 1809 — give me the years and total days."}],"resultDescription":"Returns a JSON object with the person's age in whole years, total number of days they have been alive, the date of their next birthday, and the number of days remaining until that next birthday.","failureModes":["Missing or malformed birthdate query parameter returns an error","Invalid date format (non-ISO string) may cause a computation failure","Future birthdates may produce unexpected or negative age values","Missing 'on' reference date may cause the API to default to current server date, which could yield inconsistent results"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost computation of someone's age in years and days alongside a next-birthday countdown — especially in agent workflows where you want a single structured JSON result without doing date arithmetic yourself. It is a lightweight utility best suited for simple personal date queries rather than complex calendar logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:33:31.059Z","isFirstParty":false,"canonicalSlug":"coco-age-calculator-840697a0"}