Skip to main content
Glama

Create HTTP/WebSocket data source

create_data_source_http_ws

Create HTTP polling or WebSocket data sources with custom methods, headers, body, and JSONPath selectors mapping fields to CHOP channels.

Instructions

Advanced live-data ingest for HTTP polling and WebSocket streams — the richer-transport sibling of create_data_source. http_poll: webclientDAT driven by a timerCHOP so polling cadence is a real CHOP signal you can retune/sync; supports custom HTTP method, headers, and body. websocket: websocketDAT with auto-reconnect, persistent connection. Both: JSONPath-lite selectors ($.key, $.key.sub, $.arr[0].field — no wildcards/filters) map response fields to named channels on an output Null CHOP ready for bind_to_channel. Raw body exposed on a Null DAT. Use create_data_source for simple one-knob JSON/CSV polling; use this tool when you need real POST/headers, fine-cadence timer sync, or a WebSocket stream.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesEndpoint URL. http(s):// for http_poll; ws:// or wss:// for websocket. Note: webclientDAT runs inside TD (no browser CORS). wss:// with self-signed certs may silently fail (statusCode 0). JSONPath selector support: $.name, $.key.sub, $.arr[0].field — no wildcards or filters.
bodyNoRequest body. http_poll only; caller pre-serializes JSON.
modeNoTransport.http_poll
nameNoBase name for the created baseCOMP; defaults to data_src_<mode>.
methodNoHTTP method. http_poll only; ignored for websocket.get
headersNoRequest headers (http_poll) or connect headers (websocket; best-effort, param may vary by TD build).
selectorsYesJSONPath-lite selectors. Each name becomes a Null CHOP channel and must be unique. path must start with $. Supported: $.key, $.key.sub, $.arr[0], $.arr[0].key. Non-numeric or missing values fall back to 0 with a warning.
parent_pathNoCOMP to build inside./project1
poll_secondsNoPolling interval in seconds. http_poll only; drives the timerCHOP cycle.
static_sampleNoSeed values keyed by selector name. Missing names default to 0.5.
expose_controlsNoSurface live Active, Poll/Reconnect, and per-selector LastValue readouts.
reconnect_secondsNoSeconds between reconnect attempts. websocket only.
Behavior4/5

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

Annotations indicate readOnly=false, destructive=false, and openWorld=true. The description adds valuable behavioral context beyond these hints: it explains the underlying mechanisms (webclientDAT, timerCHOP, websocketDAT with auto-reconnect), the JSONPath-lite selector limits, fallback behavior for non-numeric values, and the self-signed certificate silent failure noted in the URL parameter. It does not explicitly mention the side effect of creating nodes in the project or continuous network activity, but the 'create' verb and openWorld hint imply this. Overall, it's rich detail without contradiction.

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?

The description is about six sentences, longer than the ideal two-sentence example, but every sentence carries essential information: mode differences, selector syntax, output handling, and usage guidance. It is structured with clear labels (http_poll, websocket, Both) and front-loaded purpose. It is dense but not wasteful, so a 4 is appropriate.

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?

For a tool with 12 parameters, nested objects, no output schema, and external I/O, this description is exceptionally complete. It covers both modes, the selector language, the generated artifacts (Null CHOP, Null DAT), the fallback semantics, and the differentiation from the simpler sibling. Combined with 100% schema description coverage and annotations, the agent has all the context needed to select and invoke the tool correctly.

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 description coverage is 100%, so the baseline is 3. The description adds architectural context beyond the schema by explaining how polling cadence is tied to a timerCHOP and how websocketDAT manages reconnects, which deepens understanding of parameters like poll_seconds and reconnect_seconds. It also clarifies the selectors' mapping to output channels. This goes beyond what the schema already provides, justifying a 4.

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 opens with a specific verb and resource: 'Advanced live-data ingest for HTTP polling and WebSocket streams' and immediately distinguishes itself as 'the richer-transport sibling of create_data_source.' This clearly states what the tool does and differentiates it from its sibling, making the purpose unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The final sentence provides explicit usage guidance: 'Use create_data_source for simple one-knob JSON/CSV polling; use this tool when you need real POST/headers, fine-cadence timer sync, or a WebSocket stream.' This names the alternative, states when to use this tool, and when not to, which is exactly what the dimension requires.

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/lucasmaher-hash/touch-designer-mcp'

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