ai_embeddings
Generate vector embeddings for text search and similarity comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text or array of texts to generate embeddings for |
Generate vector embeddings for text search and similarity comparison.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text or array of texts to generate embeddings for |
Changes observed during successful MCP inspections.
Input schema / properties / text / oneOfAdded value: +[
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+]Input schema / properties / text / typeRemoved value: -"string"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, so the agent knows this is a safe read operation. The description adds the use-case context but says nothing about model choice, embedding dimensions, batching limits, or return format, which are the traits that would actually matter here.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One sentence with zero waste, front-loading the action and resource before the purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter tool with no output schema, the description is adequate but silent on what comes back (vector size/shape) and whether array input yields batched embeddings, leaving a modest gap an agent might care about.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and the single 'text' parameter (string or array) is fully documented in the schema, so the description carries no additional parameter meaning. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Generate vector embeddings') plus the intended applications ('text search and similarity comparison'), which distinguishes it clearly from siblings like ai_chat, ai_images, and ai_transcribe.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The use cases ('text search and similarity comparison') imply when to reach for this tool, but there is no explicit when/when-not guidance or reference to alternatives among the many ai_* siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.