Agent skill · software engineering · jeremylongshore

clade-embeddings-search

Implement tool use (function calling) with Claude to let it execute

Why this skill is useful

Provides specific implementation patterns for integrating Claude with external tools and APIs that the AI wouldn't reliably generate on its own.

What it needs

Requires @claude-ai/sdk installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Anthropic Tool Use (Function Calling) Overview Tool use lets Claude call functions you define — query databases, hit APIs, read files, do math. Claude decides when to call a tool, you execute it, and feed the result back. This is how you build Claude-powered agents. Note: Anthropic does not offer an embeddings API. For embeddings + vector search, pair Claude with a dedicated embedding model (OpenAI, Cohere, or Voyage). Prerequisites Completed clade-model-inference Understanding of JSON Schema for tool definitions Instructions Step 1: Define Tools Step 2: Send Message with Tools Step 3: Execute Tool and Return Result Python Example Agentic Tool Loop Output tooluse content blocks with name and input when Claude wants to call a tool stopreason: "tooluse" indicating Claude is waiting for tool results Final text response after all tool results are provided Complete agentic loop until stopreason: "endturn" Error Handling Error Cause Solution ------- ------- ---------- invalidrequesterror Bad tool schema Validate JSON Schema. inputschema must be a valid JSON Schema object tooluse with no matching name Claude hallucinated a tool Check tooluse.name against your defined tools before executing toolresult mismatch Wrong tooluseid Each toolresult must reference the exact id from the tooluse block Examples See Step 1 (tool definition), Step 2 (sending with tools), Step 3 (executing and returning results), and the full agentic tool loop example above. Resources Tool Use Guide Tool Use API Reference Next Steps See clade-common-errors for error handling patterns.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/clade-embeddings-search--895f3a

View the source on GitHub

Browse the @skills marketplace