MartinLoop — Stop Runaway Loops, Bad Code & Token Waste
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
| extensions | {
"io.modelcontextprotocol/ui": {
"mimeTypes": [
"text/html;profile=mcp-app"
]
}
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| martin_runA | Execute a governed MartinLoop coding run after MCP workflow admission is satisfied. Use when the user has authorized implementation, bug fixing, tests, or refactoring and doctor/estimate/plan/preflight receipts match this task. Do not use for question-only diagnosis or when policy, budget, credentials, or scope still need consent. Next: read martin_dossier and verifier evidence. |
| martin_inspectA | Summarise Martin Loop run records from a saved loop file or run-store directory. |
| martin_statusA | Read the current budget, cost, remaining limits, and stop pressure for one MartinLoop run. Provide exactly one selector: loopJson for an inline record, file for a saved record, loopId for a run-store ID, or latest for the newest run; runsDir only changes the run-store root. Use for a compact budget check. Do not use for full events or artifacts; use martin_get_run or martin_run_dossier instead. |
| martin_doctorA | Read-only environment, engine, workspace, and run-store diagnostics for MartinLoop. Use first for software work, fresh installs, suspicious state, or before retries. Do not use as proof that a task is complete. Next: call martin_estimate or martin_triage_runs depending on whether this is new work or failed prior work. |
| martin_planA | Read-only planning step that turns an objective into bounded scope, verifier proposal, policy pack, and risk recommendation. Use for authorized software changes before preflight/run. Do not use to mutate files or replace the verifier. Next: call martin_preflight with the chosen scope, budget, and verifier. |
| martin_preflightA | Read-only validation of the exact run contract before execution or spend. Use after planning and before martin_run to check engine, verifier, path scope, and budget. Do not use as execution or completion proof. Next: call martin_run if allowed, otherwise resolve the reported blocker. |
| martin_logsA | Read recent MartinLoop events, ledger entries, and operator control receipts for a single run. Use to observe live or completed run activity, diagnose stuck or failed runs, or audit operator actions. Do not use to check run completion status — use martin_get_status instead. Do not use to retrieve verification evidence — use martin_get_verification_results instead. This tool only reads persisted run files and does not execute commands, modify state, or contact GitHub. |
| martin_pauseA | Write a durable pause receipt for one canonical MartinLoop run. Provide exactly one selector: file, loopId, or latest; runsDir changes the run-store root, while reason and requestedBy add audit context. Use for a temporary hold before risky follow-up work. This records a request and does not kill a process; use martin_cancel to abandon work or martin_continue to resume. |
| martin_cancelA | Write a durable cancellation receipt for one canonical MartinLoop run. Provide exactly one selector: file, loopId, or latest; runsDir changes the run-store root, while reason and requestedBy add audit context. Use when work must be abandoned, not temporarily held. This records a request and does not kill a process; use martin_pause for a reversible hold. |
| martin_continueA | Record a durable continue or resume request for a Martin run after a human pause or approval checkpoint. |
| martin_list_runsA | List recent Martin runs from the run store with lightweight filters for status, lifecycle, engine metadata, and recency. |
| martin_triage_runsA | Read-only prioritization of saved Martin runs that need attention. Use when the user says a prior attempt failed, asks what to fix next, or resumes an interrupted session. Do not use for a brand-new objective with no relevant run history. Next: inspect the selected run or dossier before retrying. |
| martin_get_runA | Load one Martin run and return its budget, cost, verification, artifact, and canonical path summary. |
| martin_get_attemptA | Load one Martin attempt summary with artifact directory references for a canonical run. |
| martin_get_verification_resultsA | Load structured verification evidence for a MartinLoop run — verifier commands, pass/fail outcomes, and contradiction signals — from stored loop events and ledger entries. Use after a run completes to confirm whether automated verifiers passed before merging or promoting the result. Do not use to get a merge-readiness grade — use martin_eval for a scored grade with six check dimensions. Do not use for live run status — use martin_get_status instead. This tool only reads persisted run files and does not execute commands, modify state, or contact GitHub. |
| martin_run_dossierA | Read the full structured execution dossier for one MartinLoop run, including attempts, events, artifacts, verification, integrity, cost, and related discovery surfaces. Provide exactly one selector: file, loopId, or latest; runsDir changes the run-store root. Use for comprehensive evidence review. Do not use for a compact state check; use martin_get_run, or use martin_dossier when formatted sharing output is required. |
| martin_dossierA | Read a formatted evidence summary for one MartinLoop run. Provide exactly one selector: file, loopId, or latest; runsDir changes the run-store root. Set format to json, md, or github-pr; json is the default. Use after martin_run, before merge or release claims, or when sharing what happened. Do not use as a substitute for missing verifier evidence; use martin_run_dossier for the full structured record. Next: review verification results, retry, or hand off the receipt. |
| martin_evalA | Grade a MartinLoop run across six dimensions — task completion, verifier health, diff discipline, regression risk, security risk, and reviewability — and return a scored merge-readiness verdict. Use after a governed run completes to decide whether the result is safe to merge or promote. Use before martin_pr_summary or martin_create_pr to confirm the run is merge-ready. Do not use to retrieve raw verification command output — use martin_get_verification_results for that. Do not use to review an existing PR body — use martin_review_pr instead. This tool reads saved run evidence and inspects local git signals; it does not modify state or contact GitHub. |
| martin_pr_summaryA | Generate a GitHub-ready pull-request title and Markdown body from a completed MartinLoop run dossier, including its verification grade and score. Use after a governed run completes when you need PR copy without creating the PR. Use martin_create_pr instead to actually open the PR on GitHub. Use martin_review_pr to evaluate an existing PR body against run evidence. Use martin_eval first if you need a merge-readiness grade before generating the PR body. This tool only reads saved run evidence and does not modify the repository or contact GitHub. |
| martin_create_prA | Create or preview a GitHub PR with a MartinLoop dossier body. Use execute=true to actually call gh. |
| martin_review_prA | Review a PR body or draft against the MartinLoop run dossier and evaluation evidence, and return a verdict with specific findings. Use when you have an existing PR body and want to check whether it accurately represents the governed run evidence. Supply prBody to review a specific body string; omit it to evaluate the auto-generated dossier body. Do not use to generate a PR body from scratch — use martin_pr_summary instead. Do not use to open or create a PR — use martin_create_pr instead. This tool only reads saved run evidence and does not modify the repository or contact GitHub. |
| martin_estimateA | Read-only cost, route, and pre-work burn estimate for a software objective. Use before planning/preflight when a change may spend agent time or exceed budget. Do not use for casual questions or as permission to execute. Next: call martin_plan if the estimate is acceptable, or ask for consent if budget/risk is high. |
| martin_arcadeA | Open the presentation-only MartinLoop Arcade when the host supports MCP Apps. The Arcade cannot change governed execution or evidence. |
| martin_arcade_statusA | Read the read-only evidence projection used by the Arcade view. Provide loopId for one exact run or omit it to load the latest run. Use only for Arcade rendering; use martin_status for budget pressure or martin_run_dossier for full evidence. This tool reads persisted evidence and never changes run state. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| martin_start | Start a governed agent workflow with the smallest safe Martin context. [server 0.5.8, discovery 251eef820230] |
| martin_preflight | Prepare the exact preflight payload and safety envelope before a governed run. [server 0.5.8, discovery 251eef820230] |
| martin_triage | Prioritize run-store failures and choose the next inspection surface. [server 0.5.8, discovery 251eef820230] |
| martin_resume | Resume from a prior run safely using compact evidence before spending another attempt. [server 0.5.8, discovery 251eef820230] |
| martin_prove | Build a proof-first receipt from the latest or selected Martin run. [server 0.5.8, discovery 251eef820230] |
| martin_release_check | Run a release-readiness review using Martin MCP discovery and evidence surfaces. [server 0.5.8, discovery 251eef820230] |
| martin_governed_coding_kickoff | Frame a governed Martin Loop coding request before preflight or execution. [server 0.5.8, discovery 251eef820230] |
| martin_debug_failed_run | Diagnose a failed or degraded Martin run using persisted run, attempt, and verification data. [server 0.5.8, discovery 251eef820230] |
| martin_publish_readiness_review | Run a findings-first publish-readiness review for the Martin MCP package. [server 0.5.8, discovery 251eef820230] |
| martin_triage_run_store | Prioritize persisted Martin runs and decide which one to inspect or debug next. [server 0.5.8, discovery 251eef820230] |
| safe_bug_fix | Plan a small scoped bug fix through doctor, plan, preflight, run, and dossier. [server 0.5.8, discovery 251eef820230] |
| write_tests_first | Constrain the plan around failing tests first, then a small fix. [server 0.5.8, discovery 251eef820230] |
| small_refactor | Keep a refactor small, verifier-backed, and path-scoped. [server 0.5.8, discovery 251eef820230] |
| security_review | Review a risky change with Martin risk, scope, and verifier evidence first. [server 0.5.8, discovery 251eef820230] |
| pr_review | Generate a Martin-aware PR review checklist with dossier and eval evidence. [server 0.5.8, discovery 251eef820230] |
| release_check | Run a release-readiness check grounded in Martin evidence. [server 0.5.8, discovery 251eef820230] |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| martin_server_health | Health and environment readiness for the Martin MCP server. |
| martin_recent_runs | Recent Martin loop previews derived from the current runs root. |
| martin_run_triage | Priority-ranked Martin runs that likely need attention. |
| martin_latest_run | Full latest-run dossier surface for agents that need more than the compact summary. |
| martin_latest_summary | Compact latest-run summary for context-constrained agents. |
| martin_latest_proof_card | Small Markdown receipt showing what happened, what Martin prevented, and the next safe action. |
| martin_latest_budget_status | Compact budget, token, and stop-condition snapshot for the latest run. |
| martin_latest_verifier_evidence | Compact verifier evidence and warnings for the latest run. |
| martin_latest_rollback_evidence | Compact rollback and artifact evidence for the latest run. |
| martin_current_policies | Local policy-pack presets and the recommended default pack for the current repo. |
| martin_repo_risk_map | Sensitive repo surfaces and the recommended policy pack for this workspace. |
| martin_latest_verifier_results | Latest verifier results alias for compact run evidence. |
| martin_agent_next_step | Single next recommended Martin tool, prompt, or resource for a context-constrained agent. |
| martin_mcp_usage_guide | Recommended workflow for using Martin Loop over MCP. |
| martin_agent_start_guide | Short agent-facing guide for using Martin with minimal context and low tool bloat. |
| martin_command_map_guide | Command-by-command guide for choosing the right Martin tool or surface. |
| martin_ide_onboarding_guide | IDE-facing setup guide for making MartinLoop part of the default MCP workflow. |
| martin_operating_rules_guide | Built-in operating rules that tell agents when Martin commands must be used before work proceeds. |
| martin_publish_readiness_guide | Checklist-oriented guide for MCP publish readiness reviews. |
| martin_governance_status | Proactive governance status: whether work is governed, budget remaining, unreceipted runs, and recommended next action. Read this before starting agent work. |
| martin_mode_status | Current MartinLoop working mode, whether it is inherited or explicitly configured, and how to switch it. |
| martin_memory_summary | MartinLoop persistent memory: user preferences, consent signals, budget patterns, and behavioral observations aggregated over time. Read at session start to personalize recommendations. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Keesan12/martin-loop'
If you have feedback or need assistance with the MCP directory API, please join our Discord server