Skip to main content
Glama

ollama_embed_text

Generate text embeddings with local models for semantic search, similarity comparisons, and clustering. Offload routine embedding tasks to save Claude tokens.

Instructions

Generate text embeddings using local embedding models like nomic-embed-text. Ideal for batch embedding tasks, semantic search, similarity comparisons, and clustering. Use this for routine embedding generation to save Claude tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to embed
modelNoEmbedding model namenomic-embed-text
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the burden. It discloses that the tool uses local models and saves Claude tokens, which are useful behavioral traits. However, it does not mention prerequisites like model availability, return format, or rate limits. This is moderate disclosure, neither bare nor comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, each providing distinct value: what it does, use cases, and when to use it. It is concise, front-loaded with the primary action, and avoids redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool with no output schema, the description covers the purpose, use cases, and a benefit. It implicitly conveys the return type (embeddings) through the name and context. Minor gap: no mention of model management prerequisites, but sibling tools like ollama_list_models and ollama_pull_model suggest that.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with both 'text' and 'model' parameters clearly described in the schema. The description adds no additional parameter details beyond mentioning the default model in an example, which the schema already covers. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: generate text embeddings using local models. It distinguishes from siblings like ollama_generate_text and ollama_chat by specifying embedding generation and provides concrete use cases (semantic search, similarity, clustering).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit context on when to use the tool: ideal for batch embedding tasks, semantic search, similarity comparisons, and clustering, and for routine embedding generation to save tokens. It lacks explicit alternatives or exclusions, but the usage context is clear and helpful.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/andrewbrereton/claude-sidekick'

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