glean-agent-toolkit-builder

Installation
SKILL.md

Glean Agent Toolkit — Tool Builder Guide

Tool Anatomy

Every tool in the toolkit is a Python function decorated with @tool_spec. The decorator:

  1. Extracts an input JSON schema from the function signature (via Pydantic)
  2. Creates a ToolSpec dataclass wrapping the function
  3. Registers the spec in the global Registry singleton
  4. Attaches .as_openai_tool(), .as_langchain_tool(), .as_crewai_tool(), .as_adk_tool() convenience methods

Minimal tool

from glean.agent_toolkit.decorators import tool_spec
from glean.agent_toolkit.context import GleanContext

@tool_spec(
    name="my_tool",
Related skills
Installs
1
GitHub Stars
56
First Seen
Apr 29, 2026