Skip to main content
Glama
darshan-tools

darshan-tools

by Presciman

darshan

Retrieve exact facts from an opened I/O log by view, starting with canonical per-concern cards, then access formula-backed derived rates, ratios, means, and efficiencies.

Instructions

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.

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": {
      "view": "<view>"
    },
    "name": "darshan"
  }
}

Input Schema

NameRequiredDescriptionDefault
logNopath of an opened .darshan log (default: the one opened last)
viewYesone of: cards, all, derived, job, modules, perf, file_categories, files, top_files, counters, access, ranks, mounts, lustre, dxt, heatmap, stdio, mpiio

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description must carry the full behavioral burden. It discloses useful traits — read-only factual retrieval, full precision, derived metrics carrying their formulas, log defaulting to the last opened file — but says nothing about the return shape, size, or cost of large views like files or heatmap.

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 tight sentences, front-loaded with what the tool returns, then the recommended first call, then the derived-metrics routing rule. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-view dispatch tool with no annotations and no output schema, the description covers only three views and never describes the result shape. It mitigates this by pointing to 'index' as a discovery path, but an agent still cannot predict what a call to perf, dxt, or mpiio yields.

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 100%, so 3 is the baseline; the description earns above that by attaching semantics to the key view values ('cards' = one card per analysis concern, 'index' = view listing, 'derived' = standard derived metrics with formulas). The remaining fifteen view values still carry no explanation beyond the enum itself.

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?

The description states a specific verb and resource ('Exact facts from this job's binary Darshan log ... by view') and makes the dispatch-by-view model explicit by naming three views and their roles. It is clear what the tool returns, though it never contrasts itself with siblings like calc or get, so differentiation is only implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Within-tool guidance is strong: call 'cards' first, use 'index' to enumerate views, and route all rates/fractions/ratios/means/efficiencies to 'derived'. What is missing is guidance against the sibling tools (calc, get, outline, search), so the agent must infer when this tool beats those.

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

Deploy Server

Other Tools