agentleFS
madebyarismadebyaris/advance-minimax-m3-cursor-rules/.cursor/rules/tool-discovery.mdc

advance-minimax-m3-cursor-rules / rules

Cursor rule126 starsChanged 6 months agoMITView on GitHub

MiniMax M3 + Cursor 3.7 tool discovery: runtime inventory, canvases, Design Mode inputs, schema-first MCP use, MCP Apps structured content, capability mapping, and safe fallbacks.

The file

We split this tool-discovery.mdc into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the current schema or descriptor before calling unfamiliar MCP tools.

    line 27
  2. Distinctive:

    Do not infer hidden parameters or old wrapper names from memory.

    line 29
  3. Distinctive:

    MCP Apps structured content: when a tool returns structured content, prefer the structured form over reconstructing from prose.

    line 30
  4. Distinctive:

    Before acting, translate the task into:

    line 34
  5. Distinctive:

    If a tool is unavailable, say so and choose the next best exposed path.

    line 58
  6. Distinctive:

    If discovery fails, simplify the task step and re-check the current surface.

    line 59
  7. Distinctive:

    Do not promise a tool-based deliverable until the path is confirmed.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
tool-discovery.mdc
---
description: "MiniMax M3 + Cursor 3.7 tool discovery: runtime inventory, canvases, Design Mode inputs, schema-first MCP use, MCP Apps structured content, capability mapping, and safe fallbacks."
alwaysApply: false
---

# Tool Discovery (Cursor 3.7 + M3)

Current through **Cursor 3.7** (Jun 2026). Use this rule when the runtime surface is unfamiliar, tool-heavy, or likely to differ across environments.

## Discovery Order

Inventory the current surface in this order:

1. direct tools exposed in the prompt (`Read`, `Grep`, `Task`, `Await`, etc. — names vary by surface; the live list wins)
2. browser, canvas, and other IDE-native surfaces exposed in the prompt
   - **Browser MCP** (`cursor-ide-browser`): snapshot-first automation; read the server's tool descriptors
   - **Canvas** (`.canvas.tsx`): confirm the session supports canvases before promising one; load the `canvas` skill before authoring
   - **Design Mode** (3.7): user-driven in browser or canvas — not an agent tool; when the user has selected or annotated elements, treat that as the primary input for UI edits
3. **Cursor Marketplace** (or team marketplace) plugins already installed — same schema-first rules as other MCPs; discover tools and resources from each plugin's descriptors before calling
4. MCP tools and resources with their current schemas (including project-configured servers under the session's MCP descriptor path)
5. web docs only when discovery or versions still remain unclear

For delegation, read the live `Task` schema for available `subagent_type` values and whether nesting or `run_in_background` applies (Multitask Mode expects background runs).

## Schema-First Use

- Read the current schema or descriptor before calling unfamiliar MCP tools.
- Match the task step to the smallest tool that can honestly do it.
- Do not infer hidden parameters or old wrapper names from memory.
- **MCP Apps structured content**: when a tool returns structured content, prefer the structured form over reconstructing from prose. When the structured data *is* the deliverable, route it to a **canvas** rather than a markdown table in chat.

## Capability Mapping

Before acting, translate the task into:

- what must be read
- what must be changed
- what must be verified
- which currently exposed tool best serves each step

For visual-fidelity work, also translate into: which image/frame must be read, which **Design Mode** selections the user provided (if any), and which post-change frame must be re-read after editing.

For analytical or tabular deliverables, also translate into: whether a **canvas** is the right surface (audit, metrics breakdown, MCP query results) vs. inline chat prose.

## Discovery Loop

```text
1. Inventory current tools
2. Read the schema for unfamiliar options
3. Choose the smallest viable tool
4. Try the narrowest valid call
5. Verify the result
6. Escalate or fall back only if needed
```

## Safe Fallbacks

- If a tool is unavailable, say so and choose the next best exposed path.
- If discovery fails, simplify the task step and re-check the current surface.
- Do not promise a tool-based deliverable until the path is confirmed.

## Anti-Patterns

- assuming a tool exists because it existed in another environment
- using shell as the first choice when a direct tool is exposed
- calling MCP tools without reading current schemas
- hiding tool uncertainty behind confident prose
- ignoring MCP Apps structured content and dumping it as prose or markdown tables when a canvas is available
- promising canvas, Design Mode, browser, or nested `Task` behavior before confirming the current session exposes it

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.