Class: Jazari::Mcp::Actions::Action
- Inherits:
-
Data
- Object
- Data
- Jazari::Mcp::Actions::Action
- Defined in:
- lib/jazari/mcp/actions.rb
Overview
effect drives how a host should annotate the action to its clients:
:read — no writes
:additive — writes, but cannot destroy prior state
:overwrite — may replace an operator's content; annotate cautiously
:destructive — removes something; gate it
Instance Attribute Summary collapse
-
#confirm ⇒ Object
readonly
Returns the value of attribute confirm.
-
#effect ⇒ Object
readonly
Returns the value of attribute effect.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Instance Method Summary collapse
Instance Attribute Details
#confirm ⇒ Object (readonly)
Returns the value of attribute confirm
22 23 24 |
# File 'lib/jazari/mcp/actions.rb', line 22 def confirm @confirm end |
#effect ⇒ Object (readonly)
Returns the value of attribute effect
22 23 24 |
# File 'lib/jazari/mcp/actions.rb', line 22 def effect @effect end |
#name ⇒ Object (readonly)
Returns the value of attribute name
22 23 24 |
# File 'lib/jazari/mcp/actions.rb', line 22 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
22 23 24 |
# File 'lib/jazari/mcp/actions.rb', line 22 def params @params end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope
22 23 24 |
# File 'lib/jazari/mcp/actions.rb', line 22 def scope @scope end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary
22 23 24 |
# File 'lib/jazari/mcp/actions.rb', line 22 def summary @summary end |
Instance Method Details
#confirm? ⇒ Boolean
24 |
# File 'lib/jazari/mcp/actions.rb', line 24 def confirm? = confirm == true |
#read? ⇒ Boolean
23 |
# File 'lib/jazari/mcp/actions.rb', line 23 def read? = scope == :read |
#to_h ⇒ Object
25 26 |
# File 'lib/jazari/mcp/actions.rb', line 25 def to_h = { name: name, scope: scope, effect: effect, summary: summary, params: params, confirm: confirm } |