Skip to main content
Glama
jommar

mcp-knowledgebase

by jommar

get_keys

Retrieve primary, foreign, and unique keys across all tables to reveal table relationships for JOIN operations. Use filters and pagination to inspect keys by type and avoid token overflow.

Instructions

Get all keys (primary, foreign, unique) for all tables. This helps understand table relationships for JOIN operations. Returns primary keys, foreign keys, unique keys, and a relationships map showing how tables connect. Paginated to prevent token overflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination (1-indexed). Default: 1
limitNoNumber of keys per page. Default: 50, Max: 200
keyTypeNoFilter by key type: "primary", "foreign", "unique", or "all". Default: allall

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden. It discloses pagination ('Paginated to prevent token overflow') and describes the return contents (primary/foreign/unique keys and a relationships map). These are genuinely useful behavioral traits beyond the schema. It does not state read-only explicitly, but 'Get' and the content make that reasonably clear.

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?

Three concise sentences: purpose, value, and behavioral note. Each sentence earns its place, and key information is front-loaded. No filler or irrelevant detail.

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?

The description explains the return shape (keys and relationships map) despite the lack of an output schema, and flags pagination. It is slightly vague about the scope of 'all tables' and how the relationships map is structured, but for a fairly simple introspection tool this is adequate.

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%, so the baseline is 3. The description mentions key types compatible with the keyType enum, but it does not add meaningful parameter details beyond what the schema already documents. No compensation is needed, but also no extra value is contributed.

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 description states a specific verb ('Get') and resource ('all keys for all tables'), and specifies the key types covered (primary, foreign, unique). It also implies distinctiveness from siblings by mentioning the relationships map for JOINs, which no sibling name suggests.

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

Usage Guidelines4/5

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

The description gives clear usage context: 'This helps understand table relationships for JOIN operations.' This tells the agent when the tool is relevant. However, it does not explicitly mention alternatives or when not to use it, so it stops short of a 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jommar/mcp-knowledgebase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server