Skip to main content
Glama

TextUnited MCP Server

temporary-storage_update_segment_batch

Replaces texts at existing positions, adds a line to the note, or both, in one step. WRITES data: confirm with the user first. It cannot add, remove or reorder segments or change the language: to add texts at the end use append_segment_batch, for another language use add_segment_batch. Unknown or repeated positions are rejected and nothing is changed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "request": "<request>"
    },
    "name": "temporary-storage_update_segment_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault
noteNoLog of short lines written by the model, one per write, oldest first: what was done, the source batch ID and what is pending. Not verified by the store.
batchIdNoReusable batch ID, starts with SB-, for get_segment_batch, update_segment_batch and append_segment_batch.
groupIdNoGroup this batch belongs to: SG- followed by the same code as in the batch ID, e.g. batch SB-K7M2QX-2 belongs to group SG-K7M2QX. Use it with get_segment_group to see the other batches.
languageNo
sequenceNoCreation order within the group: 1 is the first batch, and the highest sequence is the newest batch.
createdAtNo
expiresAtNoCurrent UTC expiry of the entire group, 6 hours after its last successful write.
updatedAtNoUTC time of the last change to this batch's texts or note. It does not reflect creation order; use sequence for that.
segmentCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it flags the operation as a write requiring user confirmation, states atomicity ('All changes succeed or none do' / 'nothing is changed'), and discloses the rejection rule for unknown or repeated positions. It does not mention permission/auth requirements or whether an overwritten text can be recovered, which keeps it short of a 5.

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?

Four dense sentences, front-loaded with the capability, then the write warning, then the exclusions/alternatives, then the failure rule. Every sentence carries distinct information and there is no filler.

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 nested-object mutation tool with an output schema (so return values need not be explained), the description covers purpose, alternatives, write-confirmation, and atomicity adequately. The only gap relative to complexity is that destructive note-clearing semantics are left entirely to the schema rather than being surfaced alongside the 'WRITES data' warning.

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?

The reported schema coverage is 0% at the top level, so the description should compensate, and it partially does by adding validity semantics for positions ('Unknown or repeated positions are rejected') and framing the note as an appended line. It adds nothing about clearExistingNote's destructive rewrite behavior or the meaning of an empty text, both of which live only in the nested schema descriptions.

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 opens with a precise verb+resource+scope: 'Replaces texts at existing positions, adds a line to the note, or both, in one step.' It explicitly separates itself from append_segment_batch (adding at the end) and add_segment_batch (other languages), so an agent can distinguish it from siblings without opening any schema.

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 states when to use it (edit existing positions and/or the note in one step), when not to (adding texts at the end, changing language, adding/removing/reordering segments), and names the exact alternative tools for those cases. Nothing about tool selection is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources