Skip to content

API Reference parrot.handlers.studio.storage.services.tooling

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.handlers.studio.storage.services.tooling

View source

StudioToolingService (spec §2.5): FEAT-593 validation + secret split, persisted to ai_agent_tooling.

Alias AgentMCPServerSpec

Re-exported from parrot.tools.spec.AgentMCPServerSpec.

Alias NormalizedTooling

Re-exported from parrot.tools.spec.NormalizedTooling.

Alias StudioAgentRecord

Re-exported from parrot.handlers.studio.storage.models.StudioAgentRecord.

Alias StudioPartition

Re-exported from parrot.handlers.studio.storage.models.StudioPartition.

Alias StudioRepositories

Re-exported from parrot.handlers.studio.storage.repositories.StudioRepositories.

Alias StudioToolingGate

Re-exported from parrot.handlers.studio.storage.services._common.StudioToolingGate.

Alias StudioToolingRecord

Re-exported from parrot.handlers.studio.storage.models.StudioToolingRecord.

Class StudioToolingService

Tooling of a Studio agent. Every write: lock → final tooling → gate → vault → replace → commit.

Parameter Type Default Description
repos StudioRepositories
gate StudioToolingGate

Method StudioToolingService.load

The agent and its normalised tooling in the partition, or None.

load(part: StudioPartition, name: str) -> StudioToolingView | None

Parameter Type Default Description
part StudioPartition
name str

Returns: StudioToolingView | None

Method StudioToolingService.put_toolkit

Lock → final tooling → gate(write) → vault (ref-derived names) → replace → commit. Returns version.

put_toolkit(part: StudioPartition, name: str, slug: str, params: dict[str, Any], user_overridable: list[str], *, actor: str | None, guard: StudioWriteGuard) -> int

Parameter Type Default Description
part StudioPartition
name str
slug str
params dict[str, Any]
user_overridable list[str]
actor str | None
guard StudioWriteGuard

Returns: int

Method StudioToolingService.delete_toolkit

Remove one toolkit and its owner-scoped vault entry. Returns the new version.

delete_toolkit(part: StudioPartition, name: str, slug: str, *, actor: str | None, guard: StudioWriteGuard) -> int

Parameter Type Default Description
part StudioPartition
name str
slug str
actor str | None
guard StudioWriteGuard

Returns: int

Method StudioToolingService.put_mcp_servers

Replace the complete MCP server list (secret fields vaulted under the tooling ref). Returns the version.

put_mcp_servers(part: StudioPartition, name: str, servers: Sequence[dict[str, Any]], *, actor: str | None, guard: StudioWriteGuard) -> int

Parameter Type Default Description
part StudioPartition
name str
servers Sequence[dict[str, Any]]
actor str | None
guard StudioWriteGuard

Returns: int

Method StudioToolingService.replace_from_state

Persist an already-split tooling state (used by AgentToolingStore._persist). Returns the version.

replace_from_state(part: StudioPartition, name: str, tooling: NormalizedTooling, *, actor: str | None, guard: StudioWriteGuard) -> int

Parameter Type Default Description
part StudioPartition
name str
tooling NormalizedTooling
actor str | None
guard StudioWriteGuard

Returns: int

Class StudioToolingView

A Studio agent record and the tooling the builder would see for it.

Parameter Type Default Description
record StudioAgentRecord
tooling NormalizedTooling

Fields:

Field Type Default Description
record StudioAgentRecord
tooling NormalizedTooling

Alias StudioWriteGuard

Re-exported from parrot.handlers.studio.storage.models.StudioWriteGuard.

Alias ToolkitSpec

Re-exported from parrot.tools.spec.ToolkitSpec.

Alias delete_vault_credential

Re-exported from parrot.security.vault_utils.delete_vault_credential.

Alias flush_vault_writes

Re-exported from parrot.handlers.studio.tooling_store.flush_vault_writes.

Attribute logger

Function mcp_row

Persisted shape of an MCP server.

mcp_row(spec: AgentMCPServerSpec) -> StudioToolingRecord

Parameter Type Default Description
spec AgentMCPServerSpec

Returns: StudioToolingRecord

Alias normalized_tooling_for

Re-exported from parrot.handlers.studio.storage.services._common.normalized_tooling_for.

Alias reject_server_managed

Re-exported from parrot.handlers.studio.tooling_store.reject_server_managed.

Alias split_mcp_secrets

Re-exported from parrot.handlers.studio.tooling_store.split_mcp_secrets.

Alias split_toolkit_secrets

Re-exported from parrot.handlers.studio.tooling_store.split_toolkit_secrets.

Alias studio_transaction

Re-exported from parrot.handlers.studio.storage.repositories.studio_transaction.

Function toolkit_row

Persisted shape of a toolkit: secret-free config; refs and owner live in their own columns.

toolkit_row(spec: ToolkitSpec) -> StudioToolingRecord

Parameter Type Default Description
spec ToolkitSpec

Returns: StudioToolingRecord

Alias toolkit_schema_for

Re-exported from parrot.handlers.studio.tooling_store.toolkit_schema_for.

Alias toolkit_vault_name

Re-exported from parrot.tools.spec.toolkit_vault_name.

Alias validate_toolkit_params

Re-exported from parrot.handlers.studio.tooling_store.validate_toolkit_params.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally