Skip to main content
Glama

Safety Scrub

safety-scrub

Safety Scrub — Redact sensitive data from text before logging it or sending it to a model. Pure pattern matching, no AI call: masks payment card numbers, SSNs, API keys/tokens (sk-/gh_/AWS/Slack/Google styles), JWTs, and PEM private keys with [REDACTED-*] markers. Use whenever user-supplied or scraped text may carry credentials. Input: {text: string}. Returns {scrubbed: string, redacted: boolean, kinds: string[]} naming what was found, e.g. ['card','ssn']. Best-effort, not a guarantee. (1 MESH/call, a tool · safety)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesPayload for safety-scrub

TDQS

A4.3/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it specifies 'Pure pattern matching, no AI call,' meaning deterministic and cheap; it discloses 'Best-effort, not a guarantee,' warning about false negatives; it mentions the cost '(1 MESH/call)'; and it describes the return shape ({scrubbed, redacted, kinds}) despite no output schema. This goes well beyond the sparse annotations (readOnlyHint:false, openWorldHint:true, destructiveHint:false) and provides key transparency for an agent.

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?

The description is efficiently structured: it opens with a purpose clause, lists covered data types, gives a usage hint, describes input/output, warns about limitations, and notes cost. It is not overly long, but it begins with 'Safety Scrub —' which repeats the title, and the parenthetical '(1 MESH/call, a tool · safety)' is metadata that could be omitted without loss. Still, every substantive sentence earns its place.

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?

The tool has a nested input object and no output schema, so the description carries significant responsibility. It fully covers the return format ({scrubbed, redacted, kinds}) and even gives an example ('card','ssn'). It also covers behavioral nuances (best-effort, no AI, cost). Minor gaps exist: it doesn't explain aliases (though schema covers them) or behavior when no sensitive data is found (though 'redacted: boolean' implies it). Overall, it is sufficiently complete for the agent to invoke and interpret results.

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?

The input schema has 100% description coverage: the text parameter is described as 'REQUIRED — the text to scan; card numbers, SSNs, API keys/tokens, JWTs and PEM private keys are replaced with [REDACTED-*] markers.' The tool description only says 'Input: {text: string},' adding no new information beyond the schema. It does not mention the alias parameters (input, content) or the fallback chain, but since the schema documents those, the description doesn't need to. Baseline 3 is appropriate.

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 clearly states the tool's function: 'Redact sensitive data from text before logging it or sending it to a model.' It specifies the exact data types handled (cards, SSNs, API keys, JWTs, PEM keys) and the output markers ([REDACTED-*]). This distinguishes it from sibling tools, none of which mention redaction or safety scrubbing, and explicitly notes 'Pure pattern matching, no AI call' to differentiate from AI-based tools.

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

Usage Guidelines4/5

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

The description gives a clear usage directive: 'Use whenever user-supplied or scraped text may carry credentials.' It also implies when to use by mentioning 'before logging it or sending it to a model.' However, it does not explicitly name alternative tools or state when not to use it, so it falls short of the highest bar for usage 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.

TDQS

B3.4/5.0
Disambiguation2/5

Several tools have overlapping purposes: search and mesh_discover both enumerate the catalog, while biz-analyze, task-analysis, and task-orchestrate all produce structured plans from a described situation. This will cause agents to misselect between them despite otherwise distinct tools.

Naming Consistency2/5

Naming is inconsistent: mesh_* tools use snake_case, most capability tools use hyphenated lowercase names, and a few (fetch, search) are bare verbs. There is no single verb-object or noun-verb pattern that holds across the set.

Tool Count3/5

28 tools is on the heavy side, but the marketplace concept justifies including many callable capabilities. However, the mix of platform tools and unrelated utilities makes the surface feel cluttered and hard to navigate.

Completeness4/5

The core marketplace lifecycle is well covered: signup, discover, fetch, publish, delegate, refer, follow, subscribe, and balance. Minor gaps exist (no unpublish or edit for listings), but most agent workflows can proceed without dead ends.