Skip to main content
Glama

bot_report_activity

Reports a bot's lease and heartbeat on a scope path, recording activity in Cloud Soul host_leases while rejecting stale fencing-token writes to protect lease ownership.

Instructions

Reports a bot's lease/heartbeat on a scope path into the Cloud Soul host_leases table. host_id is bound to the real MCP session provenance (X-Agent-Id@X-Host) — caller-supplied values are never used. A fenced-out write (stale fencing token) returns the rejection payload unchanged and does NOT refresh the local fast-cache.

Args: bot_id: Registered bot slug. scope_path: Lease scope (workspace path or identifier). summary: Short activity note (secret-masked before storage). fencing_token: Monotonic fencing token; higher wins on a live lease.

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": {
      "bot_id": "<bot_id>",
      "scope_path": "<scope_path>",
      "summary": "<summary>"
    },
    "name": "bot_report_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
bot_idYes
summaryYes
scope_pathYes
fencing_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description does real work: it discloses that host identity is bound to MCP session provenance and caller-supplied values are ignored, that a stale fencing token yields a rejection payload and skips the local fast-cache refresh, and that summaries are secret-masked before storage. Missing are rate limits, idempotency behavior, and what authority a caller needs to hold a lease.

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?

Behavioral facts are front-loaded in a compact paragraph, then a tidy Args block. A couple of phrases ('into the Cloud Soul', 'unchanged') are slightly ornamental but nothing is padding.

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?

An output schema exists, so return values need not be explained, and the description covers identity binding, fencing rejection, and masking. For a write-style lease tool with no annotations this is close to complete, though call frequency and error/retry expectations are left open.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the Args block carries the full load, and it does so for all four parameters: bot slug, lease scope, masked summary, and monotonic fencing token where higher wins. It does not explain the meaning of the schema default of 0 for fencing_token, which leaves one ambiguity.

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 opening sentence names a specific action (report lease/heartbeat) and destination (host_leases table) on a scope path, which is more precise than the tool name alone. It does not explicitly contrast with any sibling, but no listed sibling appears to overlap, so the differentiation burden is low.

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 guidance on when to call this versus alternatives, how often heartbeats are expected, or any prerequisite for holding a lease. The only contextual hint is implicit in the fencing-token semantics, which the agent must infer.

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