Hi!
This is the only documentation I could find is this one:
https://download.autodesk.com/us/maya/2010help/index.html?url=Technical_API_Maya_Muscle_Commands.htm...
Which seems to include some old Python API commands for this, but it's from 2010, so I don't know how useful it is. TBH, Maya Muscle isn't really a tool that is used all that much anymore, there are 3rd Person plugins that do muscle sim more reliable, which is why maya muscle hasn't seen a lot of updates over the last few versions.
An approach to automate older utilities in Maya, like Maya Muscle, is to code node based.
If you know how your setup should look like and what kinds of nodes are involved, you can automate pretty much any setup by using the following 4 commands:
cmds.createNode() -> for creating nodetypes by name
cmds.parent() -> for creating hierarchies as needed
cmds.connectAttr() -> for connecting attriubtes with each other
cmds.xform() -> for moving nodes to the right position in space
I hope it helps!