Skip to main content
Glama

red_flags

Screen a carrier or broker for fraud and compliance risks using a USDOT or MC number, returning severity-scored flags and evidence for freight vetting.

Instructions

Heuristic fraud/risk screen for one carrier or broker (double-brokering, identity theft, chameleon carriers).

usdot or mc_number as in lookup_carrier. Checks, each reported with severity high/medium/low and evidence: USDOT not found or inactive; no active operating authority; authority or USDOT newly granted (<90 / <180 days); pending revocation/suspension or recent involuntary suspension; out-of-service order in effect; no BIPD/cargo/bond on file where required; insurance cancellations (pending or in the last 12 months); FMCSA prior-revocation flag (possible reincarnated carrier); business phone or physical address shared with other USDOT numbers (lists up to 10); census vs L&I name/address mismatch; MCS-150 older than 24 months; Unsatisfactory/Conditional safety rating; zero power units on a for-hire carrier; high vehicle/driver OOS counts. Returns {riskLevel: low|medium|high, score, flags:[{severity, code, message, evidence}], checked:[...], ...}. Heuristics only: a flag is a reason to verify (call the carrier at the FMCSA-listed phone, check SAFER), not proof of fraud. Large fleets legitimately share phones/addresses with affiliates.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "red_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
usdotNo
mc_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does so well: it enumerates the specific checks performed, states that each is reported with high/medium/low severity plus evidence, and spells out the return shape. It also discloses the key epistemic limit (heuristics, not proof of fraud) and a known false-positive mode. The gap is that it never states what happens when both optional parameters are omitted or which one wins if both are supplied.

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?

Purpose and input are front-loaded, then the check list, then the return contract, then the caveat — a sensible ordering. The long enumeration of checks is dense but each item is a concrete, distinct condition; the closing false-positive paragraph earns its place by preventing misuse. Slightly long for an agent prompt budget but not padded.

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?

There is no output schema, and the description compensates by describing the returned object (riskLevel, score, flags, checked). No annotations exist, but the read-only screening nature is evident from the verb and no side effects are implied. The main residual gap is the undefined behavior for zero-argument calls, given both parameters are optional.

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% for two parameters, so the description must compensate. Saying "usdot or mc_number as in lookup_carrier" conveys that either identifier is acceptable and defers formatting to a sibling, but it never says whether both may be passed, which takes precedence, or what the expected format looks like (e.g., "MC-123456" vs bare digits).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Heuristic fraud/risk screen for one carrier or broker" names a specific verb (screen) and scope (single carrier/broker), and the parenthetical categories (double-brokering, identity theft, chameleon carriers) make the tool's remit unmistakable. It is clearly distinct from lookup_carrier/check_authority, which fetch data rather than synthesize a risk verdict, and from search_carriers, which is multi-entity.

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?

Usage is implied (vetting a carrier) rather than stated: there is no "use this before tendering a load" framing and no explicit routing to lookup_carrier or check_authority for raw data. The description does give interpretive guidance about acting on results (call the FMCSA-listed phone, check SAFER) and a false-positive caveat for large fleets, which is useful but is about reading output, not choosing the tool.

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