Skip to main content
Glama
payload_inference.go777 B
package config const ( ResponseHeadersPayload = "response_headers" RequestPathParamPayload = "path_params" UndefinedPayload = "undefined" ) func payloadLiteralToEnum(payloadLiteral payloadLiteral) Payload { switch payloadLiteral { case ResponseHeadersPayload: return PayloadResponseHeaders case RequestPathParamPayload: return PayloadRequestPathParams default: return PayloadUndefined } } func (counter *Counter) PayloadType() Payload { return payloadLiteralToEnum(counter.Payload) } func (payload Payload) String() string { var res string switch payload { case PayloadResponseHeaders: res = ResponseHeadersPayload case PayloadRequestPathParams: res = RequestPathParamPayload case PayloadUndefined: res = UndefinedPayload } return res }

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/TheLunarCompany/lunar'

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