Skip to main content
Glama

use_file

Sets an installed library file as the default for all later renders, such as a different image model version. Omit the name to reset to the default.

Instructions

Make an installed file the one every later render uses, such as another version of the image model. Only when the user asked for it. An explicit value in a render's params still wins for that render. Call with no name to go back to the default.

Args: kind: A library kind from get_guide that fills one param, such as model. LoRAs are not chosen this way; pass them in params per render. name: A file name exactly as list_library returns it. Omit to reset.

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

Input Schema

NameRequiredDescriptionDefault
kindYes
nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses persistence ('every later render uses'), precedence semantics, the reset behavior of omitting `name`, and the exclusion that LoRAs cannot be set this way. It leaves out error behavior for an unknown file name and the scope of the setting (session vs. project).

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 prose is front-loaded with purpose, then the constraint, precedence, and reset, followed by a useful Args block. There is mild redundancy between 'Call with no `name` to go back to the default' and the Args note 'Omit to reset.'

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 two-parameter configuration tool with an output schema, the description covers purpose, persistence, precedence, and reset behavior sufficiently to call it correctly. Minor gaps remain around failure modes and the lifetime/scope of the default setting.

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 coverage is 0%, so the description must compensate, and it does: `kind` is defined as a library kind from get_guide that fills exactly one param, with LoRAs explicitly excluded, and `name` must match list_library output exactly, with omission meaning reset. Both parameters gain meaning not present in the bare schema.

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 and resource: make an installed file the persistent default for all later renders. It implicitly separates itself from install_file (installing) and render (per-call override) by explaining that an explicit value in a render's `params` still wins.

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 clear gating condition ('Only when the user asked for it') plus a precedence rule against per-render params and a reset path ('Call with no `name`'). It does not explicitly name install_file or list_library as alternatives, but the cross-references to get_guide and list_library cover the workflow context.

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