Skip to main content
Glama

telys_update

Idempotent

Replace vectors for existing IDs by re-embedding new texts. Requires collection, texts, ids; fails if collection is missing or lengths mismatch. Use for deliberate corrections.

Instructions

Replace the vectors/metadata of EXISTING ids by re-embedding new texts, then persist. Use for deliberate corrections to known rows. Required: collection, texts, ids — strict by contract: missing or null ids fail with 'update requires ids' (use telys_upsert to insert-or-replace instead). Optional: metadata (one object per text; the collection's partition key is defaulted when omitted). Fails when the collection does not exist or on ids/texts length mismatch.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesexternal ids of EXISTING rows to replace (strict: required)
textsYesreplacement texts, embedded on-device; one per id
metadataNoone object per text positionally; the partition key is defaulted when omitted
collectionYesname of an existing collection in the active store

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.1
    • addedInput schema / properties / collection / description
      Added value: +"name of an existing collection in the active store"
    • addedInput schema / properties / ids / description
      Added value: +"external ids of EXISTING rows to replace (strict: required)"
    • addedInput schema / properties / metadata / description
      Added value: +"one object per text positionally; the partition key is defaulted when omitted"
    • addedInput schema / properties / texts / description
      Added value: +"replacement texts, embedded on-device; one per id"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false meaning mutation is expected, and the description adds contract-level behavioral detail: strict null id rejection with error message, persistence, and failure modes. It does not fully describe all side effects, but with annotations covering the safety profile the added detail is valuable.

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

Conciseness4/5

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

The description is dense but well-organized: main action, use case, required parameters, strict contract, and failure conditions all appear in four sentences. It is perhaps slightly redundant with schema text but each sentence earns its place and the core behavior is front-loaded.

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 write operation with no output schema, the description covers essential invocation context: required params, optional metadata behavior, persistence, and failure conditions. It would benefit from stating the return value or success response, but given the rich schema and annotations, the remaining gap is minor.

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 description coverage is 100% and every parameter is already documented with clear descriptions (e.g., 'one per id', 'strict: required', 'partition key is defaulted when omitted'). The description mostly echoes these details, adding only the strict error message and usage clarification. Baseline 3 is appropriate because the schema carries the parameter burden.

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 operation: replace vectors/metadata of EXISTING ids by re-embedding new texts, then persist. It differentiates from the sibling telys_upsert ('insert-or-replace instead') and uses precise scope ('existing ids', 'deliberate corrections to known rows').

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

Usage Guidelines5/5

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

It gives an explicit when-to-use signal ('Use for deliberate corrections to known rows'), explicitly names the alternative for insert-or-replace (telys_upsert), and documents failure conditions (missing/null ids, collection not existing, length mismatch). This fully routes an agent to the correct tool.

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