Skip to main content
Glama

run_go_code

Execute Go code in the Go Playground sandbox and receive execution results, with optional go vet analysis for code quality checks.

Instructions

Run Go code in the Go Playground and return execution results

Input Schema

NameRequiredDescriptionDefault
codeYesThe Go code to execute
withVetNoWhether to run go vet on the code (default: true)

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "The Go code to execute", "type": "string" }, "withVet": { "default": true, "description": "Whether to run go vet on the code (default: true)", "type": "boolean" } }, "required": [ "code" ], "type": "object" }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/samber/go-playground-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server