Astra_Abstract_Ability::get_annotations()
Get MCP annotations based on tool type.
Description
Returns semantic hints for the MCP Adapter describing the ability’s behavioral characteristics. Override in child classes for custom behavior.
Return
(array{readonly:) bool, destructive: bool, idempotent: bool}
Source
File: inc/abilities/class-astra-abstract-ability.php
public function get_annotations() {
$tool_type = $this->get_tool_type();
// Read and list tools are readonly, write tools are not.
return array(
'readonly' => 'write' !== $tool_type,
'destructive' => false,
'idempotent' => true,
);
}
Expand full source code Collapse full source code View on Trac