Skip to main content
Glama

TextUnited MCP Server

temporary-storage_add_segment_batch

Stores a new batch in an existing group, e.g. the translation or revised version of another batch. WRITES data: confirm with the user first. Supply the texts in order; positions start at 1. For a long result, store the first portion here and the next portions with append_segment_batch. In note, name the source batch ID and what was done. Returns the new batchId. If the call failed or timed out, call get_segment_group before retrying: the batch may already exist as the newest one.

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_add_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.6/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 that the tool WRITES data, requires user confirmation, returns the new batchId, and warns that a timed-out call may still have created the batch as the newest one. It does not cover permissions/auth requirements or what happens on a duplicate or invalid groupId, leaving some operational risk unaddressed.

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?

Front-loads the core action and the write warning, then proceeds through ordering, alternatives, note content, return value, and retry safety. Every sentence is actionable and none merely restates the name or schema.

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, write-side tool this covers the essentials: what is created, ordering constraints, sibling routing, return value, and retry behavior; an output schema exists so return-shape detail is not required. Minor gaps remain around language-mismatch behavior and failure modes other than timeout.

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

Parameters4/5

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

Top-level schema coverage is 0% (the single 'request' wrapper is undocumented), so the description must compensate, and it does: it specifies that texts are supplied in order with positions starting at 1, that groupId must be an existing group, and that note should name the source batch ID and the work done. The language parameter's semantics are left entirely to the nested schema.

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?

States a specific verb and resource: "Stores a new batch in an existing group," and immediately clarifies the intended content (a translation or revised version of another batch). This clearly separates it from create_segment_group (creates the group) and append_segment_batch (adds later portions).

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?

Gives explicit routing rules: use this tool for the first portion of a long result and append_segment_batch for subsequent portions, and call get_segment_group before retrying after a failure or timeout. It also adds a precondition (confirm with the user first) that governs when the call should be made at all.

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