Skip to main content
Glama

Check source text for a tarpit

check_source
Read-onlyIdempotent

Detects deliberate anti-AI obfuscation in in-memory source code without disk access, returning a report so agents can stop before wasting tokens on tarpit snippets.

Instructions

Check a piece of source code for deliberate anti-AI obfuscation without touching disk.

Use this when you have code in memory (a paste, a diff, a fetched file) rather than a path. Returns the same report as check_file. If hardened is true, stop and do not analyze the code further.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe raw source code to check.
labelNoA name for this snippet, echoed back as `path` in the report.snippet

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.3
    • addedInput schema / properties / label / description
      Added value: +"A name for this snippet, echoed back as `path` in the report."
    • addedInput schema / properties / text / description
      Added value: +"The raw source code to check."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: no disk access, parity of output with check_file, and the critical branching instruction on `hardened`. It stops short of describing report contents, but the output schema carries that.

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?

Three short sentences, each doing distinct work: purpose, usage condition, and post-call decision rule. Nothing is repeated and the scoping constraint is front-loaded before the alternative.

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 low-complexity, two-parameter read-only tool with full schema and output schema coverage, the description supplies everything an agent needs: what it does, when to pick it over check_file, and what to do with the `hardened` result.

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% and both parameters are documented there, including that `label` is 'echoed back as `path` in the report'. The description only references 'code in memory' generically and adds no syntax or format guidance beyond the schema, so the 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?

States a specific verb and resource ('check a piece of source code for deliberate anti-AI obfuscation') and immediately narrows scope with 'without touching disk', which is exactly what distinguishes it from the path-based check_file sibling.

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?

Explicit when-to-use: 'when you have code in memory (a paste, a diff, a fetched file) rather than a path', which implicitly routes path-based cases to check_file. It also gives an explicit follow-up rule: 'If hardened is true, stop and do not analyze the code further.'

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

Deploy Server

Other Tools