Skip to main content
Glama

negation-scope

Find negation cues and the words they cover; report whether given terms fall inside a negation scope — Applies NegEx-style rules (the English termset of negspacy, MIT, derived from NegEx) to text: finds negation cues, pseudo-negations such as 'not only', and scope terminators such as 'but', and returns each cue's scope window with offsets in UTF-16, code points, UTF-8 bytes and graphemes. Given target terms, reports per occurrence whether it is negated, not negated by the rules, or unknown (near a

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": "negation-scope"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to analyze.
windowNoWords a cue covers (NegEx uses 5). Default 5.
targetsNoTerms to classify (literal, case-insensitive, whole words).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 substantial work: it names the rule basis (NegEx-style, negspacy English termset, MIT), calls out pseudo-negations like 'not only' and terminators like 'but', and specifies offset encodings (UTF-16, code points, UTF-8 bytes, graphemes). It stops short of describing the response shape and, fatally, the third classification state is cut off mid-sentence ('or unknown (near a '), leaving that behavior undefined.

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?

The definition is front-loaded with the purpose, which is good, but it is one long em-dash-joined sentence dense with parenthetical provenance, and it terminates mid-word. That truncation is a structural defect rather than a stylistic nit, since it removes a stated output value.

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 three-parameter analytical tool with no output schema, the description covers provenance, the rule model, and offset encodings well enough that an agent can predict the response shape. Judge-based on the supplied text it is incomplete only at the tail, where the 'unknown' classification is described but never finished.

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%, so the schema already documents text, window (including the NegEx=5 default), and targets (literal, case-insensitive, whole words). The description adds essentially no parameter-level meaning beyond that; the offset-encoding detail is about the output rather than the inputs. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause gives a specific verb and resource: 'Find negation cues and the words they cover; report whether given terms fall inside a negation scope.' It clearly distinguishes the two modes (cue/scope extraction vs. target classification). It does not name or differentiate itself from any sibling, which keeps it from a 5.

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 implied by the two-mode phrasing ('Given target terms, reports per occurrence...'), which tells an agent that the targets parameter triggers classification output. There is no explicit when-to-use, when-not-to-use, or comparison with related tools, so guidance remains inferential.

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