Skip to content

API Reference parrot_tools.wiki.schema

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

parrot_tools.wiki.schema

View source

Schema plane tools and toolkit (moved from parrot.knowledge.wiki.schema — FEAT-540 M3).

Class SchemaPlaneToolkit

Read-only access to the SQL schema plane: lookup, search, neighbors, and sources.

Parameter Type Default Description
service SchemaPlaneService
**kwargs Any {}

Method SchemaPlaneToolkit.lookup

Look up one table (DDL, columns, relations, annotations, age, stale).

lookup(ref: str) -> dict[str, Any]

Parameter Type Default Description
ref str

Returns: dict[str, Any]

Method SchemaPlaneToolkit.search

Full-text search over table names, column names and comments.

search(query: str, limit: int = 20) -> list[dict[str, Any]]

Parameter Type Default Description
query str
limit int 20

Returns: list[dict[str, Any]]

Method SchemaPlaneToolkit.neighbors

Foreign-key join paths from a table up to depth hops.

neighbors(ref: str, depth: int = 1) -> list[dict[str, Any]]

Parameter Type Default Description
ref str
depth int 1

Returns: list[dict[str, Any]]

Method SchemaPlaneToolkit.sources

Declared SQL sources (alias, dialect, schemas, and DSN env-var name).

sources() -> list[dict[str, Any]]

Returns: list[dict[str, Any]]

Class WikiSchemaLookupTool

Look up one table in the schema plane: DDL, columns, relations, annotations, age and staleness.

Parameter Type Default Description
service SchemaPlaneService
annotation_store Optional[BaseWikiStore] None

Class WikiSchemaNeighborsTool

Foreign-key join paths from a table, up to depth hops, each with the (src_column -> dst_column) pair.

Class WikiSchemaSearchTool

Full-text search over table names, column names and comments in the schema plane.

Class WikiSchemaSourcesTool

List the declared SQL sources (alias, dialect, schemas). DSNs are never exposed — only env-var names.

Function create_schema_tools

Return the four read tools bound to service; [] when no plane is available.

create_schema_tools(store: BaseWikiStore, root: Optional[Path], config: WikiProjectConfig, service: Optional[SchemaPlaneService] = None) -> list[AbstractTool]

Parameter Type Default Description
store BaseWikiStore
root Optional[Path]
config WikiProjectConfig
service Optional[SchemaPlaneService] None

Returns: list[AbstractTool]

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