Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
EOKG_LOGNoSet to `1` to write one JSON line per tool call to stderr.off
EOKG_TIMEOUT_MSNoPer-request timeout in milliseconds (1,000–600,000). The endpoint's gateway cuts at 60 s.45000
EOKG_SKOSMOS_BASENoSkosmos REST base for vocabulary search.https://vocab.odeuropa.eu/rest/v1/
EOKG_SPARQL_ENDPOINTNoSPARQL endpoint.https://data.odeuropa.eu/repositories/odeuropa
EOKG_RESULT_CHAR_CEILINGNoUpper bound on a tool result's size in characters.150000

Instructions

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

Search the European Olfactory Knowledge Graph (Odeuropa): ~2.4M smell references machine-extracted from European texts (en, fr, it, sl, de, nl) and from ~44,000 images of artworks, mostly 1600–1920. A "smell" is one extracted reference: a passage or image plus its roles — smell source (a vocabulary concept and the words used), carrier, gesture, time, place, perceiver, emotions, qualities. Workflow: eokg_search_smells for passages (Lucene syntax, no field prefixes) → eokg_get_smell for one reference → eokg_get_source for the document or image around it. Search words without an operator are OR-ed; write AND/OR/NOT in capitals and quote phrases. For concept-level questions, resolve the concept first with eokg_find_concepts (olfactory-objects = what smells, fragrant-spaces = where, olfactory-gestures = how people smelled), then eokg_smell_profile for counts over time, languages, datasets, qualities, emotions and spaces, and eokg_find_visual_smells + eokg_inspect_image for artworks. Read results critically: excerpts are raw OCR text; one passage can yield several smells, each its own result; emotions come from a classifier, not the text, and are a weak signal, missing entirely for some datasets and for German and Slovenian; dates are document dates (the emission date almost always equals it) and include noise and undated sources; profile counts compare concepts with each other and are not absolute trends; filtered searches examine only a window of the most relevant hits and say so; image boxes, including hand-drawn ones, can carry the wrong label. Profiles work for olfactory-objects, fragrant-spaces and olfactory-gestures concepts (gestures such as perfuming or holding one's nose; some come mostly from texts, others mostly from images), image lists for olfactory-objects and olfactory-gestures only; the other vocabularies describe smells but cannot be counted with these tools. Iconclass notations come from Odeuropa's curated tables; a notation ending in (...) is a placeholder to be completed and verified with an Iconclass server. To show an artwork to the user, call eokg_view_image, which opens a viewer; never embed an image URL as a Markdown image. If no viewer appears, give image and record URLs as plain links. Its object boxes start hidden, since many carry the wrong label; the user can turn them on with the viewer's Boxes button. Cite smells with their explorer_url (https://explorer.odeuropa.eu/smells/…).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
eokg_list_datasetsA

List the source corpora (datasets) in the knowledge graph, with smell counts. Counts are a dated snapshot; each dataset name is a valid dataset filter for eokg_search_smells.

eokg_get_smellA

Get one smell reference: its source text or image, excerpt and extracted roles. Roles are machine-extracted: smell source (vocabulary concept plus the words used), carrier (vocabulary concept in carriers, the words used in carrier_mentions), gesture, time, place, perceiver, emotions, qualities. A carrier id works in eokg_smell_profile, which counts that concept as a smell source or space, not as a carrier. Emotions are inferred by a classifier, not stated in the text. Ids come from eokg_search_smells, eokg_get_source or eokg_find_visual_smells.

eokg_find_conceptsA

Find smell-source, space and gesture concepts by label, in any language. Matches labels in de, en, fr, it, nl or sl; a trailing * is added unless the query already has one. By default searches the three vocabularies linked to smells: olfactory-objects (what smells), fragrant-spaces (where) and olfactory-gestures (how people smelled). Pass a concept id to eokg_get_concept or eokg_smell_profile; vocab "all" also searches the descriptive vocabularies, which are not linked to smells. Alternatively pass iconclass (a notation such as 25G41(ROSE), e.g. from an Iconclass or Rijksmuseum server) instead of query, to find the concepts Odeuropa mapped to that notation or to broader or narrower ones.

eokg_get_conceptA

Get a concept: labels in up to six languages, hierarchy, and usage counts. For olfactory-objects, fragrant-spaces and olfactory-gestures concepts, also returns how many smells (and, for objects and gestures, image sources) the knowledge graph links to it, and the curated Iconclass notation where Odeuropa assigned one. A notation ending in (...) is an Iconclass placeholder for a name; the candidate with the name filled in is unverified, so check it with an Iconclass server before using it.

eokg_search_smellsA

Full-text search of smell excerpts and source titles, ranked by relevance. Matching is on the extracted excerpt text (OCR, unnormalised spelling). Language, year and dataset filters are applied after ranking, to a window of the most relevant hits, so a filtered search reports how many hits it scanned and may miss rarer matches; the result says when. Year filters use the document date; undated sources are kept. One passage can contain several smells; each is its own result with its own id and concept, so the same excerpt can appear more than once. Follow up with eokg_get_smell for a full record.

eokg_get_sourceA

Get a source text or image: its metadata and a page of the smells it contains. Smells are listed in no meaningful order (the graph keeps no position within the document), each with its vocabulary concepts, any gestures and a short excerpt. For an image source, also lists the objects the detector found, with bounding boxes; call eokg_inspect_image to see the picture.

eokg_inspect_imageA

Look at an image source, with the smell-related objects detected in it. Returns the picture itself plus each annotated object (vocabulary concept, bounding box as % of width/height from the top-left, and origin: manual boxes were drawn by the Odeuropa team, detector boxes come from an object detector with a confidence score). Detector boxes can be wrong; compare them with what you see. Use these boxes rather than estimating coordinates yourself. The picture is for your own analysis; to show it to the user, call eokg_view_image, and never embed an image URL as a Markdown image (). Takes a source id from eokg_get_source, eokg_get_smell (source.id) or eokg_find_visual_smells.

eokg_view_imageA

Show an artwork image to the user in an interactive viewer they can zoom. The viewer appears beside this result in clients that support MCP Apps (Claude, ChatGPT and others). Object boxes start hidden, and the user can turn them on and off with the viewer's Boxes button. Set show_boxes true only when the user asks to see them, since many boxes carry the wrong label. When boxes are on, the user can select one, and the selection is shared with you. Nothing is returned for you to look at; use eokg_inspect_image to see the picture yourself. If the user says no viewer appeared, give them the Record and Image links from the result as plain links. Takes a source id from eokg_search_smells (source_id), eokg_get_source or eokg_find_visual_smells.

eokg_smell_profileA

Profile a smell source, fragrant space or gesture across the whole graph. Counts smells linked to an olfactory-objects, fragrant-spaces or olfactory-gestures concept (from eokg_find_concepts) by 20-year period of document date (bucket_years changes it), language, dataset, qualities, emotions and fragrant spaces; emission dates, raw place labels and carriers (vocabulary concepts mixed with raw words) on request. The languages facet counts text smells only; image smells are in the total and the timeline but have no language. The emission date is extracted from the text but in almost every record equals the document date, so emission_timeline rarely differs from timeline. All values are machine-extracted: dates include OCR noise (reported as out_of_range), and emotions are inferred by a classifier that was not run on medical-heritage, royal-society-corpus, old-bailey-corpus or text-annotation and has no German or Slovenian model. Gesture smells come from texts (Perfuming, mostly French) or from images (Holding one's nose); check the datasets facet. year_from and year_to restrict the profile to a period by document date; undated sources drop out, and images can be a large share of a period's smells. include_narrower adds sub-concepts (e.g. all flowers) but takes 15–30 s per facet. Facets that time out or do not fit the time budget are listed in failed_facets, also without include_narrower; request each once more on its own, and if it fails again, make the query smaller as the warning says.

eokg_find_visual_smellsA

Find paintings and prints in which a smell source or gesture appears. Lists image sources linked to an olfactory-objects or olfactory-gestures concept, best box score first: images with hand-drawn boxes (score 1) come first, then images ranked by the object detector's confidence, then catalogue-only links with no box. Images whose boxes all score below min_score (default 0.7) are hidden and counted; boxes and best_score count only the boxes shown. Images are linked to the objects they show, so substances often have none; try a related object concept. Year filters use the artwork date and exclude undated works. Pass a result id to eokg_inspect_image to look at it.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Odeuropa image viewerArtwork image with the EOKG bounding boxes.

TDQS

A4.3/5.0

Scored across 10 tools

Disambiguation5/5

Each tool targets a distinct action+resource: full-text search (search_smells) vs. image lookup by concept (find_visual_smells), single-record fetch (get_smell, get_source), vocabulary lookup (find_concepts vs. get_concept), and aggregate statistics (smell_profile). The two potentially confusable pairs — inspect_image vs. view_image (agent analysis vs. user viewer) and get_concept vs. smell_profile (curated labels vs. corpus counts) — are explicitly separated in their descriptions with 'use X to..., call Y to...' guidance.

Naming Consistency4/5

All names share the eokg_ prefix and predominantly follow a verb_noun pattern (list_datasets, get_smell, find_concepts, search_smells, get_source, inspect_image, view_image, find_visual_smells). The single deviation is eokg_smell_profile, which drops the verb in favour of a noun_noun form, a minor inconsistency in an otherwise predictable scheme.

Tool Count5/5

Ten tools sit comfortably in the well-scoped range and map cleanly onto the domain's distinct operations: discovery (search, find), retrieval (get), inspection (inspect, view), and aggregation (profile). No tool looks redundant or like a thin wrapper over another.

Completeness4/5

The surface covers discovery, drill-down, vocabulary navigation, image inspection and corpus-wide profiling, which is strong lifecycle coverage for exploratory research. The notable gap is that there is no direct 'list smells for a concept/time/place' enumeration — smell_profile gives counts and facets but to obtain the underlying records an agent must fall back on full-text search or walk sources, which is awkward.

Maintenance

ActivityNo data
ResponsivenessLimited data