Skip to content

API Reference parrot.tools.server_params

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

parrot.tools.server_params

View source

Server-managed parameter declarations (FEAT-622 M4).

A toolkit or tool declares server_managed_params — names the server fills, never the client JSON and never the LLM. A constructor param is one that appears in cls.__init__; every other declared name is a method param (a toolkit method's or a standalone tool's _execute parameter), filled per call.

Attribute SCOPE_SOURCES

Type: frozenset[str]

Class ServerParam

Where the server takes a param's value from; never the client or the LLM.

Fields:

Field Type Default Description
source ServerParamSource
key str | None None

Attribute ServerParamSource

Function constructor_server_params

Declared names that are cls.__init__ parameters.

constructor_server_params(cls: type) -> frozenset[str]

Returns: frozenset[str]

Function method_server_params

Declared names that are NOT constructor parameters (filled per call from the scope).

method_server_params(cls: type) -> dict[str, ServerParam]

Returns: dict[str, ServerParam]

Function validate_custom_args_schema

TypeError when a hand-written args_schema exposes a server-managed name (the LLM could set it).

validate_custom_args_schema(schema: object, declared: Mapping[str, ServerParam], owner: str) -> None

Parameter Type Default Description
schema object
declared Mapping[str, ServerParam]
owner str

Function validate_server_params

TypeError when a constructor param declares a scope source (instances are shared across callers).

validate_server_params(cls: type) -> None

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