LeadUp MCP Tool Orchestrator
Purpose
Pick the right tools for a task and run them in a safe order: discover what's
available, prefer read-only, escalate to write/exec only with stated risk and
approval. Tool inventories change between sessions — discover, never assume.
When to use
Trigger phrases: "use MCP", "check available tools", "what tools do you have",
"use connectors", "use GitHub MCP", "use browser MCP", "use docs MCP",
"tool orchestration", "which tool should we use for this".
For actually driving a browser test flow → use
leadup-browser-playwright-tester (this skill picks/sequences tools; that one
runs the test).
Inputs needed
- The task to accomplish.
- Any constraint (read-only only, no external publishing, dev vs prod target).
Step-by-step workflow
Follow references/mcp-tool-policy.md.
- Restate the task in one line.
- Discover the tools/MCP servers/connectors actually available this
session. Do not plan around tools that may not exist.
- Classify relevant tools (docs/read, repo-read, repo-write, browser,
database, deploy, memory).
- Pick the lowest-privilege tool that achieves the step. Read-only first.
- Before any write/exec/external-publish tool: state what it does, what it
touches, whether it is reversible — get approval.
- Execute read-only steps; pause at the approval gate for write/exec.
- Verify with a read-only check and report what was done + next step.
Required output format
- Task (one line).
- Available relevant tools (by class; note if a needed one is missing).
- Plan — ordered steps, each tagged
[read-only] or [needs approval].
- Risk note for every write/exec step.
- Result after read-only steps + explicit approval gate before the rest.
Safety rules
See references/security-rules.md and mcp-tool-policy.md. Most relevant:
- Never send
.env contents, secrets, or private client data to any tool/
connector.
- No deploy/push/remote-SSH via tools without explicit approval.
- Prefer read-only; least privilege; state reversibility before acting.
Common mistakes
- Hard-coding a specific MCP tool name that isn't available this session.
- Jumping to a write/exec tool when a read tool answers the question.
- Using a browser tool to do something a docs/fetch tool does cheaper.
- Skipping the risk statement before a state-changing action.
- Sending repo secrets/config to an external connector.
Troubleshooting
- Under-triggers: user said "just use the tools" — re-invoke; suggest
trigger phrases.
- Over-triggers when they want a browser test executed → route to
leadup-browser-playwright-tester.
- Missing tool/MCP: name the capability gap explicitly and give a manual
fallback (e.g. local command, paste-in data).
- No internet/browser: restrict to local/read tools; defer anything
needing network and say so.
- Missing project files: tool selection still works; note what context is
unavailable.
- Build/test failure triggered via a tool: report raw error, do not retry
a write tool blindly; downgrade to read-only diagnosis.
Test prompts
Should trigger (5)
- "Check available tools and pick the right one to read this repo's PRs."
- "Use MCP to fetch the Coolify docs safely."
- "Tool orchestration: which connector for the Postgres read?"
- "Use the GitHub MCP read-only to list open issues."
- "What tools do you have for browsing, and which is safest here?"
Should NOT trigger (3)
- "Run the Playwright login test." (→ browser-playwright-tester)
- "Research the Razorpay API." (→ api-research-builder)
- "Update STATUS.md." (→ status-updater)
Functional test cases (2)
- For "list open PRs", the plan uses a read-only repo tool and tags it
[read-only], with no write step.
- For "create a branch and push", the plan stops at an approval gate with a
risk note before any write tool.
Success criteria
- Plan based on tools actually discovered this session.
- Read-only steps first; every write/exec step gated + risk-noted.
- No secrets/client data sent externally.
- Missing capabilities named with a fallback.
1---2name: leadup-mcp-tool-orchestrator3description: Choose and sequence MCP servers, connectors, and tools safely for a LeadUp task. Discovers what tools are actually available this session, prefers read-only first, coordinates GitHub/browser/docs/database tools, and explains the risk before any write or exec action. Use when the user says "use MCP", "check available tools", "use connectors", "use GitHub MCP", "use browser MCP", "use docs MCP", or "tool orchestration".4---56# LeadUp MCP Tool Orchestrator78## Purpose910Pick the right tools for a task and run them in a safe order: discover what's11available, prefer read-only, escalate to write/exec only with stated risk and12approval. Tool inventories change between sessions — discover, never assume.1314## When to use1516Trigger phrases: "use MCP", "check available tools", "what tools do you have",17"use connectors", "use GitHub MCP", "use browser MCP", "use docs MCP",18"tool orchestration", "which tool should we use for this".1920For actually driving a browser test flow → use21`leadup-browser-playwright-tester` (this skill picks/sequences tools; that one22runs the test).2324## Inputs needed2526- The task to accomplish.27- Any constraint (read-only only, no external publishing, dev vs prod target).2829## Step-by-step workflow3031Follow `references/mcp-tool-policy.md`.32331. **Restate the task** in one line.342. **Discover** the tools/MCP servers/connectors actually available this35 session. Do not plan around tools that may not exist.363. **Classify** relevant tools (docs/read, repo-read, repo-write, browser,37 database, deploy, memory).384. **Pick the lowest-privilege tool** that achieves the step. Read-only first.395. **Before any write/exec/external-publish tool**: state what it does, what it40 touches, whether it is reversible — get approval.416. **Execute** read-only steps; pause at the approval gate for write/exec.427. **Verify** with a read-only check and report what was done + next step.4344## Required output format45461. **Task** (one line).472. **Available relevant tools** (by class; note if a needed one is missing).483. **Plan** — ordered steps, each tagged `[read-only]` or `[needs approval]`.494. **Risk note** for every write/exec step.505. **Result** after read-only steps + explicit approval gate before the rest.5152## Safety rules5354See `references/security-rules.md` and `mcp-tool-policy.md`. Most relevant:55- Never send `.env` contents, secrets, or private client data to any tool/56 connector.57- No deploy/push/remote-SSH via tools without explicit approval.58- Prefer read-only; least privilege; state reversibility before acting.5960## Common mistakes6162- Hard-coding a specific MCP tool name that isn't available this session.63- Jumping to a write/exec tool when a read tool answers the question.64- Using a browser tool to do something a docs/fetch tool does cheaper.65- Skipping the risk statement before a state-changing action.66- Sending repo secrets/config to an external connector.6768## Troubleshooting6970- **Under-triggers**: user said "just use the tools" — re-invoke; suggest71 trigger phrases.72- **Over-triggers** when they want a browser test executed → route to73 `leadup-browser-playwright-tester`.74- **Missing tool/MCP**: name the capability gap explicitly and give a manual75 fallback (e.g. local command, paste-in data).76- **No internet/browser**: restrict to local/read tools; defer anything77 needing network and say so.78- **Missing project files**: tool selection still works; note what context is79 unavailable.80- **Build/test failure** triggered via a tool: report raw error, do not retry81 a write tool blindly; downgrade to read-only diagnosis.8283## Test prompts8485### Should trigger (5)861. "Check available tools and pick the right one to read this repo's PRs."872. "Use MCP to fetch the Coolify docs safely."883. "Tool orchestration: which connector for the Postgres read?"894. "Use the GitHub MCP read-only to list open issues."905. "What tools do you have for browsing, and which is safest here?"9192### Should NOT trigger (3)931. "Run the Playwright login test." (→ browser-playwright-tester)942. "Research the Razorpay API." (→ api-research-builder)953. "Update STATUS.md." (→ status-updater)9697### Functional test cases (2)981. For "list open PRs", the plan uses a read-only repo tool and tags it99 `[read-only]`, with no write step.1002. For "create a branch and push", the plan stops at an approval gate with a101 risk note before any write tool.102103## Success criteria104105- Plan based on tools actually discovered this session.106- Read-only steps first; every write/exec step gated + risk-noted.107- No secrets/client data sent externally.108- Missing capabilities named with a fallback.