{"uid":"cap_RQoeuMTSp3mS-CCXdg_UW","slug":"agent402-tools-matrix-multiply-e967fb24","name":"agent402.tools Matrix Multiply","description":"Standard matrix multiplication of two 2D arrays: A[m×k] × B[k×n] → C[m×n]. Validates that inner dimensions match. Each dimension is capped at 100.","url":"https://agent402.tools/api/matrix-multiply","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"array","description":"First matrix (2D array of numbers)"},"b":{"type":"array","description":"Second matrix (2D array of numbers)"}}},"responseSchema":{"type":"json","example":{"result":[[19,22],[43,50]],"dimensions":{"k":2,"m":2,"n":2}}},"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_q5QX3pBeNKZPhp4rB0x09","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":"Performs standard 2D matrix multiplication (A[m×k] × B[k×n] → C[m×n]) with dimension validation and a cap of 100 per dimension.","exampleAgentPrompt":"Can you multiply matrix A = [[1,2,3],[4,5,6]] by matrix B = [[7,8],[9,10],[11,12]] and give me the result matrix?","exampleUseCases":null,"resultDescription":"Returns the resulting matrix C with dimensions m×n, where each element is the dot product of the corresponding row of A and column of B. Inner dimensions must match (k) and each dimension is capped at 100.","failureModes":["Inner dimensions do not match (e.g. A is m×k1 and B is k2×n where k1≠k2) — returns validation error","Matrix dimension exceeds 100 — returns error indicating dimension cap exceeded","Non-numeric values in matrix arrays — returns validation/parsing error","Non-2D arrays provided — returns schema validation error","Missing 'a' or 'b' fields — returns bad request error"],"whenToPreferThis":"Use this endpoint when you need a simple, validated, pay-per-call matrix multiplication service without setting up your own compute environment. Ideal for agents that occasionally need matrix math without a full numerical library, or for verifying correctness of matrix products. Best for matrices up to 100×100.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.628Z","isFirstParty":false}