Package com.tnsai.mcp.model
Class McpToolDefinition.Builder
java.lang.Object
com.tnsai.mcp.model.McpToolDefinition.Builder
- Enclosing class:
McpToolDefinition
-
Method Summary
Modifier and TypeMethodDescriptionannotation(String name, Object value) Generic annotation setter.build()description(String description) idempotentHint(boolean idempotent) Set the MCP 2025-03-26idempotentHintannotation.inputSchema(com.fasterxml.jackson.databind.JsonNode schema) inputSchema(Map<String, Object> schema)
-
Method Details
-
name
-
description
-
inputSchema
-
inputSchema
-
idempotentHint
Set the MCP 2025-03-26idempotentHintannotation. Tells consuming clients ("a downstream LLM agent, a hub") whether calling this tool twice with the same input has the same effect as calling it once — informs retry behaviour. -
annotation
Generic annotation setter. Accepts any of the MCP-spec hints (readOnlyHint/destructiveHint/openWorldHint) or vendor-specific extensions. -
build
-