โ† API reference
Query / scripting

analyzeMCPToolSource

Infer and decorate a tool contract without saving or running it.

Arguments

sourceString!

Lua source; never executed by analysis.

inputAnnotationsString

Input metadata overlay.

outputAnnotationsString

Output metadata overlay.

Returns MCPToolAnalysis!

Scalar fields at a glance

inputSchemaString
outputSchemaString
โ†— View the complete MCPToolAnalysis type

Explore in a view

Scripting
View exact SDL
"""Infer and decorate a tool contract without saving or running it."""
analyzeMCPToolSource(
  """Lua source; never executed by analysis."""
  source: String!
  """Input metadata overlay."""
  inputAnnotations: String
  """Output metadata overlay."""
  outputAnnotations: String
): MCPToolAnalysis! @topic(names: ["scripting"])

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