Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 12.1 KB

File metadata and controls

13 lines (10 loc) · 12.1 KB

ToolDefinition

Fields

Field Type Required Description
server_id str ✔️ Tool server this tool belongs to.
name str ✔️ Name to invoke the tool by.
display_name Optional[str] Human-readable name of the tool.
description Optional[str] What the tool does, as surfaced to a model.
input_schema Dict[str, Any] JSON Schema for the tool's input parameters.
annotations Optional[models.ToolAnnotations] Behavioural hints for the tool, exactly as declared by the tool server. No
defaults are filled in — see the per-field notes for what an absent value means.

Per the MCP specification, clients MUST treat these hints as untrusted unless
the tool server is itself trusted. They are advisory metadata, not an
authorization signal, and must not be the sole basis of a security decision.