MCP Tools
Reference for the misarcoder_ask and misarcoder_complete MCP tools.
The MisarCoder MCP server exposes two tools. Both wrap the gateway's chat completions engine.
Canonical schema
The exact JSON-schema for each tool is defined by the published MisarCoder MCP server. The reference below describes the tools' behavior and typical inputs; confirm precise field names and constraints against the installed server's tools/list response.
misarcoder_ask
Ask a question or request an explanation. Returns a concise, conversational answer. Use this for Q&A and for explaining code or behavior.
promptstringrequiredThe question to ask, or the code/topic to explain.
contextstringOptional additional context (e.g. a code snippet the question is about).
// tools/call
{
"name": "misarcoder_ask",
"arguments": { "prompt": "What does this regex do?", "context": "^\\d{4}-\\d{2}$" }
}misarcoder_complete
Generate code. Recommended for larger generations (roughly >30 lines). Routes through the MoE engine for a fuller completion.
promptstringrequiredA description of the code to generate.
languagestringOptional target language hint (e.g. typescript, python).
max_tokensintegerOptional cap on generated length.
// tools/call
{
"name": "misarcoder_complete",
"arguments": { "prompt": "A debounce function with a cancel method", "language": "typescript" }
}Notes
- Both tools authenticate and route through the gateway, so they share its model routing and reasoning-effort behavior.
- For programmatic access outside an MCP client, call the chat completions endpoint directly.