Skip to main content
Glama
darshan-tools

darshan-tools

by Presciman

open_log

Opens a .darshan log to populate its two-layer schema and extract exact facts; call before other tools. Use nodes when DXT did not trace every rank.

Instructions

Open a .darshan log: fill its two-layer schema and extract its exact facts. Call this before any other tool. nodes is the node count, needed only when DXT did not trace every rank.

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": {
      "log": "<log>"
    },
    "name": "open_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
logYespath to the .darshan file
nodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 discloses the ordering requirement and that the call populates a schema, which is useful. It does not say whether the open is idempotent, what happens on a missing or malformed file, whether state persists across calls, or what the response contains — meaningful gaps for a state-initializing tool.

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

Conciseness4/5

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

Three sentences, front-loaded with the action, then the ordering rule, then the conditional parameter note. No filler, though the jargon density slightly slows parsing.

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 a two-parameter, no-output-schema initialization tool, the description covers the essential ordering and the conditional parameter. It stops short of describing the result of opening the log or failure modes, leaving an agent unable to predict what comes back or how to handle a bad path.

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 50%, so the description must compensate for the undocumented `nodes` parameter, and it does: 'node count, needed only when DXT did not trace every rank' gives both the meaning and the conditional condition for supplying it. `log` is left entirely to the schema, which is acceptable since the schema describes it.

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?

Names a specific verb and resource — open a .darshan log — and adds what the call accomplishes (fill the two-layer schema, extract exact facts). Terms like 'two-layer schema' and 'DXT' are domain jargon that an agent may not resolve, but the core action is unambiguous and distinguishable from siblings like get or search.

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?

Explicitly states 'Call this before any other tool,' which is the key sequencing guidance for this tool. It does not name exclusions or the conditions under which one might skip it, but the ordering constraint covers the main usage decision.

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