Record Class McpToolInfo
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.ai.McpToolInfo
- Record Components:
name- the tool name as advertised by the server (unprefixed). The harness-visible name ismcp__<serverName>__<name>.description- the tool's description as advertised by the server; empty string when the server didn't provide one.
Read-only snapshot of one tool advertised by an MCP connection. Consumed by inventory routes that
feed the user-agent configuration UI so operators can see which tools an agent will inherit when
it attaches a connection — the picker doesn't offer per-tool selection (attach is all-or-nothing
at the connection level), but seeing the tool set is useful when debugging why an agent chose to
call a particular tool.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpToolInfo(String name, String description) Creates an instance of aMcpToolInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpToolInfo
Creates an instance of aMcpToolInforecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-