Skip to main content
Glama
TMHSDigital

Local AI MCP

Official
by TMHSDigital

fit_check

Check if a machine learning model fits on local hardware by estimating weight and KV-cache size, then comparing against available GPU VRAM or system RAM.

Instructions

Determine whether a model fits on the local hardware. Resolves the model weight size from the provider or the static catalog (or an explicit sizeBytes), estimates KV-cache overhead for a context length (default 4096), then compares weight+KV against free GPU VRAM, falling back to system RAM. Returns fits, target (gpu/cpu/none), weight/kv/required/available bytes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesModel id/name to check
providerNoOptional provider id
sizeBytesNoOptional explicit model weight size in bytes (overrides lookup)
contextLengthNoContext length for KV-cache estimate (default 4096)
parameterSizeNoOptional parameter size like "7B" or "3.8B" for KV estimate (overrides lookup)
Behavior4/5

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

No annotations exist, so the description carries full burden. It discloses the algorithm (resolve weight, estimate KV-cache, compare against free memory) and return fields (fits, target, bytes). However, it does not mention potential network calls for provider lookup or permission requirements, which are minor omissions for a read-only check.

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?

Three sentences front-load the main purpose, then detail the process and return values. No wasted words; every sentence contributes essential information.

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?

With no output schema, the description explains return values (fits, target, bytes). Parameter count (5) with full schema coverage means schema handles details. The description is sufficiently complete for a non-mutating tool, though it could mention potential network dependencies.

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 description coverage is 100%, so the schema documents parameters. The description adds value by explaining behavioral aspects like sizeBytes overriding lookup, contextLength default (4096), and parameterSize overriding lookup for KV estimate. This goes beyond the schema but could detail provider enum options.

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 determines if a model fits on local hardware, specifying the algorithm including weight resolution, KV-cache estimation, and memory comparison. It distinguishes itself from sibling tools like load_model or model_info by focusing on hardware fit check.

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?

The description implies usage for checking model fit before loading, but does not explicitly state when to use this tool vs alternatives (e.g., load_model, suggest_model). No when-not or alternative guidance is provided, leaving usage context ambiguous.

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/TMHSDigital/local-ai-mcp'

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