x402-bytecode-size
Bytecode Size: Returns UTF-8 byte length with KB and MB values, plus hex byte count when input starts with 0x 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | No | ||
| input | No |
Bytecode Size: Returns UTF-8 byte length with KB and MB values, plus hex byte count when input starts with 0x 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | No | ||
| input | No |
Changes observed during successful MCP inspections.
Input schema / properties / data / descriptionRemoved value: -"Data to process"Input schema / properties / input / descriptionRemoved value: -"Input to process"Input schema / properties / text / descriptionRemoved value: -"Text to process"Input schema / properties / textAdded value: +{
+ "description": "Text to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations supplied, the description carries the full burden. It does disclose the return shape (KB/MB plus hex byte count for 0x input) and the paywall model (5 free trial calls per signed wallet), which is genuinely useful. However it says nothing about error handling for empty/absent input or whether the call is a pure read, so it is only partially transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single compact sentence with the core behavior front-loaded and pricing appended; nothing is wasted, though the emoji/pricing tail slightly dilutes the technical content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple stateless calculator with no output schema, the description adequately covers the return values, but it is incomplete on the one thing that matters here: how the three interchangeable-looking input parameters relate to each other and which to supply.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Three string parameters (data, text, input) exist with 0% schema description coverage, and the description never explains which one to pass or whether they are aliases. The description only covers the output format, so the parameter ambiguity is entirely unresolved.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource: computes byte length of input, returning UTF-8 byte count with KB/MB values and hex byte count for 0x-prefixed input. It is clear what it does, but it doesn't differentiate itself from near-identical siblings such as x402-byte-count, x402-data-size, or x402-char-count, leaving the agent to guess which one to use.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use or when-not-to-use guidance, and no mention of the alternative byte/size tools. The only contextual note is the pricing line about 5 free trial calls per signed wallet, which is not usage guidance for the operation itself.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.