{"uid":"cap_o6tX7kvKuM9rT05Zu_-kE","slug":"rectangle-area-perimeter-diagonal-calculator-f8f2b1c3","name":"Rectangle Area, Perimeter & Diagonal Calculator","description":"Area, perimeter and diagonal of a rectangle from its width and height.","url":"https://geometry.openverbs.com/v1/rectangle","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["width","height"],"properties":{"width":{"type":"number","description":"Rectangle width.","exclusiveMinimum":0},"height":{"type":"number","description":"Rectangle height.","exclusiveMinimum":0}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FTZJdhmalXR2_a-eXs4nF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the area, perimeter, and diagonal of a rectangle given its width and height.","exampleAgentPrompt":"What is the area, perimeter, and diagonal of a rectangle that is 12 units wide and 7 units tall?","exampleUseCases":[{"title":"Flooring material estimation","prompt":"I need to figure out the area, perimeter, and diagonal of a room that's 4.5 meters wide and 6.2 meters long — can you calculate that for me?"},{"title":"Fence length planning","prompt":"I'm planning a rectangular garden plot that's 10 feet wide and 15 feet long. What's the perimeter so I know how much fencing to buy, and what are the other measurements?"},{"title":"Screen diagonal verification","prompt":"Can you tell me the diagonal, area, and perimeter of a rectangle that's 1920 units wide and 1080 units tall? I want to verify the aspect ratio math."}],"resultDescription":"Returns the computed area (width × height), perimeter (2 × (width + height)), and diagonal (√(width² + height²)) of the rectangle as numeric values.","failureModes":["Width or height is zero or negative — the schema enforces exclusiveMinimum of 0, so invalid values will be rejected","Missing required fields (width or height) will result in a validation error","Non-numeric inputs for width or height will cause a schema validation failure"],"whenToPreferThis":"Use this endpoint when you need a quick, reliable computation of rectangle properties — area, perimeter, and diagonal — without implementing the math yourself. It is ideal for agentic workflows, educational tools, or applications that need geometry calculations as a microservice. Prefer it over the sibling circle or triangle endpoints when the shape is specifically rectangular (four right angles, two pairs of equal sides).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:01.607Z","isFirstParty":false}