Skip to main content
Glama
RawTree MCP Server

RawTree MCP Server

Official
by rawtreedb

Insert JSON

insert-json

Inserts a JSON object or array of JSON objects into a RawTree table, auto-creating it on first insert. Use it to send events, logs, or records.

Instructions

Purpose: Insert one JSON object or an array of JSON objects into a RawTree table. RawTree auto-creates the table on first insert.

NOT for: Loading data from a public URL (use insert-from-url).

Returns: Insert confirmation, usually { "inserted": <row_count> }.

When to use:

  • User wants to send events, logs, traces, metrics, or arbitrary records to RawTree

  • You need to create a table by inserting the first row

  • You need to validate that RawTree accepts a payload shape

Workflow: Choose a table name → send a small representative payload → run describe-table or run-query to verify.

Key trigger phrases: "insert this", "send event", "write to RawTree", "create table with data", "ingest JSON"

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": {
      "table": "<table>",
      "data": "<data>"
    },
    "name": "insert-json"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesA JSON object or a non-empty array of JSON objects to insert.
tableYesTarget table name. RawTree accepts identifiers like events, traces, api_logs.
clusterNoName or ID of the cluster to use for this operation.
databaseNoOptional RawTree database override. RawTree uses the default database when omitted.
organizationNoName or ID of the organization containing the target cluster.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.10
    • changedInput schema / properties / cluster / description
      Previous value: -"RawTree cluster to use for this operation."New value: +"Name or ID of the cluster to use for this operation."
    • changedInput schema / properties / organization / description
      Previous value: -"RawTree organization containing the target cluster."New value: +"Name or ID of the organization containing the target cluster."
  2. Changed6 schema fields changedv0.3.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / cluster
      Added value: +{
      +  "description": "RawTree cluster to use for this operation.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / columns
      Removed value: -{
      -  "description": "For transform=firehose only: TSV column names matching each Firehose record line.",
      -  "items": {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / database
      Added value: +{
      +  "description": "Optional RawTree database override. RawTree uses the default database when omitted.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / organization
      Added value: +{
      +  "description": "RawTree organization containing the target cluster.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / transform
      Removed value: -{
      -  "description": "Optional RawTree built-in transform for JSON body inserts: otlp-traces, otlp-logs, otlp-metrics, cloudwatch-logs, cloudtrail, or firehose.",
      -  "enum": [
      -    "otlp-traces",
      -    "otlp-logs",
      -    "otlp-metrics",
      -    "cloudwatch-logs",
      -    "cloudtrail",
      -    "firehose"
      -  ],
      -  "type": "string"
      -}
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose two non-obvious behaviors: RawTree auto-creates the table on first insert, and the return shape is described even though no output schema exists. It omits permission/auth requirements, payload limits, and what happens on partial failure or schema conflict in an array insert.

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?

Front-loaded with Purpose and NOT-for before any detail, and the sectioned layout makes scanning easy. Slight redundancy between the 'When to use' bullets and the 'Key trigger phrases' line keeps it from being maximally tight.

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?

For a write tool with no annotations and no output schema, the description covers purpose, alternative, return value, and a verification workflow, which is enough to call it correctly. The remaining gap is operational behavior (permissions, size limits, error handling), not basic invocation.

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 is 100%, so the baseline is 3; the schema already documents data, table, cluster, database, and organization. The description adds only a light nudge toward 'a small representative payload' and table naming, with no new semantics for the cluster/database/organization scoping parameters.

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?

States a specific verb and resource ('Insert one JSON object or an array of JSON objects into a RawTree table') and immediately distinguishes itself from the nearest sibling with 'NOT for: Loading data from a public URL (use insert-from-url).' An agent can select this over insert-from-url without opening either schema.

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?

Provides an explicit exclusion with a named alternative, a three-bullet 'When to use' list, a concrete workflow (choose table → send small payload → verify with describe-table or run-query), and trigger phrases. Both the when and the when-not are stated, plus the follow-up verification step.

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