Skip to main content
Glama
Crocodile

Crocodile

collect

Subscribe to live crypto or equity venue streams and persist every incoming record into the local lake, with optional duration limits and dead-letter reporting for failed writes.

Instructions

Subscribe to live venues and write every record into the lake.

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": {
      "sources": "<sources>",
      "channels": "<channels>"
    },
    "name": "collect"
  }
}

Input Schema

NameRequiredDescriptionDefault
micNo
countryNo
sourcesYes
symbolsNo
channelsYes
asset_classNoWhich market answers. Inferred from the symbol's source when omitted.
max_reconnectsNo
dlq_report_pathNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.4.0
    • changedInput schema / $defs / CollectParams / description
      Previous value: -"Parameters for ``collect``, identical for both asset classes.\n\n    ``sources`` rather than ``exchanges`` or ``providers``. The two forks named the same\n    thing twice and ``core.store.migrate`` already settled the merged spelling — the lake's\n    top-level partition key is ``source=``, and the parameter that decides it should not\n    disagree with the directory it produces.\n\n    Two fields come from the crypto signature and have no equity counterpart, and they are\n    resolved in opposite directions:\n\n    ``data_dir`` is **gone**. It is the lake root, which\n    :attr:`CapabilityContext.settings <crocodile.core.capability.CapabilityContext.settings>`\n    already knows; a caller-supplied lake root in a published schema is a network caller\n    choosing where the server writes.\n\n    ``dlq_report_path`` **stays**, equity-ignored, on the argument ``SlippageParams`` makes\n    for ``size_unit``: an optional parameter costs a caller that omits it nothing, while\n    dropping it deletes the only way to say where a crypto run's dead-letter report lands.\n    Equity providers have no dead-letter queue at all, so there is nothing there for it to\n    mean and nothing lost by its being ignored."New value: +"Parameters for ``collect``, identical for both asset classes.\n\n    ``sources`` rather than ``exchanges`` or ``providers``. The two forks named the same\n    thing twice and ``core.store.migrate`` already settled the merged spelling — the lake's\n    top-level partition key is ``source=``, and the parameter that decides it should not\n    disagree with the directory it produces.\n\n    Two fields come from the crypto signature and have no equity counterpart, and they are\n    resolved in opposite directions:\n\n    ``data_dir`` is **gone**. It is the lake root, which\n    :attr:`CapabilityContext.settings <crocodile.core.capability.CapabilityContext.settings>`\n    already knows; a caller-supplied lake root in a published schema is a network caller\n    choosing where the server writes.\n\n    ``dlq_report_path`` **stays**, on the argument ``SlippageParams`` makes for\n    ``size_unit``: an optional parameter costs a caller that omits it nothing, while dropping\n    it deletes the only way to say where a run's dead-letter report lands. Both halves honour\n    it now: equity providers mirror their dead letters into ``<data_dir>/dlq/`` (spec 3.9), and\n    an equity run drains them into this report, or into ``state/runs/<run_id>-dlq.json`` under\n    the lake root when no path is given.\n\n    ``mic`` and ``country`` slice an equity run through the universal sources (spec 3.11):\n    ``sources=(\"universal\",)`` resolves the listings from the listing master, so ``symbols``\n    may then be empty. Named symbols poll delayed intraday bars; a market slice collects the\n    end-of-day session of every market in it. A crypto run refuses both dimensions."
    • addedInput schema / $defs / CollectParams / properties / country
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / $defs / CollectParams / properties / mic
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / $defs / CollectParams / properties / symbols / default
      Added value: +[]
    • changedInput schema / $defs / CollectParams / required
      Previous value: -[
      -  "sources",
      -  "symbols",
      -  "channels"
      -]New value: +[
      +  "sources",
      +  "channels"
      +]
    • changedInput schema / description
      Previous value: -"Parameters for ``collect``, identical for both asset classes.\n\n    ``sources`` rather than ``exchanges`` or ``providers``. The two forks named the same\n    thing twice and ``core.store.migrate`` already settled the merged spelling — the lake's\n    top-level partition key is ``source=``, and the parameter that decides it should not\n    disagree with the directory it produces.\n\n    Two fields come from the crypto signature and have no equity counterpart, and they are\n    resolved in opposite directions:\n\n    ``data_dir`` is **gone**. It is the lake root, which\n    :attr:`CapabilityContext.settings <crocodile.core.capability.CapabilityContext.settings>`\n    already knows; a caller-supplied lake root in a published schema is a network caller\n    choosing where the server writes.\n\n    ``dlq_report_path`` **stays**, equity-ignored, on the argument ``SlippageParams`` makes\n    for ``size_unit``: an optional parameter costs a caller that omits it nothing, while\n    dropping it deletes the only way to say where a crypto run's dead-letter report lands.\n    Equity providers have no dead-letter queue at all, so there is nothing there for it to\n    mean and nothing lost by its being ignored."New value: +"Parameters for ``collect``, identical for both asset classes.\n\n    ``sources`` rather than ``exchanges`` or ``providers``. The two forks named the same\n    thing twice and ``core.store.migrate`` already settled the merged spelling — the lake's\n    top-level partition key is ``source=``, and the parameter that decides it should not\n    disagree with the directory it produces.\n\n    Two fields come from the crypto signature and have no equity counterpart, and they are\n    resolved in opposite directions:\n\n    ``data_dir`` is **gone**. It is the lake root, which\n    :attr:`CapabilityContext.settings <crocodile.core.capability.CapabilityContext.settings>`\n    already knows; a caller-supplied lake root in a published schema is a network caller\n    choosing where the server writes.\n\n    ``dlq_report_path`` **stays**, on the argument ``SlippageParams`` makes for\n    ``size_unit``: an optional parameter costs a caller that omits it nothing, while dropping\n    it deletes the only way to say where a run's dead-letter report lands. Both halves honour\n    it now: equity providers mirror their dead letters into ``<data_dir>/dlq/`` (spec 3.9), and\n    an equity run drains them into this report, or into ``state/runs/<run_id>-dlq.json`` under\n    the lake root when no path is given.\n\n    ``mic`` and ``country`` slice an equity run through the universal sources (spec 3.11):\n    ``sources=(\"universal\",)`` resolves the listings from the listing master, so ``symbols``\n    may then be empty. Named symbols poll delayed intraday bars; a market slice collects the\n    end-of-day session of every market in it. A crypto run refuses both dimensions."
    • addedInput schema / properties / country
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / mic
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / symbols / default
      Added value: +[]
    • changedInput schema / required
      Previous value: -[
      -  "sources",
      -  "symbols",
      -  "channels"
      -]New value: +[
      +  "sources",
      +  "channels"
      +]
  2. First observedv0.3.2

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the whole burden and falls well short. It hints that the operation is a live subscription that persists 'every record', but says nothing about whether it blocks, its run duration, reconnection/retry handling, dead-letter reporting, permissions, or that it mutates lake state -- all of which matter for a 9-parameter streaming write.

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?

A single short sentence, front-loaded with the action and the resource, with no filler. It is efficient, though the brevity is partly under-specification rather than disciplined editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter, dual-asset-class streaming write with no annotations and no output schema, one sentence is far from complete. Critical operating facts -- blocking vs background, duration, reconnect limits, where lake output lands, and what a run returns -- are absent from the description.

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 description coverage per-parameter is only 11%, but the schema's class-level docstring does explain most fields (sources, mic, country, dlq_report_path, asset_class inference), so the removal of data_dir and the dual asset-class behaviour are still discoverable. The tool description itself adds no parameter meaning at all, so it neither compensates nor worsens the situation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

It gives a verb pair and a resource: subscribe to live venues and write records into the lake, which conveys live streaming ingestion followed by persistence. But it never says what a 'venue' is (exchange/feed), never mentions asset classes, and does nothing to separate it from siblings such as collect-market or backfill, so an agent cannot place it precisely among alternatives.

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

Usage Guidelines2/5

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

The word 'live' implicitly contrasts with historical ingestion, but no explicit when-to-use statement, prerequisites, or alternative tool is named. The agent is left to infer that backfill handles past data and that collect is for ongoing subscription.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.