Skip to main content
Glama

Read the lambda's database

read_database
Read-onlyIdempotent

The lambda's database - its records, shared by every version: whether it is switched on, how full it is, and its tables and views with their columns and how many rows each holds. With table, a page of that table's rows, newest first, up to 100 at a time. Read only: the lambda writes it, through Database.GetConnection(). Use it to see that migrations were applied and records were written. With feature, that feature's copy.

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": {
      "privateKey": "<privateKey>"
    },
    "name": "read_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows to read.
orderNoA column to sort by; left out, the order the rows were written in.
tableNoA table or view to read the rows of; left out, the tables are listed.
offsetNoRows to skip, for the next page.
featureNoRead this feature's copy of the database instead.
ascendingNoOldest or smallest first, rather than newest or largest.
privateKeyYesThe editor key, or the key of a demo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / ascending / default
      Added value: +false
    • addedInput schema / properties / limit / default
      Added value: +20
    • changedInput schema / properties / limit / description
      Previous value: -"Rows to read, up to 100. Left out, 20."New value: +"Rows to read."
    • addedInput schema / properties / limit / maximum
      Added value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / offset / default
      Added value: +0
    • addedInput schema / properties / offset / maximum
      Added value: +2147483647
    • addedInput schema / properties / offset / minimum
      Added value: +0
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so the safety profile is known; the description nonetheless reinforces it and adds value beyond the annotations by explaining that writes happen inside the lambda via Database.GetConnection(), that rows come back newest-first, and that pages cap at 100. It stops short of describing the shape of the listing response or what 'switched on' and 'how full it is' concretely mean.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

There is little waste, but the first sentence is a long, comma-spliced run-on ('its records, shared by every version: whether it is switched on, how full it is, and its tables and views with their columns and how many rows each holds') that is harder to parse than the content warrants. The information is front-loaded, but the structure could be broken up for faster scanning.

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 read-only tool with no output schema and seven fully documented parameters, the description covers both modes (schema listing and paged row reading), the feature-scoped variant, page size, and ordering. An agent has enough to call it correctly without further context.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema cannot: 'table' plus 'limit'/'offset' produces a page of that table's rows newest-first, capped at 100, and 'feature' swaps in a feature-scoped copy. That interaction between parameters is genuinely extra information, though ordering via 'order'/'ascending' is left to the schema.

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 names a concrete resource (the lambda's database, its tables, views, columns and row counts) and a concrete mode switch (with table, a page of that table's rows). It is more specific than the bare verb+resource, but the opening is a dense noun phrase rather than a clean 'Read X' statement, and it never distinguishes itself from siblings like read_lambda or analytics.

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

Usage Guidelines3/5

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

'Use it to see that migrations were applied and records were written' gives a real usage cue for the listing mode. There is, however, no guidance on when not to use it, no mention of the sibling tools (analytics, read_lambda, enable_data) that might read the same data, and no note that privateKey/auth is required to get anything back.

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.