Skip to content
Back to skills

Tool Definition

ASecurity

Define a new agent tool/function schema the LLM can call reliably

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
ai-agentsrustgosecurity

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add black141312/ada --skill tool-definition --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tool Definition?

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

Security grade badge for Tool Definition
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/black141312-tool-definition/badge)](https://www.skillsdirectory.com/skills/black141312-tool-definition)

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: tool-definition
description: Define a new agent tool/function schema the LLM can call reliably
category: agent-llm
---

# Tool Definition

Use this when adding a callable tool/function to an agent so the model invokes it with correct arguments and at the right time.

1. Name the tool as a clear verb_noun (e.g. `search_orders`, `create_invoice`); the name is the model's primary cue for when to call it.
2. Write a description that states what it does, when to use it, and when NOT to use it — this matters more than the schema for routing accuracy.
3. Define a JSON-Schema for inputs: type every field, mark required vs optional, use enums for fixed choices, and add per-field descriptions.
4. Constrain inputs to reduce ambiguity — prefer enums over free text, give formats (date, uri) and examples in field descriptions.
5. Specify the return shape and keep it compact: return only what the model needs downstream, not raw dumps.
6. Test with adversarial prompts (ambiguous, missing args, wrong tool) and confirm the model selects correctly and fills required fields.

## Rules
- One tool = one job; if the description needs "and", split it into two tools.
- Make required fields truly required; optional-but-important fields get a description telling the model when to set them.
- Avoid overlapping tools with near-identical descriptions — the model will pick at random; disambiguate explicitly.
- Echo back enough context in the result for multi-step reasoning, but truncate large payloads (paginate or summarize).
- Never trust model-supplied arguments for security decisions; re-validate and authorize server-side.

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.

Comments

Loading comments…

Newsletter

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