Class McpToolMetadataKeys

java.lang.Object
dev.langchain4j.mcp.client.McpToolMetadataKeys

public class McpToolMetadataKeys extends Object
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 Details

    • TITLE_ANNOTATION

      public static final String 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

      public static final String 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

      public static final String READ_ONLY_HINT
      Indicates whether the tool is read-only. Value type: boolean
      See Also:
    • DESTRUCTIVE_HINT

      public static final String DESTRUCTIVE_HINT
      Indicates whether the tool is destructive. Value type: boolean
      See Also:
    • IDEMPOTENT_HINT

      public static final String IDEMPOTENT_HINT
      Indicates whether the tool is idempotent. Value type: boolean
      See Also:
    • OPEN_WORLD_HINT

      public static final String 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()