Skip to main content
Glama
@shuliak-corp/sip1-mcp

@shuliak-corp/sip1-mcp

Stage 2 AST Blast-Radius Action Classifier

sip_classify_action_guard
Read-onlyIdempotent

Classify MCP tool invocations into TIER_0–TIER_3 via Stage 2 SQL, Shell, SSRF, and path AST blast-radius guards; ignore untrusted readOnlyHint flags and compute RFC 8785 0x07 action digest.

Instructions

Classify a proposed MCP tool invocation via Stage 2 SQL, Shell, SSRF (NAT64/IPv4-mapped), and Path AST Blast-Radius Guard (TIER_0..TIER_3), ignoring untrusted readOnlyHint flags, and compute its RFC 8785 0x07 action digest.

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": {
      "server": "<server>",
      "tool": "<tool>"
    },
    "name": "sip_classify_action_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoTool arguments object to inspect.
toolYesTarget MCP tool name.
serverYesTarget MCP server identifier.
annotationsNoUntrusted server tool annotations.
workspaceDirNoWorkspace boundary directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.6.5

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value by disclosing that untrusted readOnlyHint flags on the target are ignored and that classification spans four guard families with a TIER_0..TIER_3 outcome plus a digest. However, with no output schema, it never describes the response shape or how the tier should be interpreted, which is a meaningful gap for a decision-support tool.

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 sentence with no filler, and the computed outputs (tier plus digest) are front-loaded after the classification verb. The parenthetical guard lists and the '0x07' tag make it denser than necessary, but nothing is redundant.

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 five-parameter tool with a nested args object and no output schema, the description should at least sketch the result. It names the tier scale and the digest but not the returned structure or tier semantics, and it does not explain how workspaceDir affects classification. Adequate to select the tool, incomplete for invoking and interpreting it confidently.

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 all five parameters (server, tool, args, annotations, workspaceDir) are already documented in the schema. The description adds only implicit semantics, notably that the annotations input is untrusted and ignored, but does not clarify how workspaceDir bounds path analysis or what args depth is inspected. Baseline 3 is appropriate when the schema carries the parameter detail.

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 names a specific verb (Classify) and a specific resource (a proposed MCP tool invocation), and enumerates the guard families applied (SQL, Shell, SSRF/NAT64, Path AST) plus the outputs (TIER_0..TIER_3 and an RFC 8785 action digest). It is dense with domain jargon and no sibling in the list shares this classifier role, so an agent can identify it, though the phrasing is closer to internal spec language than a plain statement of purpose.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The word 'proposed' implies a pre-execution gate, but the agent must infer that this should be called before invoking a tool rather than after, and nothing states prerequisites or what to do with the resulting tier.

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