Skip to main content
Glama
by microsoft
defdata.genai.mjs686 B
script({ title: "defData demo", model: "small", tests: {}, system: ["system"], }) defData("A", [ { a: 1, b: 2 }, { a: 3, b: 4 }, ]) defData("B", { a: 1, b: 2 }, { format: "yaml" }) defData("C", { a: 1, b: 2 }, { format: "json" }) defData( "D", [ { a: 1, b: 2 }, { a: 4, b: 3 }, ], { format: "csv" } ) $` E: ${[ { a: 7, b: 8 }, { a: 9, b: 10 }, ]}` defData( "F", [ { a: 1, b: 2 }, { a: 3, b: 4 }, ], { } ) defData("H", { a: 1, b: 2, c: 3, d: 4 }, { sliceHead: 1 }) $`Identify the data formats of A,B,C,D,E,F,H and return the format results as CSV with key value pairs variable,format. `

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/microsoft/genaiscript'

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