agentleFS
NVIDIAKnown publisherNVIDIA/NeMo-Agent-Toolkit/.cursor/rules/nat-workflows/add-tools.mdc

NeMo-Agent-Toolkit / nat-workflows

Cursor rule2.7k starsChanged 16 months agoApache-2.0View on GitHub

Follow these rules when the user's request involves adding, integrating, implementing, or configuring tools for NeMo Agent Toolkit workflows

  • Reads credentials
  • Installs packages

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 4 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/NeMo-Agent-Toolkit repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/NeMo-Agent-Toolkit

The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 15

Talked about on GitHub (15 times).

On GitHub · 15

10 more on GitHub

The file

We split this add-tools.mdc into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When adding multiple instances of the same tool type, rename existing tools to be more specific:

    line 26
  2. Very specific:

    Always update the workflow.tool_names section to include new tools:

    line 55
  3. Distinctive:

    Use descriptive names that indicate the tool's purpose

    line 130
  4. Distinctive:

    Avoid generic names when you have multiple similar tools

    line 131
  5. Distinctive:

    Use imperative language: "For any questions about X, you must use this tool!"

    line 137
  6. Very specific:

    Use consistent embedder_name across similar tools

    line 140
  7. Very specific:

    Tool Not Found: Ensure the tool name in workflow.tool_names matches the key in functions

    line 152

≈ “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
add-tools.mdc
---
description: Follow these rules when the user's request involves adding, integrating, implementing, or configuring tools for NeMo Agent Toolkit workflows
globs:
alwaysApply: false
---
# Adding Tools to NeMo Agent Toolkit Workflows

## Overview

Adding tools to workflows requires copying and modifying the workflow configuration file to include new tool definitions and update the tool names list.

## Step-by-Step Process

### 1. Identify Available Tools
```bash
# Query all available function types
nat info components -t function

# Query specific function details
nat info components -t function -q webpage_query
```

### 2. Update Configuration File

#### Adding Multiple Instances of Same Tool Type
When adding multiple instances of the same tool type, rename existing tools to be more specific:

```yaml
# Before - single tool
functions:
  webpage_query:
    _type: webpage_query
    webpage_url: https://docs.smith.langchain.com
    description: "Search for information about LangSmith..."
    embedder_name: nemotron-3-embed-1b
    chunk_size: 512

# After - multiple tools
functions:
  langsmith_query:  # Renamed for clarity
    _type: webpage_query
    webpage_url: https://docs.smith.langchain.com
    description: "Search for information about LangSmith. For any questions about LangSmith, you must use this tool!"
    embedder_name: nemotron-3-embed-1b
    chunk_size: 512
  langgraph_query:  # New tool
    _type: webpage_query
    webpage_url: https://langchain-ai.github.io/langgraph/tutorials/introduction
    description: "Search for information about LangGraph. For any questions about LangGraph, you must use this tool!"
    embedder_name: nemotron-3-embed-1b
    chunk_size: 512
```

#### Update Workflow Tool Names
Always update the `workflow.tool_names` section to include new tools:

```yaml
# Before
workflow:
  _type: react_agent
  tool_names: [webpage_query, current_datetime]

# After
workflow:
  _type: react_agent
  tool_names: [langsmith_query, langgraph_query, current_datetime]
```

## Alternative: Using Web Search Tools

### Installing Web Search Dependencies
```bash
# Install the provider-managed Tavily plugin for web search
uv pip install nemo-agent-toolkit-tavily
```

### Using Tavily Internet Search
```yaml
function_groups:
  internet_search:
    _type: tavily
    include: [search]

functions:
  current_datetime:
    _type: current_datetime

workflow:
  _type: react_agent
  tool_names: [internet_search__search, current_datetime]
```

### Required Environment Variables
```bash
# Set up Tavily API key
export TAVILY_API_KEY=<YOUR_TAVILY_API_KEY>
```

## Common Tool Types and Patterns

### 1. Webpage Query Tools
```yaml
tool_name:
  _type: webpage_query
  webpage_url: https://example.com
  description: "Descriptive text for when to use this tool"
  embedder_name: nemotron-3-embed-1b
  chunk_size: 512
```

### 2. Internet Search Tools
```yaml
function_groups:
  search_tool:
    _type: tavily
    include: [search]
    # Reference the exposed tool as search_tool__search in tool_names
```

### 3. Utility Tools
```yaml
datetime_tool:
  _type: current_datetime
  # No additional parameters needed
```

## Best Practices

1. **Tool Naming**:
   - Use descriptive names that indicate the tool's purpose
   - Avoid generic names when you have multiple similar tools
   - Example: `langsmith_query` vs `webpage_query`

2. **Descriptions**:
   - Be specific about when the tool should be used
   - Include the domain or type of information the tool provides
   - Use imperative language: "For any questions about X, you must use this tool!"

3. **Configuration Consistency**:
   - Use consistent `embedder_name` across similar tools
   - Set appropriate `chunk_size` based on content type
   - Maintain consistent parameter formatting

4. **Testing**:
   ```bash
   # Test the updated workflow
   nat run --config_file path/to/updated_config.yml --input "Test question"
   ```

## Common Issues and Solutions

1. **Tool Not Found**: Ensure the tool name in `workflow.tool_names` matches the key in `functions`
2. **Missing Dependencies**: Install required packages for specific tool types
3. **API Key Issues**: Set required environment variables before running
4. **Configuration Syntax**: Validate YAML syntax and indentation

## Example Complete Configuration

```yaml
functions:
  langsmith_docs:
    _type: webpage_query
    webpage_url: https://docs.smith.langchain.com
    description: "Search for information about LangSmith. For any questions about LangSmith, you must use this tool!"
    embedder_name: nemotron-3-embed-1b
    chunk_size: 512
  langgraph_docs:
    _type: webpage_query
    webpage_url: https://langchain-ai.github.io/langgraph/tutorials/introduction
    description: "Search for information about LangGraph. For any questions about LangGraph, you must use this tool!"
    embedder_name: nemotron-3-embed-1b
    chunk_size: 512
  current_datetime:
    _type: current_datetime

llms:
  nim_llm:
    _type: nim
    model_name: nvidia/nemotron-3-super-120b-a12b
    temperature: 0.0

embedders:
  nemotron-3-embed-1b:
    _type: nim
    model_name: nvidia/nemotron-3-embed-1b

workflow:
  _type: react_agent
  tool_names: [langsmith_docs, langgraph_docs, current_datetime]
  llm_name: nim_llm
  verbose: true
  parse_agent_response_max_retries: 3
```

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.