Skip to content

Typed output schemas: write tools (5) #28

Description

@tuanle96

Follow the pattern in src/odoo_mcp/schemas.py (v1.1 typed the 10 read tools): add Pydantic response models for preview_write, validate_write, execute_approved_write, chatter_post, execute_method in tools_write.py and switch their return annotations. All payload fields Optional, extra='allow', runtime keeps returning the dict envelope. Add a marker-field assertion to tests/test_schemas.py::TYPED_READ_TOOLS-style table. Guide: docs/adding-a-tool.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions