tool-use

Installation
SKILL.md

Tool Use

Tool Use (or Function Calling) is the core mechanism of agency. It allows an LLM to recognize when it needs external information or needs to perform an action. Instead of hallucinating an answer, the model outputs a structured command (like a JSON object) to call a specific function (e.g., get_weather(city="London")). The system executes the function and feeds the result back to the model.

When to Use

  • Real-time Data: When the answer requires current information (stock prices, weather, sports scores).
  • Computational Tasks: When precise math or data processing is needed (using a calculator or Python REPL).
  • System Interaction: When the agent needs to modify the environment (sending emails, updating databases, creating files).
  • Private Data Access: Querying internal knowledge bases or APIs.

Use Cases

  • Search: Integrating Google Search or Bing to answer current events questions.
  • Code Execution: Using a Python sandbox to generate charts or analyze CSV files.
  • API Integration: Connecting to Slack, Jira, or GitHub to automate workflows.

Implementation Pattern

Related skills

More from lauraflorentin/skills-marketplace

Installs
2
First Seen
Apr 17, 2026