Skip to main content
Glama

Build UDS request

build_uds_request
Read-onlyIdempotent

Build a UDS request as hex with an annotated breakdown. Services: session, ecu_reset, read_did, write_did, security_seed, security_key, tester_present, routine, request_download, transfer_data, transfer_exit, clear_dtc, read_dtc, control_dtc, comm_control, raw. Numeric strings are hex.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
onNocontrol_dtc: true = DTC setting on.
dfiNodataFormatIdentifier, default 0.
didNo
hexNoraw: bytes to pass through.
keyNosecurity_key: key bytes in hex.
ridNoroutine: e.g. "FF00".
dataNoHex payload (write_did, transfer_data, routine option record).
didsNoread_did: e.g. ["F190","F18C"].
maskNoread_dtc status mask, default FF.
sizeNorequest_download: e.g. "0x10000".
typeNosession/ecu_reset sub-function (number, hex string or name).
groupNoclear_dtc group, default FFFFFF.
levelNosecurity_seed/security_key: odd seed-request level; the key is sent with level+1.
actionNo
addressNorequest_download: e.g. "0x08000000".
controlNocomm_control control type.
counterNotransfer_data block sequence counter.
serviceYes
commTypeNocomm_control communicationType, default 01.
suppressNotester_present: set suppressPosRspMsgIndicationBit.
sizeBytesNoDefault 4.
subfunctionNoread_dtc sub-function (e.g. 2 = reportDTCByStatusMask).
addressBytesNoDefault 4.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety bar is covered. The description usefully adds output shape ('hex with an annotated breakdown') and the input convention that numeric strings are hex, both of which go beyond the structured fields.

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?

Two sentences, purpose front-loaded, no filler. The 16-service enumeration duplicates the schema enum and occupies most of the text, a minor redundancy in an otherwise tight definition.

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?

For a 23-parameter tool without an output schema, the description compensates by stating the output format and the hex-string input convention. It lacks per-service guidance on which parameters combine, though the schema descriptions cover most of that ground.

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 87%, so per-parameter meaning is largely documented in the schema. The description adds one genuinely valuable cross-cutting convention ('Numeric strings are hex') that applies to many string parameters and is not itself in the schema.

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?

States a specific verb and resource ('Build a UDS request as hex with an annotated breakdown'), plus the full set of supported services. The builder framing distinguishes it from the decode_* siblings, though it never names them explicitly.

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 enumerated service list implies when the tool is applicable, but there is no explicit when-to-use, when-not, or routing to alternatives such as decode_uds or uds_reference. Usage is inferable rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.