Skip to main content
Glama

database_graph_schema

Read-onlyIdempotent

Every relationship in the database as a traversal names it: foreign keys (fk:), virtual foreign keys (vfk:) and edge labels with their counts (edge:), with the tables at each end, whether the referencing column is indexed, and columns named like *_id that look like a relationship without being declared one. Proposed edges awaiting review are counted separately. Free.

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": {
      "productId": "<productId>",
      "databaseId": "<databaseId>"
    },
    "name": "database_graph_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
productIdYesProduct identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d.
databaseIdYesDatabase identifier, from product_get or database_get.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, so the description is not needed for safety disclosure; instead it earns credit by detailing the shape of what comes back, including the separate accounting of proposed-but-unreviewed edges. 'Free' adds a useful billing fact not present in structured fields. It does not say whether the result is bounded or paginated despite claiming 'every relationship,' 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.

Conciseness4/5

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

It is compact and front-loaded with the deliverable before the identifier formats, and each parenthetical carries real information rather than filler. The single heavily-claused sentence is dense and takes effort to parse, but no sentence is wasteful.

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 carries the return-value burden itself and does so thoroughly by enumerating the fields and edge categories. The only meaningful gap for a tool that claims to return every relationship is any statement about result size, grouping, or truncation.

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% and both parameters carry their own descriptions (including the pattern example for productId and the pointer to product_get/database_get for databaseId). The description adds no additional meaning about them, which is the expected baseline when the schema already does the work.

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 resource (every relationship/edge in the database) and enumerates exactly what is returned: fk:<constraint>, vfk:<id>, edge:<label> with counts, endpoint tables, index status, and undeclared *_id columns. That is far more concrete than a title restatement. It does not explicitly contrast itself with database_graph_traverse or database_graph_infer, so it stops short of full sibling 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 only implied: the phrase 'as a traversal names it' hints that these labels are the vocabulary you feed to database_graph_traverse, and 'Free' signals there is no cost barrier to calling it. There is no explicit when-to-use or when-not-to-use statement, and no alternative is named for cases where the agent wants inferred or reviewed edges instead.

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