Skip to main content
Glama

Scan AI agents (read-only)

scan_agents
Read-onlyIdempotent

Checks AI agent folders offline and read-only, reporting per-message loads, heartbeat and scheduled-task costs, plaintext secrets, and planted or bloated memory with a concrete fix for each.

Instructions

Offline, read-only check of the AI agents on this computer (OpenClaw, Hermes Agent, nanobot, PicoClaw, ZeroClaw, NanoClaw, or any agent folder via path). Reports what loads on every message, what heartbeats and scheduled tasks cost, plaintext secrets (type, file and line only, never the value), and memory that looks planted or bloated, each with a concrete fix. It only reads files: no network, no writes, no other programs. Show the report to the owner as printed; its figures are estimates. Do not edit config, rewrite memory or rotate keys without the owner's OK. The text report ends with one line about Psyseal's paid cleanup; set no_cta to true to leave it out.

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": "scan_agents"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoReport language. Default: en.
pathNoFolder of one agent to check (any platform). Omit to find the agents on this computer automatically.
agentNoCheck only the agent with this id.
formatNotext (default) or json.
no_ctaNoLeave out the closing line about Psyseal.
platformNoCheck only this platform.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, but the description adds substantial context beyond them: no network, no writes, no other programs invoked; secrets are reported as type/file/line only, never the value; figures are estimates; and the text report ends with a paid cleanup line that no_cta suppresses. That disclosure of an embedded promotional line is exactly the kind of behavior an agent could not infer from annotations.

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?

Four sentences, front-loaded with the core purpose and report contents, and each sentence carries real information. There is minor redundancy — 'read-only' and 'It only reads files' restate the same constraint already implied by the readOnlyHint annotation — which keeps it from a 5.

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

Completeness5/5

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

For a no-required-parameter scan tool with no output schema, the description covers everything an agent needs: what is scanned, what the report contains, the guarantee of no network/writes, the estimate caveat, the CTA line and how to suppress it, and the caution not to mutate configs without owner approval. Nothing material is missing.

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 six parameters are already documented in structured form. The description reinforces a couple of them ('any agent folder via path', 'set no_cta to true to leave it out') but adds no syntax, defaults, or precedence rules (e.g., how path, agent, and platform interact) beyond what the schema states, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ('Offline, read-only check of the AI agents on this computer') and then enumerates exactly what the check produces: load per message, heartbeat/scheduled-task cost, plaintext secrets, and planted/bloated memory. It even names the covered platforms, so an agent knows precisely what this tool does without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is clear — run it to audit local agent installs, restricting scope with path/agent/platform — and it adds operating guidance ('Show the report to the owner as printed', 'Do not edit config, rewrite memory or rotate keys without the owner's OK'). There are no sibling tools to disambiguate against and no explicit when-not-to-use case, which keeps it just short of a 5.

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