Skip to main content
Glama

read_database_object

Read-onlyIdempotent

Deserialize a compressed GFF blob stored in a campaign database and return it as parsed GFF JSON, so you can inspect creatures, items, and other saved objects by database filename and variable name.

Instructions

Deserialize a compressed GFF blob (creature, item, etc.) from a campaign database. Returns the object as parsed GFF 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": {
      "database": "<database>",
      "varname": "<varname>"
    },
    "name": "read_database_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
varnameYesVariable name in the db table (e.g. 'HENCH_TAGID_001')
databaseYesDatabase filename (e.g. 'mymodule' or 'mymodule.sqlite3')
playeridNoPlayer ID filter (default: empty string)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds genuinely new context beyond the annotations: it explains that the stored data is a compressed blob and that the result is returned as parsed GFF JSON, which matters since there is no output schema. It omits failure behaviour when the varname does not exist, which keeps it from a 5.

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

Conciseness5/5

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

Two tight sentences, with the operation stated first and the return value second. Every phrase carries information and there is no redundant restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read tool with annotations and no output schema, the definition covers purpose and return format adequately. It leaves open what happens on a missing varname and how playerid affects the lookup, which are meaningful gaps for an agent constructing a call.

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%, with each of the three parameters documented in the schema itself (varname example, database filename, playerid default). The description adds no further meaning about parameter interaction or formatting beyond that baseline, so the expected 3 applies.

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 specific verb and resource: 'Deserialize a compressed GFF blob (creature, item, etc.) from a campaign database', which is precise enough for an agent to understand the operation. It implicitly contrasts with write_database_object through the read-oriented wording, but never names a sibling explicitly, so it falls short of full differentiation.

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 phrase 'from a campaign database', signalling that this is the read path for stored objects. However, the description never says when to prefer this over query_database or write_database_object, and gives no prerequisites or exclusions.

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

Deploy Server

Other Tools