Logo: Tool Design

Tool Design

Communautéit
nahid-sparktales
tool-design

Design the tools a model calls — names, parameter shapes, what a result returns, and error text written as an instruction the model can act on. Use when adding or reshaping a tool or function an LLM invokes, when an agent keeps calling the wrong tool or passing malformed arguments, or when reviewing a tool surface someone else defined. Not for building the MCP server that hosts the tools (mcp-design), not for forcing a model's final answer into a schema (structured-output), and not for prompt wording outside the tool definition.

Add to TypingMind

Iwwersiicht

Editeurnahid-sparktales
Repositoryagent-dispatcher
Skill-Nummtool-design
Stären
58
Forks
5
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    nahid-sparktales huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Tool Design an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/tool-design
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/ai/tool-design .claude/skills/tool-design
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Tool Design an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Tool Design automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Tool Design net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Tool design

A tool definition is a prompt. The model never sees your implementation — it sees the name, the description, the parameter schema, and whatever came back last time. Most "the model is bad at using tools" is a tool that told the model the wrong thing.

When this fires

Adding a tool to an agent, changing an existing tool's parameters or return value, or diagnosing an agent that picks the wrong tool, passes bad arguments, loops, or stalls after a call. It does not fire for an internal function no model ever invokes.

Procedure

  1. Start from the task, not the API. List the things the agent must accomplish, then define one tool per accomplishment. A thin one-to-one wrapper over an existing HTTP API pushes the orchestration into the model, which pays for it in extra turns and wrong guesses. Prefer one schedule_meeting over list_calendars + get_availability + create_event unless the agent genuinely needs the intermediate steps.
  2. Count the tools. A large, overlapping surface is the main cause of wrong-tool selection. If two tools could plausibly answer the same request, either merge them or make each description state explicitly when the other one is correct.
  3. Name it for what it does, from the caller's side. Verb plus object, unambiguous when read alone in a list: cancel_order, not order_v2 or process. Names sharing a prefix by domain (docs_search, docs_create) help the model group them; near-identical names across domains defeat it.
  4. Write the description to be selected correctly, not to be complete. First line: what it does and when to reach for it. Then the boundary — what it does not do and which tool covers that instead. Then anything non-obvious: required ordering, what must be fetched first, side effects. Write it for a competent stranger with no access to your codebase.
  5. Shape parameters so a wrong call is hard to express. Flat over nested. Enums over free strings whenever the set is known. Explicit types, formats and units in the field description ("ISO 8601 date, e.g. 2026-03-01", "amount in minor units"). Required only what is truly required; every optional parameter is another thing to get wrong. Never accept a raw query language, a SQL string or a path the model composed unless the implementation constrains it.
  6. Do not make the model supply what you already know. Ids from the session, the current user, the project root, an auth token — bind them server-side. A parameter the model must invent is a parameter it will eventually hallucinate.
  7. Return what the model needs for the next step, and cut the rest. Resolved human-readable values over opaque ids; the fields that drive a decision over the full record. On a paged or truncated result, say so in the payload and say how to get more. A response that blows the context window is a failed call, even when the API returned 200.
  8. Write errors as instructions. "Invalid request" teaches nothing. "No customer with id 'X'; search by email with find_customer first" gets the next call right. Name what was wrong, what is valid, and what to do now. Return it as a normal tool result the model can read and act on — a thrown exception that never reaches the model turns a recoverable mistake into a dead turn.
  9. Distinguish empty from broken. Zero results, a permission denial, an upstream outage and a malformed argument must be four distinguishable responses. Collapsing them makes the agent retry the same call forever or give up on data that exists.
  10. Make the destructive ones announce themselves. A tool that deletes, sends, publishes, charges or deploys says so in its first sentence, and the agent stops and asks before it fires. A tool description never grants the permission — it only makes the consequence visible. Where the operation can be repeated, give it an idempotency key rather than hoping for one call.
  11. Exercise it before believing it. Give the model five to ten realistic requests, including the ambiguous ones and the ones that should select a different tool, and read the actual calls: which tool, which arguments, what it did with the result and with the error. Fix the description and the schema, not the prompt around them, and run the set again.

Checklist

  • Each tool maps to a task the agent must accomplish, not to one endpoint
  • No two tools plausibly answer the same request without saying which wins
  • Names readable in isolation; descriptions state when not to use the tool
  • Enums and formats used wherever the value set is known; units stated
  • Nothing required from the model that the server already knows
  • Results carry the fields the next step needs, truncation is declared, size bounded
  • Every error names the cause and the corrective action, and reaches the model as a result
  • Empty, denied, upstream-failed and malformed are distinguishable
  • Destructive and outward-facing tools are labelled, and stop for confirmation
  • Run against realistic requests, wrong-tool cases included, and the transcripts read

Failure handling

  • Wrong tool chosen — a description problem before a model problem. Add the boundary sentence to both tools. Overlap that cannot be written away should be a merge.
  • Malformed or invented arguments — tighten the schema first (enum, format, fewer optionals), then the field descriptions. A retry prompt that patches a loose schema will keep paying for it.
  • The agent loops on the same call — the error text is not actionable, or success and empty look alike. Read the exact tool result the model saw, not your log line.
  • It works in your handful of examples — that is executed, not tested. A tool surface is tested when a fixed set of requests runs against it and asserts the selected tool and arguments.
  • Unsure whether the framework supports a schema feature you want to rely on — check its current documentation rather than assuming. Silently dropped schema keywords fail as bad model behaviour.

Evidence to report

The tool list with each name, one-line purpose, and the boundary it cedes. The full schema of every added or changed tool. Real transcripts: the request, the tool chosen, the arguments, the returned payload, and at least one error path showing the model recovering. What was merely defined, what was executed once, and what has a repeatable selection check behind it.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Tool Design?

Design the tools a model calls — names, parameter shapes, what a result returns, and error text written as an instruction the model can act on. Use when adding or reshaping a tool or function an LLM invokes, when an agent keeps calling the wrong tool or passing malformed arguments, or when reviewing a tool surface someone else defined. Not for building the MCP server that hosts the tools (mcp-design), not for forcing a model's final answer into a schema (structured-output), and not for prompt wording outside the tool definition.

Firwat Tool Design op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Tool Design besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Tool Design an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/tool-design an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Tool Design benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Tool Design benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Tool Design domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Tool Design gratis?

Jo. nahid-sparktales huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇