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:
- Extracts an input JSON schema from the function signature (via Pydantic)
- Creates a
ToolSpecdataclass wrapping the function - Registers the spec in the global
Registrysingleton - 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