Skip to main content
Glama
ChingEnLin
by ChingEnLin

set_context

Read-only

Update the active PostgreSQL database or schema without reconnecting. Omit a parameter to keep it unchanged, enabling quick context switches for queries.

Instructions

Update the active PostgreSQL database and/or schema without reconnecting.

Args: database: Set the active database. Omit to leave unchanged. schema: Set the active schema. Omit to leave unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNo
databaseNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate readOnlyHint=true and destructiveHint=false, and the description does not contradict these. It adds valuable behavioral context such as 'without reconnecting' and the 'omit to leave unchanged' semantics, which go beyond the annotations by explaining how the tool behaves when parameters are omitted.

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?

The description is highly concise: a single purposeful opening sentence followed by a compact list of parameter explanations. Every sentence adds value with no filler, making it easy for an agent to parse quickly.

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 simple tool with two optional parameters and read-only annotations, the description is fully complete. It explains the action, parameter semantics, and the key behavioral nuance (no reconnect). The presence of an output schema further reduces the need to describe return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description fully compensates by explaining each parameter: 'database: Set the active database. Omit to leave unchanged.' and similarly for schema. This adds clear meaning beyond the raw schema properties, which only provide type and default.

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 clearly states the tool's purpose: 'Update the active PostgreSQL database and/or schema without reconnecting.' The verb 'update' combined with the specific resource ('active PostgreSQL database and/or schema') precisely conveys the action, and it distinguishes itself from sibling tools like show_context or clear_context.

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 provides clear usage context: it modifies the active database/schema without requiring a reconnect. This implies when to use this tool (when needing to switch context) but does not explicitly mention alternatives or exclusion criteria, so it stops short of a perfect 5.

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

Install Server

Other Tools

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/ChingEnLin/SQMCPaL'

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