Simpletool

Latest version: v0.0.32

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.0.10

Added
- ready to use own SimpleTool class naming convention
- added empty __main__ to load module smoothly w/o any errors
- adding a context manager for resource cleanup (auto clean in __aexit__ method)
- implement timeout mechanisms for long-running tools
- remove `execute` def option from Tool class - make it SIMPLE -> handled by `run` method option (only)
- added own SimpleInputSchema class which is used to extract json schema from input types
- by default json schema extraction for SimpleInputSchema will remove `title` and `description` fields

0.0.7

Added
- test which cover decorator validate_tool_output - used to check if users return only valid list of elements types
- added FileContent which return encoded base64 file content and mime of this file
- added in ResourceContents mandatory `name` attribute and optional `description` attribute - as server needs to be able to identify resource also by the `name` (which will work as `id` in database)

Fixed
- run/execute should return Sequence (which is covariant) instead of List (which is invariant) - that should fully allow return mix of types with no linter warnings

0.0.6

Added
- allow List of mixtures of ContentT to be returned from tool

0.0.5

Fixed
- tool should from now always return list of elements - List[ContentT]

0.0.4

Fixed
- select_random_api_key where value is empty string cause error

Added

- add proper validation of run/execute output type (validate_tool_output decorator)
this will allow only to use as output: Union[List[ContentT], ErrorData]
where: ContentT = TypeVar('ContentT', ImageContent, TextContent, EmbeddedResource)

0.0.3

Fixed
- upgrade to 0.0.2 breaks loading of tool (1).

Added
- run test now will now run Autopep8 to fix some formating issues and Flake8 linting on test files

Page 3 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.