darshan-tools
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Darshan I/O tools. Call open_log(log) on a .darshan file first (it fills the two-layer schema and extracts the exact facts; a few seconds), then follow the rules below. Pair them with the darshan-analysis skill as your methodology.
YOUR EVIDENCE — a filled instance of the two-layer Darshan
analysis schema for this job. It is NOT in this prompt. Retrieve it with the
three tools below: outline lists every field path, search matches paths and
values by regex, and get returns the value or subtree at one dotted path.
Layer 1 (modules, storage, traces) holds the raw counter families grouped
by concern. Layer 2 (insights) holds derived relations already computed for
you: throughput, behaviour ratios, scale-normalised metrics, efficiency.
Absence is meaningful and the three kinds are distinct:
a key that is NOT PRESENT inside a counter group had the value 0 -- zeros are omitted, so treat a missing counter as zero, not as unknown;
a null value means the field could not be populated (unknown);
an empty object, or
n_records: 0, means that module is absent from the log.
YOUR EXACT TOOLS -- in addition to outline / search / get over the schema: darshan(view) exact facts from this job's binary log, full precision. darshan("cards") returns one card per analysis concern (provenance, file systems, completeness, volume, read/write mix, bandwidth, rates, request size, access sizes, histograms, small accesses, sequentiality, strides, alignment, metadata, files, sharing, dominant file, rank balance, MPI-IO, stdio, Lustre, DXT, temporal shape, bottleneck, verdict), each holding the canonical measures for that concern. darshan("index") lists the other views. calc(expr) exact arithmetic.
PRECISION RULES 0. Call darshan("cards") first. For every question, find the card for its concern and answer from that card.
Report the card's measures for the concern -- all of those the question asks about, with units -- and no other numbers. Copy each number from the card with at least 4 significant digits: 0.01583 stays 0.01583 (never 0.02), 482.4317 may become 482.4. Do not restate the counters a measure was computed from, do not add or combine measures (no sums of two card values), and do not add numbers from other cards. A fraction may be given as a percentage (fraction x 100).
Verdicts come with their figures, always:
completeness: "Complete: no module has the partial flag; records: POSIX 56, LUSTRE 54, DXT_POSIX 114."
file systems: "All 8 hot files are on /scratch (lustre); the mount table has 26 entries."
temporal shape: active bins, duty cycle, first and last active second, peak.
balance: min, mean, max and CV. 2a. A card with a "summary" field: use the summary sentence as the core of the answer.
A card that says "not_applicable" is answered "Not applicable: ." with no number. A measure that is 0 means none ("no strided access"), not missing data.
Use calc() only when a question asks for something no card holds; never compute in your head. Refer to size bins by their Darshan names (POSIX_SIZE_READ_100K_1M), not as numeric ranges, and write counts in digits.
Answer each question from ONE card and name it, e.g. "(volume card)".
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| open_logA | Open a .darshan log: fill its two-layer schema and extract its exact facts. Call this before any other tool. |
| outlineA | List the structure of the evidence: every field or counter name available, without values. Call this first to see what exists. |
| searchB | Case-insensitive regular-expression search over the evidence. Returns matching lines (raw dump) or matching 'path = value' entries (schema). |
| getA | Return one named item exactly: a counter or header field name (raw dump), or a dotted field path and its subtree (schema). |
| darshanA | Exact facts from this job's binary Darshan log, at full precision, by view. darshan('cards') returns one card of canonical measures per analysis concern; call it first. darshan('index') lists the views. Use darshan('derived') for any rate, fraction, ratio, mean or efficiency: it holds Darshan's standard derived metrics, each with the formula that produced it. |
| calcA | Exact arithmetic. Use it for every computation instead of doing math in your head. Supports + - * / ** %, parentheses, lists, min max abs round sqrt log2 log10 sum mean, and the constants KiB MiB GiB TiB KB MB GB. Example: calc('1554195 / MiB / 0.0772'). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
open_log, outline, and darshan each instruct the agent to 'call this first,' creating conflicting entry-point guidance, and outline vs. darshan('index') both enumerate what exists. The two-layer raw/schema model and the darshan view tool do help differentiate the rest, and search/get/calc are clearly distinct.
Most names are lowercase single verbs, but open_log is the lone snake_case compound, calc is an abbreviation, and darshan is a domain noun rather than an action. The set is still readable, but there is no single predictable convention.
Six tools is well within the healthy 3-15 range, and each appears to earn its place: open_log for setup, outline/search/get for evidence querying, calc for exact arithmetic, and darshan for canonical/derived views. Nothing looks redundant in count terms.
The surface covers the core analysis lifecycle: opening a log, discovering structure, searching/retrieving fields, computing, and pulling canonical/derived views. Minor gaps exist around log discovery (listing available logs) and export/visualization, but agents can work around these.