Skip to main content
Glama

Create data source

create_data_source

Ingest live external data from URLs (JSON/CSV), OSC messages, or serial devices into TouchDesigner channels and tables, ready to bind to visualizations and controls.

Instructions

Ingest live external data onto a binding-ready channel/table — the input counterpart to create_data_visualization and bind_to_channel. 'json'/'csv' poll a URL with a Web Client DAT (and cook from a static sample of fields when no url is given, so it works offline); 'osc' listens on a UDP port; 'serial' reads a device. Numeric fields become channels on an output Null CHOP (named for each key) so other tools can bind to them; the raw text is exposed on a Null DAT. Live OSC/serial values only appear when a sender/device is present.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoWhere the data comes from: 'json' or 'csv' poll a URL with a Web Client DAT (or, with no url, cook from a static sample so it works offline), 'osc' listens for OSC messages on a UDP port, 'serial' reads a serial device. json/csv always cook; osc/serial only carry values once a sender/device is present.json
parent_pathNoCOMP to build the data source inside./project1
nameNoBase name for the created sub-network.
urlNo(json/csv) Endpoint the Web Client DAT fetches. When omitted the network still cooks from a static sample so other tools have channels to bind to.
portNo(osc) UDP port to listen on. Defaults to 7000.
deviceNo(serial) Serial port, e.g. 'COM3' on Windows or '/dev/tty.usbserial' on macOS.
baudNo(serial) Baud rate.
fieldsNoNumeric keys to extract. Each becomes a channel on the output Null CHOP (named for the key) so create_data_visualization / bind_to_channel can bind to it, and a column in the offline sample table.
poll_secondsNo(json/csv) How often the Web Client DAT re-fetches the URL.
expose_controlsNoSurface live 'Active' and 'Poll' controls on the source operator.
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), the description discloses detailed behavioral traits: offline cooking behavior when no URL is given, that live OSC/serial values appear only when a sender/device is present, and the output format (Null CHOP for numeric fields, Null DAT for raw text). No contradictions with annotations.

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 a single paragraph containing all necessary information without redundancy, but it is relatively long (123 words). The structure is logical: main purpose, kind-specific details, then output behavior. Could be slightly more concise but remains effective.

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?

Given the complexity (10 params, no output schema), the description fully covers the tool's behavior: it explains offline fallback, live data conditions, output format, and binding capability. It leaves no significant gaps for an intelligent agent to infer.

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?

The input schema already provides 100% description coverage for parameters. However, the description adds value by summarizing how parameters relate to each other (e.g., url and kind interaction, fields becoming channels) and explaining the overall output structure beyond individual parameter descriptions.

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 'Ingest live external data onto a binding-ready channel/table', specifies the four kinds (json, csv, osc, serial) and contrasts itself as the 'input counterpart' to create_data_visualization and bind_to_channel, distinguishing it from sibling tools.

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?

The description provides context for when to use each kind (e.g., 'json/csv poll a URL', 'osc listens on a UDP port') and identifies related tools (create_data_visualization, bind_to_channel). However, it does not explicitly state when not to use this tool or offer direct alternatives, leaving some room for inference.

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/Pantani/tdmcp'

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