Skip to main content
Glama

create_synonym

Create a private or public synonym pointing to another schema's table, view, sequence, or procedure. Requires CREATE SYNONYM privilege.

Instructions

Create a private or public synonym pointing at another schema's object. Requires CREATE SYNONYM (private) or CREATE PUBLIC SYNONYM (public); Oracle returns ORA-01031 otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNoSchema where the synonym will live (ignored for PUBLIC). Optional — defaults to the server's current schema; omit rather than guess.
synonymYesSynonym name.
isPublicNoWhether to create a PUBLIC synonym (requires CREATE PUBLIC SYNONYM privilege).
targetNameYesName of the target object (table/view/sequence/procedure).
targetSchemaYesSchema of the target object.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.3

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the auth requirements and the exact error returned when they are missing — the kind of context the rubric explicitly credits. It stops short of covering other behavioral edges such as what happens if the synonym name already exists or whether creation is idempotent.

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: the operation is front-loaded, and the privilege/error sentence immediately follows as the actionable constraint. No filler or restated boilerplate.

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?

For a 5-parameter mutation tool with no annotations and no output schema, the description covers purpose, scope choice, and the failure mode an agent will actually hit. The main remaining gap is the behavior on name collision/overwrite, which an agent would want before retrying.

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 every parameter (including the isPublic/schema interaction and the 'omit rather than guess' guidance on schema) is already documented in the schema. The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb+resource ('Create a ... synonym') plus the scope variant (private vs public) and the target ('pointing at another schema's object'). This clearly separates it from the read-side sibling list_synonyms and from the other create_* tools (create_sequence, create_index, create_mview_log).

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?

Gives a concrete prerequisite that determines whether the call can succeed at all: CREATE SYNONYM for private, CREATE PUBLIC SYNONYM for public, with ORA-01031 as the failure signal. It does not explicitly route between alternatives (e.g., create_or_replace_view or list_synonyms), so it stops short of full when/when-not guidance.

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