Skip to main content
Glama

udp_recv

Receive UDP datagrams with configurable timeout and max packet count. Each packet includes source address, port, length, and data as base64 or text.

Instructions

Receive one or more UDP datagrams (up to max_packets). timeout_seconds=0 (default) is non-blocking; >0 waits for at least one packet. Each packet includes source address/port, length, base64 data, and optional text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
socket_idYes
max_packetsNo
timeout_secondsNo

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 full burden. It details blocking/non-blocking behavior via timeout_seconds and describes the packet structure (source address/port, length, base64 data, optional text). However, it omits edge cases like empty results, errors, or buffer limitations.

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 description is two sentences, front-loads the primary action, and avoids redundant information. Every sentence adds value without unnecessary elaboration.

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?

Given the tool's complexity (3 params, output schema exists), the description covers core usage and packet details. It lacks some context like error handling or the need to previously open a socket via udp_open, but is sufficient for correct invocation with the output schema filling return structure.

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

Parameters3/5

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

Schema coverage is 0%, so description should explain parameters. It adds meaning for max_packets ('up to max_packets') and timeout_seconds (blocking vs non-blocking), but does not explain socket_id or clarify default behaviors beyond the schema's defaults.

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 the tool's action: 'Receive one or more UDP datagrams'. It specifies the resource (UDP datagrams) and scope (up to max_packets). This distinguishes it from sibling tools like tcp_recv which handles TCP, providing clear differentiation.

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 description implies usage for receiving UDP datagrams and explains timeout behavior, but it does not explicitly state when to use this tool over alternatives (e.g., socket_poll, tcp_recv). No prerequisites or exclusions are mentioned, leaving the agent to infer context.

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/cinit/mcp-socket'

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