Tools and integrations

From VectorSpaceLab/AREX-Skill · View interactive version

Tools and integrations is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Bind and troubleshoot ADK Python tools, ToolContext, long-running and confirmation tools, auth, MCP/OpenAPI/Google API/cloud integrations, A2A helpers, and optional extras.

How to use this skill

Skill file

ADK Tools and Integrations

Use this sub-skill when a user asks to add, wrap, authenticate, expose, or debug tools and integration toolsets in an ADK Python agent.

Route Here

Route Elsewhere

Quick Start

  1. Prefer bare callables for simple tools; wrap with FunctionTool(func=..., require_confirmation=...) only when you need confirmation or explicit tool object behavior.
  2. Add tool_context: ToolContext only when the tool needs state, artifacts, credentials, confirmation, transfer actions, or workflow node helpers; the parameter must be named tool_context.
  3. Return JSON-serializable dictionaries for structured tool results; return {"error": "..."} when the model should see a recoverable tool failure.
  4. Use LongRunningFunctionTool for work that returns pending status or pauses for external input; do not retry the same long-running call unless the returned event requests it.
  5. Treat MCP, cloud, database, and A2A helpers as optional-extra surfaces; first run the bundled inspection script before assuming an import is available.
from google.adk import Agent
from google.adk.tools import FunctionTool, ToolContext


def transfer_funds(amount: float, recipient: str, tool_context: ToolContext):
  """Transfer funds after ADK collects confirmation."""
  return {"status": "scheduled", "amount": amount, "recipient": recipient}


root_agent = Agent(
    name="finance_agent",
    model="gemini-3.5-flash",
    instruction="Use tools for account operations and explain the result.",
    tools=[FunctionTool(func=transfer_funds, require_confirmation=True)],
)

References

Tooling Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.