← API reference
Mutation / scripting

upsertMCPTool

Upsert 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
"""Upsert a tool definition. Requires mcpTool:write."""
upsertMCPTool(
  """
  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.