{"uid":"cap_QGca94ZDziRnnYXoCGsVn","slug":"strale-jsdoc-generator-d888c8cd","name":"Strale JSDoc Generator","description":"The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.","url":"https://api.strale.io/x402/v2/jsdoc-generate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["code"],"properties":{"code":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"const":"json"},"example":{"type":"object","properties":{"tags_used":{"type":"array"},"documented_code":{"type":"string"},"functions_documented":{"type":"integer"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.054","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.054/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c410Foe9dGafgZ4bCbsgo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates JSDoc documentation comments from a provided JavaScript/TypeScript code snippet","exampleAgentPrompt":"Can you generate proper JSDoc documentation for this JavaScript function: `function calculateTax(income, rate) { return income * rate; }`?","exampleUseCases":[{"title":"Document a JavaScript utility library","prompt":"I have a bunch of raw JavaScript utility functions without any documentation — can you generate JSDoc comments for this one: `function debounce(fn, delay) { let timer; return function(...args) { clearTimeout(timer); timer = setTimeout(() => fn.apply(this, args), delay); }; }`"},{"title":"Add TypeScript JSDoc before code review","prompt":"Before I submit my pull request, can you generate JSDoc annotations for this TypeScript method so the team knows what parameters and return values to expect: `function parseUserToken(token: string): { userId: string; role: string } { ... }`"},{"title":"Auto-document an async API handler","prompt":"Generate JSDoc documentation for this async Express handler so it shows up properly in our API docs: `async function getUserById(req, res) { const user = await db.users.findById(req.params.id); res.json(user); }`"}],"resultDescription":"Returns generated JSDoc comment blocks with @param, @returns, @description, and other relevant JSDoc tags inferred from the provided code snippet, ready to be inserted above the function or class definition.","failureModes":["Missing 'code' query parameter returns a validation error","Invalid or unparseable code snippet may produce incomplete or generic JSDoc","Non-JavaScript/TypeScript code may result in incorrect type annotations","Very long or complex code snippets may produce truncated output","Network or service errors return standard HTTP error codes"],"whenToPreferThis":"Choose this endpoint when you need automated, on-demand JSDoc generation for individual JavaScript or TypeScript functions or classes without setting up a local documentation toolchain. It is especially useful for agents assisting with code review, documentation generation pipelines, or developer productivity workflows where code snippets are processed one at a time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:56:39.844Z","isFirstParty":false,"canonicalSlug":"strale-jsdoc-generator-d888c8cd"}