MCPcopy
hub / github.com/grafana/tempo / toolResult

Function toolResult

modules/frontend/mcp_tools.go:376–385  ·  view source on GitHub ↗
(body string, contentType string, encoding string, version string)

Source from the content-addressed store, hash-verified

374}
375
376func toolResult(body string, contentType string, encoding string, version string) *mcp.CallToolResult {
377 res := mcp.NewToolResultText(body)
378 res.Meta = &mcp.Meta{AdditionalFields: map[string]any{
379 "type": contentType,
380 "encoding": encoding,
381 "version": version,
382 }}
383
384 return res
385}
386
387// responseBuffer
388type responseBuffer struct {

Callers 7

handleTraceQLDocsMethod · 0.70
handleSearchMethod · 0.70
handleInstantQueryMethod · 0.70
handleRangeQueryMethod · 0.70
handleGetTraceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected