Skip to main content
Glama
welthus-mcp

welthus-mcp

Official
by welthusai

verify_code

Parses Python source with AST to detect and block unsafe execution or deserialization calls before code runs.

Instructions

Parse Python code via AST and block unsafe execution or deserialization calls.

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": {
      "code": "<code>"
    },
    "name": "verify_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesPython source snippet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the AST-based mechanism and the two hazard classes it targets (unsafe execution and deserialization), but it is silent on return format, detection thoroughness, and whether it mutates or just inspects the code.

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?

A single front-loaded sentence with zero filler that leads with the mechanism and follows with the safety action. It is efficient, though slightly terse for a security-relevant tool.

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?

With no annotations and no output schema, the description must stand alone, and it only partially does. It conveys the core check but leaves the agent guessing about the response shape and the scope of what counts as unsafe, which matters for a one-parameter security gate.

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?

Only one parameter exists and schema coverage is 100% ('Python source snippet'), so the schema already documents it fully. The description adds the AST-processing context but no syntax or format details 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?

Names a specific verb and resource: parse Python code via AST and block unsafe execution/deserialization calls. This is clearly distinct from siblings like verify_claim or check_url_ssrf, though the description is ambiguous about whether the tool actually blocks execution or just detects and reports on it.

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

Usage Guidelines2/5

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

No guidance on when to use this versus the sibling verification tools (verify_ai_output, verify_claim, verify_math). An agent must infer from the name and one sentence that this is the code-safety check, with no stated prerequisites or exclusions.

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