Skip to main content
Glama
Cliff MCP Server

Cliff MCP Server

Official
by cliff-hq

analyze_file

Analyzes an uploaded CAD model or PDF print to return machining setups, cutting minutes, stock, manufacturability findings, and print facts with source words.

Instructions

What Cliff reads from an uploaded file. A model: its measures and Cliff's machining plan for the process ('cnc' or 'turn') and material (setups, cutting minutes, stock, and manufacturability findings with where and how to fix each). A print (PDF, no process needed): its facts (material, finish, tolerances, threads, notes), each with the words it came from.

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

Input Schema

NameRequiredDescriptionDefault
file_idYes
processNo
materialNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it does well to disclose what the tool returns in each mode (setups, cutting minutes, stock, manufacturability findings with fix locations; print facts with source words). It omits prerequisites (must the file be uploaded first via upload_file?), failure modes for a model without a process, and whether the analysis is synchronous or expensive. Reasonable but incomplete for an unannotated tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with a single framing sentence ('What Cliff reads from an uploaded file'), and every clause is informational, but the second and third sentences are overloaded with stacked parentheticals ('setups, cutting minutes, stock, and manufacturability findings with where and how to fix each') that make it harder to scan than its length warrants.

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 accepts the burden of describing returns and does so distinctly for both modes, which is the key missing piece for a 3-parameter analysis tool. Remaining gaps are modest: the model/process requirement is only implied, and error behavior and preconditions (prior upload) are unstated.

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%, so the description must compensate, and it largely does: it names the concrete allowed process values ('cnc', 'turn') that the schema leaves as a bare string, ties material to the model path, and implies file_id refers to a previously uploaded file. It does not state which parameter is required or what omitting material does, which keeps it below a 5.

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?

States a specific action on a specific resource — reading an uploaded file and returning either a machining plan (for a model) or extracted print facts (for a PDF). It clearly separates the two modes and names the process values ('cnc' or 'turn'). It does not explicitly differentiate itself from siblings like convert_file or decompose_file, but the purpose is unambiguous.

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?

Implies the selection rule for its parameters — a model requires a process ('cnc' or 'turn') and material, whereas a print PDF needs no process. That is useful conditional guidance. However, there is no guidance on when to pick this over convert_file/decompose_file/upload_file, and no statement of what happens if you pass a model without a process.

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