Skip to content

Config Creation Toolset

Tools for writing configuration files (for example agent manifests) and validating them against a JSON schema, so an agent can create configurations that are known to be valid.

Basic Usage

agents:
  admin:
    model: openai:gpt-5-mini
    tools:
      - type: config_creation
        schema_path: https://raw.githubusercontent.com/phil65/agentpool/main/schema/config-schema.json
        markup: yaml

Available Tools

Config Creation Tools

create_config

Create and validate a YAML configuration. Returns validation result and any errors.

Parameters:

Name Type Required Description
content string ✓ The configuration content in the configured markup format

Hints: idempotent

Category: edit

show_schema_as_code

Show the JSON schema as Python Pydantic code.

Hints: read-only, idempotent

Category: read

list_schema

List contents at a path in the JSON schema.

Parameters:

Name Type Required Description
path string Path to list (e.g. '/', '/$defs', '/$defs/AgentConfig/properties')

Hints: read-only, idempotent

Category: read

read_schema_node

Read the JSON schema at a specific path.

Parameters:

Name Type Required Description
path string ✓ Path to read (e.g. '/$defs/AgentConfig', '/properties/agents')

Hints: read-only, idempotent

Category: read

Configuration Reference

Config Creation Toolset

Configuration for config creation with schema validation.

Config Creation Toolset (YAML)
1
2
3
4
5
6
7
8
tools:
- type: config_creation
  schema_path:  # Path or URL to the JSON schema for validation.
    path: schema/config-schema.json
    protocol: ''
    storage_options: {}
  markup: yaml  # Markup language for the configuration (yaml, json, toml).
  namespace: null  # Optional namespace prefix for tool names