Skip to main content
Glama

Switch database

lca_switch_source
Idempotent

Set this connection's default source database. The default is the database browsing and composing use when a call names no source. The default is shared by every conversation on the connection. name is the source's name as shown, matched case-insensitively (a code span, accepted with or without its backticks). Nothing saved moves: no s<N>/a<N>/c<N>/b<N>/v<N> ref is affected, and saved systems keep solving on their own source. Catalog refs (p<N>, e<N>, f<N>, m<N>) stay bound to the database that minted them: reading one still works, since engine_get and lca_run_assessment follow the ref back to its own database, but lca_compose_* and lca_edit_* refuse a member ref from another database, so members for a new system come from searches run after the switch.

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": {
      "name": "<name>"
    },
    "name": "lca_switch_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the source to bind to, copied verbatim from any result that named it — the `# Sources` listing or a search result's header (matched case-insensitively; the surrounding backticks are optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already flag a non-read-only, idempotent, non-destructive mutation, and the description adds substantial context on top: nothing saved moves, saved systems keep solving on their own source, and catalog refs stay bound to their minting database. It also spells out the asymmetric cross-tool behavior — `engine_get` and `lca_run_assessment` follow refs back, while `lca_compose_*` and `lca_edit_*` reject foreign member refs. That is exactly the kind of consequence disclosure the annotations cannot carry.

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-loaded with the core action, then layered with consequences in a logical order. It is dense but every clause is functional; the long enumerations of ref prefixes (`s<N>`/`a<N>`/`c<N>`/`b<N>`/`v<N>`, `p<N>`/`e<N>`/`f<N>`/`m<N>`) are heavy yet directly tied to the stated non-effects.

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?

With one fully documented parameter, complete annotations, and no output schema, the description covers what an agent needs: what the setting affects, what it does not affect, and how refs behave across sibling tools afterward. Only failure behavior for an unmatched name is unaddressed, which is minor for a preference-setting operation.

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 coverage is 100% and the single parameter already documents verbatim copying, case-insensitive matching, and optional backticks. The description restates the case-insensitive and backtick details rather than adding new meaning, so the baseline of 3 is appropriate.

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 opens with a specific verb+resource: 'Set this connection's default source database,' and defines what the default governs (browsing and composing when a call names no `source`). Scope is precise at the connection level and shared across conversations. It stops short of naming the nearest sibling, `lca_switch_workspace`, so an agent must infer the connection-vs-workspace distinction from scope wording alone.

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 implied rather than stated: the reader learns the default applies when no `source` is named and that members for a new system must come from searches run after the switch. There is no explicit 'use this when X, not Y' framing and no named alternative, so guidance is inferred from consequences rather than given directly.

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