← API reference
Mutation / scripting

createMCPTool

Create a tool definition. Requires mcpTool:write.

Arguments

Authored fields and assignments. Set published to true for atomic publication.

Returns MCPToolPayload!

Explore in a view

Scripting
View exact SDL
"""Create a tool definition. Requires mcpTool:write."""
createMCPTool(
  """
  Authored fields and assignments. Set published to true for atomic publication.
  """
  input: MCPToolInput!
): MCPToolPayload! @topic(names: ["scripting"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.