Skip to main content
Glama
Crocodile

Crocodile

backfill

Fetch a bounded historical range from a venue's REST API and write it straight into the local Parquet lake, covering crypto and US equity gaps.

Instructions

Fetch a historical range from a venue's REST API 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": {
      "channel": "<channel>",
      "start_ns": "<start_ns>",
      "end_ns": "<end_ns>"
    },
    "name": "backfill"
  }
}

Input Schema

NameRequiredDescriptionDefault
micNo
end_nsYes
marketNospot
sourceNo
channelYes
countryNo
sourcesNo
symbolsNo
categoryNolinear
intervalNo1m
start_nsYes
inst_typeNoSWAP
oi_periodNo5m
asset_classNoWhich market answers. Inferred from the symbol's source when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv0.4.0
    • changedInput schema / $defs / BackfillParams / description
      Previous value: -"Parameters for ``backfill``: a bounded historical fetch, written straight to the lake.\n\n    The five venue-shaped fields at the bottom are the crypto REST APIs' own vocabulary and\n    are equity-ignored, on the argument ``SlippageParams`` makes for ``size_unit``: dropping\n    them deletes the only way to reach a Binance USD-M market or an OKX swap, and an equity\n    caller that omits them pays nothing."New value: +"Parameters for ``backfill``: a bounded historical fetch, written straight to the lake.\n\n    The five venue-shaped fields at the bottom are the crypto REST APIs' own vocabulary and\n    are equity-ignored, on the argument ``SlippageParams`` makes for ``size_unit``: dropping\n    them deletes the only way to reach a Binance USD-M market or an OKX swap, and an equity\n    caller that omits them pays nothing.\n\n    ``sources`` and ``mic``/``country`` are the equity universal side (spec 3.11): the alias\n    ``universal`` (or a universal source) runs the orchestrator over the listing master, which\n    writes daily history and corporate actions only, so ``interval`` stays a crypto parameter\n    and ``symbols`` may be empty when a market is named. ``source`` and ``sources`` are\n    alternatives; a crypto backfill refuses ``sources``."
    • addedInput schema / $defs / BackfillParams / properties / country
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / $defs / BackfillParams / properties / mic
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / $defs / BackfillParams / properties / source / default
      Added value: +""
    • addedInput schema / $defs / BackfillParams / properties / sources
      Added value: +{
      +  "default": [],
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / $defs / BackfillParams / properties / symbols / default
      Added value: +[]
    • changedInput schema / $defs / BackfillParams / required
      Previous value: -[
      -  "source",
      -  "channel",
      -  "symbols",
      -  "start_ns",
      -  "end_ns"
      -]New value: +[
      +  "channel",
      +  "start_ns",
      +  "end_ns"
      +]
    • changedInput schema / description
      Previous value: -"Parameters for ``backfill``: a bounded historical fetch, written straight to the lake.\n\n    The five venue-shaped fields at the bottom are the crypto REST APIs' own vocabulary and\n    are equity-ignored, on the argument ``SlippageParams`` makes for ``size_unit``: dropping\n    them deletes the only way to reach a Binance USD-M market or an OKX swap, and an equity\n    caller that omits them pays nothing."New value: +"Parameters for ``backfill``: a bounded historical fetch, written straight to the lake.\n\n    The five venue-shaped fields at the bottom are the crypto REST APIs' own vocabulary and\n    are equity-ignored, on the argument ``SlippageParams`` makes for ``size_unit``: dropping\n    them deletes the only way to reach a Binance USD-M market or an OKX swap, and an equity\n    caller that omits them pays nothing.\n\n    ``sources`` and ``mic``/``country`` are the equity universal side (spec 3.11): the alias\n    ``universal`` (or a universal source) runs the orchestrator over the listing master, which\n    writes daily history and corporate actions only, so ``interval`` stays a crypto parameter\n    and ``symbols`` may be empty when a market is named. ``source`` and ``sources`` are\n    alternatives; a crypto backfill refuses ``sources``."
    • 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 / source / default
      Added value: +""
    • addedInput schema / properties / sources
      Added value: +{
      +  "default": [],
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / symbols / default
      Added value: +[]
    • changedInput schema / required
      Previous value: -[
      -  "source",
      -  "channel",
      -  "symbols",
      -  "start_ns",
      -  "end_ns"
      -]New value: +[
      +  "channel",
      +  "start_ns",
      +  "end_ns"
      +]
  2. First observedv0.3.2

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. "Into the lake" usefully signals that this is a write/persist operation rather than a pure read, but nothing is said about runtime, async/job behavior, rate limits, whether existing data is overwritten, or what the caller gets back on completion.

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 front-loaded sentence with no filler or repetition. It is efficient, though its brevity reads as under-specification for a 14-parameter write tool rather than deliberate density.

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 14-parameter tool with no annotations and no output schema, one sentence is far too thin. Missing: the asset_class crypto/equity fork, that crypto rejects sources, that symbols may be empty for a named market, and any indication of what a completed backfill produces.

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

Parameters2/5

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

Schema description coverage is 7% (only asset_class is described inline), and the tool description mentions no parameters at all — not the required channel/start_ns/end_ns, not source vs sources, not interval. The nested BackfillParams docstring does explain the crypto venue fields and the universal/equity side, which rescues usability, but that value sits in the schema rather than in the description being evaluated.

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

Purpose4/5

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

The description gives a specific verb and resource: "Fetch a historical range from a venue's REST API into the lake," which conveys both the bounded historical scope and the destination (the lake). It does not distinguish this from plausible siblings such as collect, collect-market, or export, leaving the agent to infer that "backfill" vs "collect" is a historical-vs-live split.

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?

There is no when-to-use, when-not-to-use, or alternative-tool guidance in the description. The important routing decision between the crypto REST path and the equity "universal" orchestrator path is documented only in the nested BackfillParams docstring, not in the tool description the agent sees first.

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