Skip to main content
Glama
gamai-preflight

gamai-preflight

Official
by gamai-io

preflight_log

Score one access log for agent-like inbound behavior, including canaries and key probing, and return allow/review/block with per-rule evidence.

Instructions

Score an access log for agent-like inbound behaviour with gamai-tripwire (canaries, spec-derived paths, tool switching, key probing) for one file. Returns allow/review/block, the worst level and per-rule evidence.

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": {
      "log": "<log>"
    },
    "name": "preflight_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
logYespath to a combined/JSON access log
nowNofile (default), wall, or an epochfile
windowNoseconds to judge
registryNocanary registry path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does useful work by stating the return shape (allow/review/block verdict, worst level, per-rule evidence), which tells the agent this is an analytical scoring call rather than a mutation. It omits whether the log file is read-only, whether a registry must pre-exist, and any cost or size limits.

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, both load-bearing: the first covers input and detection scope, the second covers output. Front-loaded with the verb and resource. Slightly dense with internal jargon ('gamai-tripwire', 'spec-derived paths') that costs the reader without adding routing value.

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

Completeness4/5

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

With four fully documented parameters and no output schema, the description does what is needed by summarizing the verdict and evidence returned. An agent can decide and call correctly. Only the read-only/permission posture and any input-size constraints are left unstated.

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 reinforces the 'one file' scope of the log parameter and mentions canaries, which maps loosely to the registry parameter, but it adds no syntax, format, or defaulting detail beyond what the schema already states for now, window, and registry.

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 and resource ('Score an access log for agent-like inbound behaviour') and enumerates the detection families (canaries, spec-derived paths, tool switching, key probing), so the agent knows exactly what analysis happens. Scope is pinned to 'one file'. It stops short of naming preflight_text as the sibling for non-log input, so differentiation is implied rather than stated.

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 'for one file' and 'access log' imply the input domain, and the sibling name preflight_text hints at a text-based alternative, but the description never says when to pick this over it or what prerequisites apply. Usage is inferable, not specified.

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