Skip to main content
Glama

Tinplate Edge AI Safety, Security & EU Compliance

tinplate_agent_code_guard

Read-onlyIdempotent

AI-Generated Code & CI Workflow Sandbox Auditor API: Audit LLM-generated Python, JS/TS, Shell, or GitHub Actions code for sandbox escapes before execution. (Endpoint: POST /v1/agent-code-guard)

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>",
      "language": "<language>"
    },
    "name": "tinplate_agent_code_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesParameter 'code' (e.g. "import os, pickle\npayload = pickle.loads(user_bytes)\nos.syst")
languageYesParameter 'language' (e.g. "python")
allow_networkNoBoolean flag 'allow_network' (default: false)
allow_filesystem_writeNoBoolean flag 'allow_filesystem_write' (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description usefully adds that the code is analyzed rather than run ('before execution'), but it does not disclose what the audit returns (findings, severities, pass/fail verdict), whether it is heuristic or deterministic, or any limits on code size.

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?

Two sentences, front-loaded with the purpose and scope before the endpoint detail. The opening restates the annotation title almost verbatim ('AI-Generated Code & CI Workflow Sandbox Auditor API'), which is mild redundancy, and the inline endpoint is metadata rather than decision-relevant content, but nothing is bloated.

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 4-parameter security tool with no output schema, the description should say what the agent gets back and roughly how findings are expressed, since nothing else in the structured data covers return values. It also could clarify the relationship between the boolean capability flags and the audit result. The core purpose is covered, but an agent cannot predict the response shape from this definition.

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 baseline is 3. The description does add value by enumerating the supported language values (Python, JS/TS, Shell, GitHub Actions) since the schema has no enums, but it never explains what allow_network and allow_filesystem_write mean semantically — whether they declare permitted capabilities of the sandbox to check against, or toggle check categories.

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?

States a specific verb ('Audit') and resource ('LLM-generated Python, JS/TS, Shell, or GitHub Actions code') plus the concrete threat it targets ('sandbox escapes before execution'). It does not differentiate itself from closely related siblings such as tinplate_llm_output_guard or tinplate_command_sql_guard, leaving the agent to infer which guard applies to code versus outputs or commands.

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 phrase 'before execution' implies the usage window (pre-flight check on generated code), which is genuine context. However, there is no explicit when-not guidance, no named alternative for adjacent cases (e.g. LLM output validation or SQL command guarding), and no stated prerequisites or auth expectations.

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