Skip to main content
Glama

create_link

Idempotent

Declare a link: the columns two tables join on. from_columns (on table_id) pair by position with to_columns (on to_table_id); several pairs are ONE composite key (one call per independent link). Pair order and table order do not matter; declaring it again answers already_exists. Columns must exist with joinable types (same type, or a string against a list of strings on a one-column link); tables may be empty. Once both hold rows, audit_link measures it. Declare only joins you know are real, checked with run_sql first (key unique, values present on both sides): run_sql and the next agent trust them. Needs edit access to one table (a catalog table needs it on the other side), both inside this connection's organization.

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": {
      "table_id": "<table_id>",
      "to_table_id": "<to_table_id>",
      "from_columns": "<from_columns>",
      "to_columns": "<to_columns>"
    },
    "name": "create_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
table_idYesOne side of the link.
to_columnsYesColumn ids on `to_table_id`, paired by position with `from_columns`. The order of the pairs does not matter.
to_table_idYesThe other side, or the same id again for a self-link on other columns.
from_columnsYesColumn ids on `table_id`. Several make one composite key, joined on all of them at once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing idempotent behavior (re-declaring answers already_exists), type-compatibility rules, that tables may be empty, and the edit-access requirement including the catalog-table case. Only the exact failure surface for permission errors is left implicit.

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?

Front-loads the core definition and then layers constraints in a compact run of clauses; nearly every sentence carries distinct information. It is dense but not padded, though the multi-clause sentences take a second pass to parse.

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 four-required-parameter mutation with no output schema, it covers purpose, validation workflow, idempotency signal, type constraints, and permission scope. Nothing an agent needs in order to call it correctly is missing.

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; the description still earns extra by explaining positional pairing, order irrelevance on both pair and table order, and the composite-key semantics. The self-link case is already covered by the schema's to_table_id text.

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?

Opens with a specific verb and resource: "Declare a link: the columns two tables join on." That immediately separates it from audit_link (measures) and delete_link (removes), so an agent can pick it without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit routing and preconditions: validate with run_sql first (key unique, values present on both sides), then audit_link measures once rows exist. It also clarifies one call per independent link versus several pairs forming one composite key, which is the main way an agent could misuse it.

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