Skip to main content
Glama

Read database

db_get
Read-only

Read the artifact's shared database (any role can read). A document path (collection/docId) returns { id, exists, data } with data null when missing; a collection path returns { docs: [{ id, data }] }.

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": {
      "id": "<id>",
      "path": "<path>"
    },
    "name": "db_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds non-obvious behavior beyond that: any role may read, and a missing document returns exists/data with data null rather than erroring, which materially affects error handling.

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?

Two sentences, zero filler, and the path-mode distinction is front-loaded immediately after the purpose statement. The return-shape notation is dense but readable.

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?

With no output schema, the description correctly spends its space documenting return shapes for both the document and collection cases. The one meaningful gap is the unexplained `id` parameter relative to a 0% documented schema.

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 0%, so the description carries the burden. It does clarify that `path` encodes either 'collection/docId' or a collection, which is the key semantic distinction, but the required `id` parameter is never explained (presumably the artifact id) and no format or validation hints are given.

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?

States a specific verb and resource ('Read the artifact's shared database') and immediately characterizes the two path modes. It does not differentiate from the closely related sibling db_query, so an agent must infer the split between a keyed get and a query.

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?

Usage is implied by the two path forms and the '(any role can read)' permission note, which is genuinely useful. However, there is no explicit statement of when to prefer this over db_query or db_set/db_delete siblings, nor any prerequisite or exclusion.

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