Discovery and Caching
Tools are discovered and cached once when users connect your integration.Initial Connection
When a user adds your integration in Settings → Integrations:- Poke connects to your server via Streamable HTTP or SSE
- If OAuth is required, Poke initiates the auth flow
- Once connected, Poke calls
tools/list - Tool schemas are cached for the connection lifetime
- The execution agent can now see your tools when planning tasks
During Usage
When a user asks a question:- The execution agent sees cached tool schemas for all connected integrations
- It evaluates which tools are relevant based on user intent, tool descriptions, and server instructions
- If your integration is selected, a task agent spawns and calls
tools/call - Results flow back through the task agent to the execution agent to the user
Disconnection
When a user disconnects your integration:- Cached tool schemas are cleared
- Poke stops calling your server
- Your tools are no longer available to the execution agent
Schema Updates
Tool changes won’t appear in existing connections. Users must disconnect and reconnect to pick up schema changes. Plan accordingly.Handling Schema Changes
If you must change schemas: Maintain backward compatibility. Support both old and new parameter formats in your tool implementations. This lets existing connections continue working while new connections use updated schemas.Cache Invalidation
Currently, the only way to invalidate the cache is user action: disconnect and reconnect. Future versions of Poke may support server-initiated cache invalidation or automatic schema refresh. For now, design schemas carefully and plan for backward compatibility.Best Practices
Design schemas carefully before launch. Since updates require users to reconnect, get schemas right the first time. Version your server. Use semantic versioning in your server metadata to track changes:Next Steps
- Authentication - Understand how Poke handles auth throughout the connection lifecycle
- Tool Design Philosophy - Build tools optimized for Poke’s architecture
- Quick Start - Build your first integration