Skip to content
Back to skills

Llm Tool Calling

ASecurity

Designs tool schemas and the call loop for LLM function calling, with argument validation, error feedback and a hard step limit.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsrustgoshellsql

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill llm-tool-calling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llm Tool Calling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Llm Tool Calling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-llm-tool-calling/badge)](https://www.skillsdirectory.com/skills/workspace-templates-llm-tool-calling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: llm-tool-calling
description: Designs tool schemas and the call loop for LLM function calling, with argument validation, error feedback and a hard step limit.
---

# LLM tool calling

Design the tool surface before writing the loop. The model only sees names, descriptions and schemas, so those are the interface.

## Steps

1. List the real actions the app needs. Merge near-duplicates; five sharp tools beat fifteen overlapping ones.
2. Name each tool as verb plus object (`search_orders`, not `orderTool`). Write the description as when to use it and when not to, with one example.
3. Give every parameter a type, an enum or range where possible, and a description. Mark only truly required fields as required. Prefer IDs the model got from an earlier result over free text.
4. Validate arguments on the server with a schema library before running anything. Never trust the model's JSON, and never build SQL or shell commands from it.
5. Return failures as tool results, not exceptions: say what was wrong and what a valid call looks like, so the model can retry once.
6. Write the loop with a maximum step count (6 to 10 is typical), a total token budget and a repeat check that aborts when the same call with the same arguments appears twice.
7. Require confirmation in code, not in the prompt, before any tool that writes, sends or deletes.

## Rules

- Tool results must be short. Trim, paginate and strip fields the model does not need.
- Log every call with arguments, result size and latency.
- Test with adversarial prompts: missing information, two tools that fit, a request no tool covers.

## Report

Show the final tool list with schemas, the loop code, and the limits chosen with a reason for each.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.