Skip to main content
Glama
baxtheman

mcp-lnav-canbus

by baxtheman

scan_payload_for_value

Scan CAN bus payload frames for a specific decimal value, searching across byte offsets with configurable endianness and limits.

Instructions

Scan CAN bus payload bytes for a specific decimal value.

Searches for frames where consecutive bytes in the payload match the binary representation of the given decimal value. Supports both big-endian and little-endian byte orders.

Args: byte_value: Decimal value to search for (0 to unlimited, auto-calculates byte width) endianness: Byte order ("big" or "little"), default: "big" start_offset: Start searching from this byte offset (default: 0) end_offset: Stop searching at this byte offset (default: None, searches to end) limit: Maximum frames to return (default: 1000) session_id: Session identifier

Returns: Matching frames with match position and context

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
byte_valueYes
end_offsetNo
endiannessNobig
session_idNo
start_offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It discloses matching logic (consecutive bytes, binary representation, endianness), offset handling, and auto-calculated byte width. It lacks explicit mention of side effects, but the read-only nature is evident from the return of matching frames.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is a concise summary, followed by well-structured Args and Returns sections. No fluff or redundancy exists; every line contributes to understanding the tool's operation.

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?

The description covers all six parameters, matching behavior, and return format. Even though an output schema exists, the description adds useful context about what constitutes a match and the byte-width calculation. It is complete for a search tool with moderate complexity.

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

Parameters5/5

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

The schema has zero descriptions for its properties, but the description's Args block thoroughly explains each parameter (byte_value, endianness, offsets, limit, session_id) with meanings and defaults. This adds significant value beyond the schema and fully compensates for the lack of property descriptions.

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 clearly states 'Scan CAN bus payload bytes for a specific decimal value', using a specific verb+resource. It adds details about binary representation and endianness, distinguishing it from sibling tools like query_can_messages or analyze_payload_noise.

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 usage is implied through the action description, but there is no explicit guidance on when to use this tool vs alternatives or when not to use it. No reference to sibling tools or exclusions is provided, so the context is clear but not explicitly guided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/baxtheman/mcp-lnav-canbus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server