Skip to main content
Glama

Replay Inject Fileinfo

replay_inject_fileinfo
Destructive

Injects a raw FileInfo FromRadio message into a running replay session to test client mid-session behavior, including repeated entries or malformed file metadata.

Instructions

Inject a raw FileInfo FromRadio message into a running replay session.

FileInfo is a handshake-only FromRadio with no MeshPacket envelope, which firmware sends only at connect. Use it to test a client mid-session: repeat it with count (does the client cap its manifest?), or send a huge file_name or negative size_bytes for a malformed entry. See docs/replay.md.

Returns {id, queued, connected}, or {error} for an unknown session.

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": {
      "session_id": "<session_id>",
      "file_name": "<file_name>"
    },
    "name": "replay_inject_fileinfo"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many entries to send.
file_nameYesReported file name; with `count` above 1 each copy gets a distinct suffix.
session_idYesSession id from `replay_start`.
size_bytesNoReported file size in bytes.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already flag this as destructive, non-idempotent, and closed-world, so the safety profile is covered. The description adds useful context that the message is normally only sent at connect by firmware and that a bad session id yields `{error}`. The return shape `{id, queued, connected}` is redundant given the output schema exists, so the net behavioral addition over structured fields is modest.

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?

Front-loaded with the core action, then immediately justified by what FileInfo is, then the test scenarios, then the return contract. Four sentences, each carrying information; no filler or marketing language.

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 destructive injection tool of moderate complexity, it covers the message semantics, the intended test uses, the error case, and points to docs/replay.md for depth. With the input schema fully documented and an output schema present, nothing an agent needs in order to call it correctly is missing.

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 coverage is 100%, so the baseline is 3, but the description earns above-baseline credit by explaining intent behind parameters that the schema does not: `count` exists to test whether the client caps its manifest, and `size_bytes` can be negative to produce a malformed entry. It also clarifies that each of the `count` copies gets a distinct suffix, adding meaning to `file_name`.

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?

States a specific verb and resource ('Inject a raw FileInfo FromRadio message') and then defines what that resource actually is: a handshake-only FromRadio with no MeshPacket envelope. That definition implicitly distinguishes it from the generic replay_inject and the other replay_inject_* siblings, so an agent knows which injector to pick without opening another 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?

Gives concrete when-to-use scenarios: testing a client mid-session, repeating with `count` to probe manifest capping, and sending a huge `file_name` or negative `size_bytes` to produce malformed entries. It does not explicitly state when not to use this versus replay_inject or the other injector siblings, which keeps it out of 5 territory.

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