Skip to main content
Glama

detect_unicode_spoofs

Read-onlyIdempotent

Scans contract, policy, or SLA text for hidden zero-width, Bidi, homoglyph, and width-based Unicode spoofing to flag deceptive characters before review.

Instructions

Scans contract, policy, or SLA text for invisible zero-width and Bidi characters (U+200B..U+200F, U+202A..U+202E, U+FEFF), Cyrillic/Greek homoglyphs, and fullwidth/halfwidth digit spoofing.

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": "detect_unicode_spoofs"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesContract, SLA, or Markdown policy text to inspect for hidden Unicode spoofing.
referenceTextNoOptional baseline text so pre-existing fullwidth characters in CJK documents are not double-flagged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description contributes the exact Unicode ranges and spoofing categories being checked, which is useful behavioral detail, but it says nothing about output shape, false-positive handling, or how referenceText changes the scan.

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?

The definition is a single tightly written sentence with zero filler, and the core action and detection scope are front-loaded. Every clause contributes specific information about what is scanned and what is detected.

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?

For a simple read-only scan with full schema coverage, the description covers the detection scope well, but there is no output schema and no description of the return value, so an agent cannot tell whether it receives a boolean, a findings list, or code-point locations. The role of referenceText is left entirely to the schema rather than integrated into the description.

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 both parameters are already documented in the input schema, including referenceText's purpose of preventing double-flagging of CJK fullwidth characters. The description adds no parameter-level meaning beyond the schema, making the baseline 3 appropriate.

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 description uses a specific verb ("Scans") and a precise resource (contract, policy, or SLA text), then enumerates the exact threat classes and code-point ranges it detects. It is substantially clearer than a tautology, but it never names or differentiates itself from sibling tools such as scan_contract_risk_signals or diff_contract_versions.

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?

The mention of contract, policy, and SLA text implies the intended context, but there is no explicit when-to-use, when-not-to-use, or alternative-tool guidance. The referenceText parameter hints at a baseline-comparison workflow, yet the description never states that workflow or its prerequisites.

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