Skip to main content
Glama
darshan-tools

darshan-tools

by Presciman

search

Find case-insensitive regex matches in an opened Darshan log, returning matching raw lines or 'path = value' schema entries.

Instructions

Case-insensitive regular-expression search over the evidence. Returns matching lines (raw dump) or matching 'path = value' entries (schema).

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": {
      "pattern": "<pattern>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
logNopath of an opened .darshan log (default: the one opened last)
patternYesPython regular expression.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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 behavioral burden, and it does disclose case-insensitivity and the two output formats. It does not say how the raw-dump versus schema mode is selected (there is no mode parameter in the schema), nor does it cover invalid-regex behavior, result limits, or whether the entire log is scanned.

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?

Two tight sentences, front-loaded with the operation and then the return shapes. Nothing is wasted, though the parenthetical mode labels raise a question the text does not answer.

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 tool with no output schema and no annotations, the description covers the core operation and result formats. The significant gap is that it presents two output modes without explaining what determines which one is used, which an agent needs in order to call the tool predictably.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description does add meaning by specifying case-insensitive matching and confirming the pattern is a regex, which the schema states only as 'Python regular expression'. The log parameter is already fully documented in the schema, so the description adds nothing there.

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?

States a specific verb and resource ('case-insensitive regular-expression search over the evidence') and clarifies the two result shapes, matching lines versus 'path = value' entries. It stops short of distinguishing itself from siblings like get or outline, but the operation itself is unambiguous.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no when-not-to-use, and no routing to alternatives such as get or outline. The only implied cue is that this tool is for pattern matching, leaving the agent to infer when a regex search beats a direct retrieval.

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