Skip to main content
Glama

Grok MCP Server

by BrewMyTech

create_embeddings

Generate embeddings for text using the Grok API, specifying model, input, encoding format, and dimensions for accurate vector representations.

Instructions

Create embeddings for text with the Grok API

Input Schema

NameRequiredDescriptionDefault
dimensionsNoThe number of dimensions the resulting output embeddings should have
encoding_formatNoThe format to return the embeddings in
inputYesInput text to get embeddings for
modelYesID of the model to use
userNoA unique user identifier

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "dimensions": { "description": "The number of dimensions the resulting output embeddings should have", "exclusiveMinimum": 0, "type": "integer" }, "encoding_format": { "description": "The format to return the embeddings in", "enum": [ "float", "base64" ], "type": "string" }, "input": { "anyOf": [ { "type": "string" }, { "items": { "type": "string" }, "type": "array" }, { "items": { "type": "number" }, "type": "array" }, { "items": { "items": { "type": "number" }, "type": "array" }, "type": "array" } ], "description": "Input text to get embeddings for" }, "model": { "description": "ID of the model to use", "type": "string" }, "user": { "description": "A unique user identifier", "type": "string" } }, "required": [ "model", "input" ], "type": "object" }
Install Server

Other Tools from Grok MCP Server

Related Tools

    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/BrewMyTech/grok-mcp'

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