Learning resourcesReviewed · Pydantic

StackOne integration guide for Pydantic AI Harness

This guide shows Python developers how to connect Pydantic AI agents to business apps through StackOne, but human approval is not enabled by default. It covers account credentials, action discovery, tool filtering, multiple accounts and optional approval controls.

Researched 15 Nov 2026

In short.

This StackOne integration guide is for Python developers building Pydantic AI agents that use business apps, with human approval requiring explicit configuration. Each connection targets one linked account. The guide explains action discovery, individual action tools, account permissions, multiple-account naming and connection customization. It provides implementation examples, but no executed results, performance measurements, pricing or licensing terms.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected page at [https://pydantic.dev/docs/ai/harness/stackone/index.md], including its notices, examples and API reference. Linked documentation, the diagram image file itself and the GitHub implementation are excluded; the diagram's text description captured in the page, which names the api.stackone.com/mcp endpoint and the x-account-id header, is included. The page's navigation and query-parameter notices do not establish additional functionality. Nothing was installed or executed. Live provider behavior, approval enforcement, runtime compatibility, performance, costs and licensing remain unassessed.

The overview

Identity

The resource is Pydantic's documentation for the StackOne capability in Pydantic AI Harness and its lower-level StackOneToolset API. StackOne connects an agent to actions in an authenticated business application account, with BambooHR, Salesforce and Zendesk given as examples. The selected guide is at [https://pydantic.dev/docs/ai/harness/stackone/index.md].

Assessment

The guide provides a concrete starting point for a Pydantic AI application that needs access to a user's linked business software. Its useful details include how to control the tools presented to the model, avoid naming conflicts between accounts and request approval for sensitive operations. Suitability depends on whether the required connector and actions are available for the linked account; the page does not establish exhaustive provider coverage or operational reliability.

Users

The main audience is Python developers adding business application actions to Pydantic AI agents, including workflows involving employee, customer or support data. Beginners will need to understand environment variables, API credentials and agent configuration. Initial connector setup and account linking require separate StackOne documentation, so this page alone does not cover the entire onboarding process.

Capabilities

An agent can search for enabled actions and execute them, or receive a separate tool definition for each selected action. Additional options include filtering action names, loading tools only when needed, attaching tool metadata and defining the capability through YAML or JSON agent specifications.

The guide also shows combinations with PrefixTools for account-specific tool names and ToolOutputLimits for oversized responses. Human approval is available through StackOneToolset.approval_required(), with deferred approval handling implemented by the application.

Using it

Requirements

Setup requires a configured StackOne connector, a linked account ID, a StackOne API key authorized to execute actions and credentials for the agent's model provider. The examples install pydantic-ai-harness[stackone] and pydantic-ai-slim[openai,spec]. Other model providers need their corresponding extra. Minimum Python version, pinned package versions, rate limits and hosting requirements are not specified.

Mechanism

The capability connects through MCP, an interface that exposes external operations as agent tools, to [https://api.stackone.com/mcp]. Requests use a StackOne API key and an x-account-id header identifying one linked account. StackOne then performs actions against that account's provider.

The default search_execute mode exposes two tools: one searches the action catalog and returns action IDs, and the other executes an ID. IDs must come from the search result. Supplying actions selects individual mode, which exposes matching tools and their schemas. Patterns use case-insensitive Python fnmatch matching against the full connector_action_entity name. Combining actions with explicit search_execute mode raises an error.

URL-based connections require HTTPS. The toolset adds authentication and account headers and supplies the tool-mode query parameter when absent. A conflicting parameter raises an error; signed search_execute URLs must contain the intended mode before signing. Prebuilt clients retain their own transport, authentication, account selection and tool-mode configuration.

Setup

Configure the connector and link an account in StackOne, initially enabling only the read actions needed. The documented pip command is pip install "pydantic-ai-harness[stackone]" "pydantic-ai-slim[openai,spec]". The page also provides an equivalent uv add command.

Set STACKONE_API_KEY, STACKONE_ACCOUNT_ID and the model provider's credentials. StackOne reads STACKONE_API_KEY automatically; the example reads STACKONE_ACCOUNT_ID explicitly from the environment. Add StackOne(account_id=...) to the agent's capabilities. For agent-spec files, keep credentials in environment variables and pass custom_capability_types=[StackOne] when loading the file.

Example

The Python example creates an Agent using the model identifier openai:gpt-6.1-sol and a StackOne capability scoped to the account ID from the environment. It asks, 'List the first 5 employees', then prints result.output. With default settings, the model searches for an appropriate action before executing its returned ID. The page supplies no actual response; results depend on the linked provider and its data. This example was not executed.

Assessment & evidence

Limitations

StackOne's enabled actions for the linked account are the documented primary access control. The actions option limits which individual tools the model sees. Approval is not automatic: operations needing confirmation require the approval wrapper and application handling of deferred requests. Large provider responses can require the separate ToolOutputLimits capability.

Each capability represents one linked account. Two capabilities for the same account derive the same ID and are rejected unless the ID is overridden. Distinct IDs do not prevent tool-name collisions between different accounts on the same provider; the guide uses PrefixTools to resolve those collisions.

The page does not establish retry behavior, recovery from provider errors, data retention, latency or action success rates. These remain unassessed.

Design tradeoffs

The documented modes address different tool catalogs. Search_execute keeps the exposed tool count at two even when many actions are enabled. Individual mode provides action-specific schemas and supports per-tool behavior, but sends every selected schema to the model. This suggests using search_execute for broad catalogs and filtered individual tools for narrowly defined tasks. Actual token savings, accuracy differences and performance benefits are not measured.

Alternatives

Within this integration, StackOne provides capability instructions and agent-spec support, while StackOneToolset provides direct toolset access for wrappers such as approval_required(). Deferred loading is another option when tools should enter the model context only when needed. The page does not compare external integration products, so relative pricing, connector coverage and maintenance effort are unknown.

Evidence

The evidence is the complete selected documentation page, including its installation instructions, examples, operational caveats and API references for StackOne and StackOneToolset.

These findings describe documented behavior. No installation, code execution or live account interaction was performed. Linked implementation code, external setup guides and independent performance evidence were not assessed.

Access & freshness

Costs

Costs are unknown. The page states that StackOne and model-provider API credentials are needed, but gives no prices, free allowances, subscription requirements or example usage costs. Any charges associated with the connected business application are also unspecified. The evidence does not support a total cost estimate or a claim that the integration is free.

Rights

The selected page contains no license text or explicit redistribution permission. It links to implementation source, but that linked code and its license are outside the selected scope. Documentation reuse rights, package licensing, StackOne service terms and rights governing connected business data are therefore unknown from this evidence.

Freshness

The page was captured on 15 November 2026 at 11:55:30.679 UTC. Its publication date and exact package version are not supplied. It warns that Pydantic AI Harness APIs may change between minor releases during 0.x, with deprecation warnings and release-note migration guidance. Compatibility with a particular installed release and subsequent changes to provider actions are unknown.

Next steps

Confirm that StackOne supports the required provider and exact actions. Start with a controlled linked account exposing only the read actions needed, then choose search_execute for catalog discovery or filtered individual tools for specific operations. Check returned records against the intended account before expanding access.

For operations needing human confirmation, configure StackOneToolset.approval_required() and handle deferred approvals. Use prefixes for accounts with overlapping tool names and consider output limits for large results. Confirm package compatibility, service pricing, licensing and data-handling terms before adoption; the selected page does not resolve them.

Evidence for this report

selected-page.txtselected · checked 2026-11-15