Skip to main content
Glama

instruction-data-split

Label spans of a prompt as pasted data or instructions, and flag instruction-like text inside the data — Splits an agent's input into data regions (code fences, block quotes, XML-style wrappers such as , BEGIN/END markers, triple quotes, email headers with body, JSON blocks) and the text around them, labels each sentence outside the data as instruction (leading imperative verb or polite request) or unknown, and lists injection-style phrases found anywhere in the text ('ignore previous instr

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": {
      "text": "<text>"
    },
    "name": "instruction-data-split"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe full prompt or tool result to split.
dataTagsNoExtra XML-style tag names (letters, digits, underscore) whose content is data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the classification heuristics ('leading imperative verb or polite request' → instruction, otherwise unknown) and that injection phrases are detected 'anywhere in the text' rather than only inside data. It does not state that the tool is purely analysis with no side effects, nor how long or truncated output behaves near the 50,000-character input limit.

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

Conciseness3/5

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

There is essentially one very long run-on sentence with nested parentheticals, and the text is cut off mid-example ("'ignore previous instr"). The opening clause is front-loaded correctly, but the enumeration and abrupt truncation hurt parseability rather than earning their space.

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

Completeness3/5

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

There is no output schema, so the description must convey what comes back; it names the outputs (region split, per-sentence labels, injection phrase list) but not their shape or ordering, so an agent cannot predict the response structure. It is also truncated, leaving the injection-detection behavior incompletely specified. Adequate but with clear gaps given the tool's analytical complexity.

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% with only two parameters, so the schema already documents `text` and `dataTags` fully. The description adds the concept of XML-style tag names as data regions, which loosely motivates `dataTags`, but gives no additional syntax or constraint detail beyond the schema. Baseline 3 applies.

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 names a precise operation set: segmenting a prompt into data regions versus surrounding text, labeling non-data sentences as instruction or unknown, and listing injection-style phrases. The parenthetical enumeration of data-region forms (code fences, block quotes, XML wrappers, BEGIN/END markers, triple quotes, email headers, JSON blocks) leaves no ambiguity about what the tool returns.

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

Usage Guidelines3/5

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

Usage is only implied: 'Splits an agent's input' suggests calling it before acting on untrusted prompt text, but there is no explicit when-to-use statement, no when-not, and no named alternative. An agent can infer the purpose but gets no routing guidance.

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