Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CLEF_MODELNoModel name sent with every request.clef
CLEF_API_KEYNoBearer token. Required when the host is ollama.com or *.ollama.com; optional otherwise. The API key is never logged or included in error messages or tool output.
CLEF_BASE_URLNoOllama server base URL.https://ollama.com
CLEF_TIMEOUT_MSNoRequest timeout in milliseconds (positive integer).60000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

clef-mcp exposes one tool, decide, backed by Ollama's /v1/systemone decision endpoint. Use it when you need a fast, probability-calibrated judgement about a piece of text, JSON data, or images: pick one label (choice), estimate how likely a yes/no statement is true (noul), or grade on an ordered scale (score). Batch every question about the same state into one call. The model is fixed by the server configuration and cannot be chosen per call.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
decideA

Ask an Ollama decision model to answer one or more structured questions about a state, in a single call. Answers are probabilities, never free text, so you can threshold them.

Inputs:

  • state: what to judge. Non-empty text, or a JSON object or array (sent as JSON text).

  • questions: map of question name to question. 1 to 64 questions. Names are 1-100 characters of ASCII letters, digits, "_", "." or "-".

  • images (optional): up to 4 images as raw base64 strings (no data: URLs, no http URLs).

Every question has a type, instructions (text, or a JSON object or array, explaining what to decide) and criteria:

  • choice: pick exactly one label. criteria is required: an object mapping 2-26 label keys to a description string or null. Answer: choice (the winning key), probabilities (one per key, summing to 1) and confidence (0-1).

  • noul: a yes/no judgement. criteria is optional: exactly {"false": "...", "true": "..."} describing each side. Answer: noul, the probability from 0 to 1 that the statement is true. It is not a boolean and has no confidence field.

  • score: place the state on an ordered scale. criteria is required: an array of 2-10 level descriptions ordered from lowest to highest. Answer: score, the probability-weighted mean of the zero-based level index (for example 1.84 on a 0-2 scale; not rounded), legend (index to description), probabilities (per index) and confidence (0-1).

Use it for classification, routing, triage, moderation and rubric grading. Do not use it to generate text.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 1 tool

Disambiguation5/5

There is only one tool, so there is nothing to confuse it with. Within the tool, the three question types (choice, noul, score) are clearly delineated with distinct criteria and answer shapes, so an agent can select the right mode without ambiguity.

Naming Consistency5/5

A single, clear verb name ('decide') that accurately reflects the operation. There are no competing conventions to clash, and the naming reads naturally for the domain.

Tool Count3/5

The server exposes exactly one tool, which is thin by the usual 3-15 guidance, though it is a genuinely single-capability wrapper around a decision model and the batch 'questions' parameter absorbs what would otherwise be many tools. It is borderline rather than mismatched, since no second capability obviously belongs here.

Completeness4/5

The tool covers the core decision surface well: batch questions, three answer modes, optional images, and probability outputs for thresholding. Minor gaps remain, such as model discovery/selection, health or capability introspection, and any guidance on limits or failure modes, which an agent would have to work around.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues