Interface: McpToolDefinition
Makaio Framework / tools-core / McpToolDefinition
Interface: McpToolDefinition
Section titled “Interface: McpToolDefinition”Defined in: ../../../tools/core/src/export.ts:12
MCP (Model Context Protocol) tool definition.
https://spec.modelcontextprotocol.io/specification/server/tools/
Properties
Section titled “Properties”annotations?
Section titled “annotations?”
optionalannotations?:object
Defined in: ../../../tools/core/src/export.ts:26
Optional annotations providing hints about tool behavior. MCP clients may use these to optimize tool usage.
destructive?
Section titled “destructive?”
optionaldestructive?:boolean
Tool may permanently delete or modify data
idempotent?
Section titled “idempotent?”
optionalidempotent?:boolean
Calling the tool multiple times with same input has same effect
openWorldHint?
Section titled “openWorldHint?”
optionalopenWorldHint?:boolean
Execution may take a long time
readOnly?
Section titled “readOnly?”
optionalreadOnly?:boolean
Tool only reads data, doesn’t modify anything
description
Section titled “description”description:
string
Defined in: ../../../tools/core/src/export.ts:17
Human-readable description
inputSchema
Section titled “inputSchema”inputSchema:
JSONSchema
Defined in: ../../../tools/core/src/export.ts:20
JSON Schema for input parameters
name:
string
Defined in: ../../../tools/core/src/export.ts:14
Tool name (unique identifier)