Skip to content

Add StackOne plugin for Google ADK - #1

Merged
Shashikant86 merged 10 commits into
mainfrom
google-adk-plugin
Feb 17, 2026
Merged

Shashikant86 merged 10 commits into
mainfrom
google-adk-plugin

Conversation

@Shashikant86

Copy link
Copy Markdown
Contributor

Summary

Initial implementation of stackone-adk, a Google ADK plugin that connects agents to 200+ SaaS providers via StackOne's unified API gateway. This plugin dynamically discovers available tools from StackOne's API and exposes them as native Google ADK tools.

What's included

  • Core plugin : StackOnePlugin class implementing Google ADK's BasePlugin interface with
    lifecycle hooks and tool management
  • Tool wrapper : StackOneTool class that bridges StackOne tool definitions to ADK's
    BaseTool interface
  • Filtering : Filter tools by provider (providers), action pattern with glob support
    (actions), and account ID (account_ids)
  • Examples : Calendly scheduling agent and multi-provider HRIS agent (HiBob + BambooHR.. NOT TESTED )
  • Tests : Unit tests for plugin and tool wrapper with full mocking

Dependencies

Using latest from both

  • google-adk>=1.25.0
  • stackone-ai[mcp]>=2.3.1

Next steps

Running locally

git clone https://github.com/StackOneHQ/stackone-adk-plugin.git
cd stackone-adk-plugin
pip install -e ".[dev]"

Set your API keys

export STACKONE_API_KEY="your-stackone-api-key"
export GOOGLE_API_KEY="your-google-api-key"

Run an example

Make sure you have Calendly connector or update agent with you connectors

  python examples/calendly_agent.py

Test plan

  • pip install -e ".[dev]" installs cleanly
  • pytest passes all tests
  • ruff check reports no lint errors
  • mypy stackone_adk/ passes type checking
  • Example agents run with valid API keys

Comment thread stackone_adk/plugin.py Outdated
return [a["id"] for a in accounts if a.get("id")]


def _build_utility_tools(tools: Any) -> list[StackOneTool]:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we have to rebuild it. can we not import the StackOne Python SDK directly?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add the keyword/semantic search later.. Its due to SDK needs to return the parameter scheme and needs work there .. I have removed the keyword search for now ..

Comment thread stackone_adk/tools.py Outdated
}


def _convert_property_to_schema(prop: dict[str, Any]) -> types.Schema:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if this can be simplified or use some tooling from ADK to do this as I'm assuming there are popular converters

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there are couple of handy methods in the ADK that can simply this a lot. Using this directly has some limitation as SDK still needs parameter schemas but remove this manual conversation now. Good spot. Clade Code told me that conversion has too be manual as it couldn't find conversation tools in ADK!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@willleeney Appreciate your opinion on this PR. I have removed the manual parsing and used some of the methods from ADK but still needs little bit of parsing. It would be great our SDK have

     type: str = Field(description="JSON Schema type")
     properties: JsonDict = Field(description="JSON Schema properties")
     required: list[str] = Field(default_factory=list, description="Required property names")

This will reduce any further parsing from any providers ..

@glebedel glebedel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - make sure every example works too once merged

@Shashikant86

Copy link
Copy Markdown
Contributor Author

Cool. Removed HRIS example to keep the plugin simple. Merging this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants