Skip to main content
Glama

add_ledger

Make a table of dated entries in its own section: a date column, made for you, plus the columns you name. Use one for observations that arrive on their own days rather than on the model's periods — a price series, a blotter, a general ledger — and read it from the model with the LEDGER_ aggregations, never by naming a column in a formula. Fill it with feed_fill or entries_add. spans makes a second date column for records that cover a period rather than a moment — a reported quarter, a month's bill — which LEDGER_PRORATA then shares across the periods each one covers, and a frame column saying how often each entry was reported (annual, half_year, quarterly), which is what a formula selects one frequency on — a year and its own quarters may not be aggregated together.

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": {
      "model": "<model>",
      "path": "<path>",
      "columns": "<columns>"
    },
    "name": "add_ledger"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe section it occupies, e.g. `fx` or `market.prices`. It must not exist yet.
modelYesModel uid (`model_…`), from model_list.
spansNoMake a `starts` column beside the date column, so an entry may cover a period rather than a moment — the date column then holds where its span *ends*. Only LEDGER_PRORATA reads it: every other aggregation still books each entry on its own day. Use it for records that are about a span (a reported quarter, a month's electricity) and leave it off for observations of a moment (a price, a posting).
titleNo
columnsYes
undatedNoA table whose entries have no day of their own — a chart of accounts, a list of products, a mapping from codes to names. No date column is made, its entries are booked without one, and no LEDGER_ aggregation books them into a period: it is read by its other columns. Leave it off for anything that happened on a day.
dateFieldNoThe local name of the date column. Default `date`; every aggregation buckets by it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: formula columns 'store nothing,' category columns store an index into a closed list that is shared across columns, and span semantics only affect LEDGER_PRORATA while every other aggregation books entries on their own day. It does not cover reaction to a path that already exists beyond the schema's note, but the extra semantics are substantial.

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 purpose and the fill/read mechanics are front-loaded in the first two sentences, and the spans/frame material follows logically. Every clause carries information, but the final sentence is a long em-dash run-on that mixes spans, LEDGER_PRORATA, frame frequency, and a mixing warning, which hurts scanability more than length does.

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 7-parameter creation tool with no output schema, the description covers the shape of the created object, how it is populated, how it is read, and the two structural variants (spans, undated) that change what gets created. An agent can decide to call it and predict the resulting ledger's behavior from this text alone.

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 coverage is 71%, so the schema already carries much of the parameter meaning, and the description largely restates it (spans, undated, date column) rather than adding syntax or edge-case detail. It does contribute one thing the schema lacks, the `frame` column describing reporting frequency and the rule that a year and its own quarters may not be aggregated together, but that is also the definition's least clear passage because no `frame` parameter exists.

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 opening states a concrete verb and resource: 'Make a table of dated entries in its own section: a date column ... plus the columns you name.' It goes further by naming the resources that fill it (feed_fill, entries_add) and the mechanism that reads it (LEDGER_ aggregations), which lets an agent distinguish it from sibling mutation tools without opening the 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?

It gives an explicit when-to-use rule ('observations that arrive on their own days rather than on the model's periods — a price series, a blotter, a general ledger') and explicit alternatives: feed_fill or entries_add to populate, LEDGER_ aggregations to read, and 'never by naming a column in a formula.' It also carves out the two variant cases with their own guidance: spans for period-covering records vs. moments, and undated for tables with no day at all.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources