Skip to main content
Glama

util_protobuf_decode

Read-only

Protobuf wire decoder (schemaless) — Decode raw Protocol Buffers bytes without a .proto: data= hex (spaces/0x ok) or base64/base64url (format= to force). Returns every field with number, wire type and byte offset; varints as uint, int64 (two's complement) and zigzag sint; fixed32/fixed64 as integer and float/double; length-delimited fields classified as UTF-8 string, nested message (recursive, max_depth= default 12, max 32) or bytes with hex/base64 plus packed varint/float/double readings; legacy groups supported. Also a compact json view keyed by field number (repeated fields become arrays). grpc=true strips a 5-byte gRPC frame prefix. Invalid wire data returns 422 with the failing offset. Max 200,000 bytes. Price: $0.002 USDC (Base, via x402).

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": {
      "data": "<data>"
    },
    "name": "util_protobuf_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes0a0548656c6c6f10a01f1a0408011002

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the read-only/non-destructive safety profile, and the description goes well beyond them: byte-offset reporting for every field, recursive nesting with max_depth default 12 / max 32, a 200,000-byte cap, a 422 response carrying the failing offset, and an x402 price of $0.002 USDC. These are exactly the operational facts an agent needs before invoking.

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 purpose, then output shape, then edge cases, limits and price — every clause conveys a distinct fact. It is dense and reads as one long sentence chain, which costs a small amount of scannability but no clause is filler.

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?

No output schema exists, yet the description fully specifies the return shape (field number, wire type, offset, typed interpretations, classification of length-delimited fields, compact JSON view) along with error formatting and size limits. For a single-parameter decoder this is essentially complete.

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% and contains only an opaque hex example, so the description carries real weight by explaining that data accepts hex (spaces/0x tolerated) or base64/base64url. However, it references format=, max_depth= and grpc= which are absent from the declared input schema, creating a mismatch an agent could stumble on.

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 ('Protobuf wire decoder (schemaless) — Decode raw Protocol Buffers bytes without a .proto'), plus the key differentiator that no schema file is required. Against siblings like util_cbor or util_base64 this is instantly distinguishable.

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 clear triggering context (raw protobuf bytes with no .proto available), input-format selection rules (hex with spaces/0x, base64/base64url, format= to force), and the grpc=true case for framed payloads. It never names an alternative decoder to use instead when a .proto IS available, so it falls short of explicit routing.

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.

Resources