Class McpToolMetadataKeys
java.lang.Object
dev.langchain4j.mcp.client.McpToolMetadataKeys
Constants for MCP tool annotation keys, as defined in the MCP specification.
These constants are used as keys in the metadata map inside
ToolSpecification.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIndicates whether the tool is destructive.static final StringIndicates whether the tool is idempotent.static final StringIndicates whether the tool may interact with the open world (like internet resources).static final StringIndicates whether the tool is read-only.static final StringA human-readable title for the tool retrieved from the Tool definition directly, as opposed to the title that is stored in the annotations.static final StringA human-readable title for the tool as retrieved from the tool annotations, as opposed to the title that is stored in the Tool definition directly. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TITLE_ANNOTATION
A human-readable title for the tool as retrieved from the tool annotations, as opposed to the title that is stored in the Tool definition directly. See schema.json Value type: String- See Also:
-
TITLE
A human-readable title for the tool retrieved from the Tool definition directly, as opposed to the title that is stored in the annotations. See schema.json Value type: String- See Also:
-
READ_ONLY_HINT
Indicates whether the tool is read-only. Value type: boolean- See Also:
-
DESTRUCTIVE_HINT
Indicates whether the tool is destructive. Value type: boolean- See Also:
-
IDEMPOTENT_HINT
Indicates whether the tool is idempotent. Value type: boolean- See Also:
-
OPEN_WORLD_HINT
Indicates whether the tool may interact with the open world (like internet resources). Value type: boolean- See Also:
-
-
Constructor Details
-
McpToolMetadataKeys
public McpToolMetadataKeys()
-