Skip to main content
Glama

RuleCloud Guardrails

scan_code

Scan inline source with hybrid Guardrail + Python rules; counts toward monthly quota.

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>",
      "filename": "<filename>"
    },
    "name": "scan_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
filenameYes
rules_yamlNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description bears full behavioral burden; it usefully discloses the hybrid rule engine and that calls consume monthly quota, which an agent should know before repeated scans. It omits whether the operation is purely read-only, how quota exhaustion manifests, and what happens to oversized input, leaving meaningful gaps for a no-annotation 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 tight sentence with the action front-loaded and the quota caveat attached efficiently; nothing is padded. Its brevity is more a symptom of under-specification than verbosity, but as structure it is clean.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With three parameters at 0% schema coverage, no annotations, and an output schema that only relieves the need to describe return values, the definition should explain filename's role, rules_yaml's default behavior, and the quota implication. Medium complexity here warrants more than one sentence.

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 coverage is 0%, so the description should compensate, and it only weakly does so: 'inline source' hints at the code parameter and 'rules' loosely maps to rules_yaml. Nothing explains filename, that code and filename are required, or that rules_yaml defaults to an empty string (i.e., which rules apply when omitted).

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 gives a specific verb+resource ('Scan inline source') and characterizes the engine ('hybrid Guardrail + Python rules'), which separates it from generate_guardrail_rules, get_default_rules, and suggest_fix. It stops short of saying what a scan produces (violations/findings), so it is clear but not fully self-sufficient.

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 when-to-use guidance, no mention of when to prefer a sibling such as suggest_fix or get_default_rules, and no prerequisite conditions. The only supplementary clause, 'counts toward monthly quota,' is a cost caveat rather than usage direction.

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.