Flows category icon
MCP & Tooling
Beginner

Tool Descriptions That Steer the Model

Treat tool descriptions as prompt engineering: when-to-use guidance, negative cases, and worked examples that fix tool-choice errors.

3 steps9 verify checks45-60 minutesWorks with: emergent · chatgpt · claude · cursor
Start Guided Walkthrough

The Route

0/3 verified

Context Pack

Paste this first. It briefs the AI on requirements, constraints, and the Definition of Done before your first build prompt.

Context Pack
PROJECT CONTEXT:
My agent picks the wrong tool: shell commands where a search tool exists, whole-file rewrites where an edit tool fits. Framework analyses treat descriptions as the primary steering surface - models choose tools by reading them.

GOAL:
Rewrite every tool description with purpose, when-to-use, when-NOT-to-use, and examples - then verify tool choice improves on a routing test.

REQUIREMENTS:
- Every description answers: what it does, when to use it, when not to (and what to use instead)
- Overlapping tools explicitly disambiguated in both descriptions
- One concise worked example per non-trivial tool
- A tool-routing test: scenarios with a known-correct tool choice
- Description length discipline - steering, not documentation dumps

CONSTRAINTS:
- Descriptions are for the model, not the API docs - write to steer decisions
- Every 'do not use for X' must name the right alternative

DEFINITION OF DONE:
- A 12-scenario routing test passes with the correct tool chosen each time
- Every pair of overlapping tools cross-references the boundary between them
- Descriptions stay under a token budget while covering use/not-use/example
- Real misroutes from transcripts no longer reproduce

COMMON FAILURES TO AVOID:
- Descriptions that restate the tool name ('search_files: searches files')
- No negative guidance, so adjacent tools stay interchangeable in the model's eyes
- Documentation-length descriptions that bloat every single context
- Fixing misroutes with system-prompt patches instead of at the source

Paste this into your AI builder first. It teaches the AI what you want before you give it the build prompt.

Related routes

More MCP & Tooling flows that share ground with this one.

Flows category icon
MCP & Tooling

Build Your First MCP Server

Stand up a working MCP server exposing your own tools, connect a client, and validate the full call loop.

01Choose tools worth exposing and set up the SDK
02Implement the server and tools
03Connect a host and verify discovery

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps90-120 minutesIntermediate
Flows category icon
MCP & Tooling

Deferred Tool Loading

Stop paying context for tools the task never needs: load a core set eagerly and expand the toolset on demand.

01Measure usage and pick the core
02Build the catalog and discovery
03Implement dynamic registration

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-120 minutesAdvanced
Flows category icon
MCP & Tooling

Testing MCP Tools

Bring TDD discipline to MCP servers: unit-test handlers, protocol-test the surface, and contract-test against a real host.

01Separate logic from protocol glue
02Write the handler unit suite
03Add protocol and contract layers

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-90 minutesIntermediate

Made with Emergent