Skip to main content
Glama

TextUnited MCP Server

temporary-storage_append_segment_batch

Idempotent

Adds texts to the end of an existing batch: use it for the second and later portions of a result started with add_segment_batch. WRITES data: one user confirmation covers all portions of the same result. startPosition refers to the destination batch: use its current segmentCount + 1, or lastPosition + 1 returned by the preceding successful append. The source cursor is for reading and may differ from destination positions when segmentation changes. If a call failed or timed out, repeat it with exactly the same arguments, including the original startPosition: the portion is never stored twice. Returns the positions used, not the texts.

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_append_segment_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault
batchNoCurrent metadata, which may include later edits or appends when this response acknowledges a retry.
lastPositionNoPosition of the last text of this portion. The next portion starts at lastPosition + 1.
firstPositionNoPosition of the first text of this portion.
alreadyAppliedNoTrue means these texts were already stored at these positions by an earlier call: nothing was changed, including the note, and expiry was not extended.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations supply only idempotentHint=true, and the description earns credit for the rest: it flags that the tool WRITES data, that one user confirmation covers all portions of a result, that a repeated portion is never stored twice, and that the return value is positions rather than texts. It also discloses the destination-vs-source position distinction, which is a non-obvious behavioral trait.

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?

Front-loaded with purpose and write semantics, then position rules, then retry safety — a sensible order with no filler sentences. The retry guidance is stated twice (once generically, once tied to startPosition), which is slight redundancy given the schema already covers it.

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

Completeness5/5

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

For a nested, single-parameter mutation with an output schema present, the description covers everything an agent needs: write behavior, confirmation expectation, position arithmetic, retry semantics, and the shape of the return value. Nothing critical is missing.

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?

With top-level schema coverage effectively absent, the description must carry meaning, and it does for the hardest parameter: startPosition is explicitly tied to the destination batch's segmentCount + 1 or lastPosition + 1, and the source read cursor is noted as potentially divergent. It says less about batchId, texts, and note, and repeats what the nested schema descriptions already state, so it stops short of a 5.

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 specific verb and resource ("Adds texts to the end of an existing batch") and immediately scopes it against the sibling that starts a result (add_segment_batch). An agent can distinguish append from add/update without opening either 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 exactly when to use it ("second and later portions of a result started with add_segment_batch") and what to do when a call fails or times out (repeat with identical arguments). The alternative path is named explicitly rather than 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