Skip to main content
Glama

use

Switches every other tool to a different named local database for the current MCP process, so searches and ingestion target that database until changed.

Instructions

Use to point every other tool at a different named database.

All tools (find, ingest, sync, etc.) will target the selected database's daemon until changed again. Use list(kind="databases") to see the database the daemon is fixed to.

Only selects among LOCAL databases: while a remote target (QUARRY_URL or a 'quarry login') is active, the remote daemon is fixed to its own database and this has no effect.

Args: name: Database name (e.g., 'coding', 'work'). Use 'default' for the default database.

Returns: The prior and selected local database and its resolved storage path; the selection affects only this MCP process, not the persisted default. Input refusals, daemon errors, and unexpected failures return Error: ... text. Connection failures include recovery guidance.

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": "use"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.8/5.0
Behavior5/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 so: it discloses the scope of the side effect (all tools, until changed again), the blast radius (only this MCP process, not the persisted default), the remote-daemon caveat where it silently does nothing, and the error surface including recovery guidance on connection failures.

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?

The effect is front-loaded in one sentence, then scope, caveat, args, and returns follow in a predictable order. The Returns block restates what the output schema already provides, and the error-taxonomy sentence is slightly verbose, but nothing is confusing or padded.

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 one-parameter process-global state changer with no annotations, everything an agent needs is present: effect, persistence scope, remote no-op condition, reset value, and failure modes. The return-value detail is redundant against the output schema but harmless.

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 0% and the single 'name' property has no description, so the prose must compensate — and it does with the accepted form, concrete examples ('coding', 'work'), and the special 'default' keyword. Naming constraints or validation rules beyond that are not stated, which keeps it just short of a 5.

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 opening line states a specific action on a specific resource: it re-points ALL other tools (find, ingest, sync) at a different named database. This is a context/session switch rather than a data operation, and the description makes that distinction unmistakable, so an agent can separate it from siblings like find or list without inspecting schemas.

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?

It gives an explicit when-to-use (to change which database every other tool targets, persisting 'until changed again'), a pointer to the alternative for discovery (list(kind="databases")), and a clear when-not: while a remote target (QUARRY_URL or 'quarry login') is active this has no effect. The 'default' value is called out as the reset path.

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