Python Docstring Generator (Google, NumPy, or Sphinx Style)
omnial/x402-docstring-generate
Given a snippet of Python source code (a function, method, or class) and a target docstring style (Google, NumPy, or Sphinx), returns the same code with generated docstrings inserted, plus a count of how many functions and classes were documented. Your input is sent to an outside service for processing; remove secrets and personal data first.
Price
Up to $0.0811 per call; you pay what the call used
You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.
Data source
Generated by Anthropic's Claude from the inputs you provide.
Use it
Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.
Connect once and your AI can find and run this tool, and any other it needs.
For developers: the calls your assistant makes
// 1. search: find the tool
omnial_search({ query: "what you need" })
// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/x402-docstring-generate" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/x402-docstring-generate" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/x402-docstring-generate", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/x402-docstring-generate", input: { /* ... */ } })
// 5. settle: the call is charged when it finishes, nothing to doNot connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.
Pricing
Every charge this tool can incur.
| Charge | Price |
|---|---|
Per call | $0.0811 |
- Updated
- Oct 27, 2026
Input and output schemas
Input schema
{
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string"
},
"style": {
"type": "string",
"description": "google/numpy/sphinx"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"style": {
"type": "string",
"description": "Echoes the requested style. Observed as 'google' and 'numpy'."
},
"documented_code": {
"type": "string",
"description": "The input `code` returned verbatim with generated docstrings inserted into each function/method/class. Works on a single free function and on a class with multiple methods, each documented individually."
},
"classes_documented": {
"type": "number",
"description": "Observed 0 (no class in the snippet) and 1 (one class) in testing."
},
"functions_documented": {
"type": "number",
"description": "Observed 1 (one free function) and 2 (a 3-method class whose __init__/push/pop all received their own docstring in `documented_code`, yet this count read 2) in testing -- an approximate summary, not a literal tally of every function/method docstring actually inserted; see usage.md."
}
},
"description": "The docstring-generation result.",
"additionalProperties": true
}