Skip to main content
Glama

resource_check

Check actual resource usage of past jobs by name pattern before running sbatch, so you can size resource requests accurately.

Instructions

Check actual resource usage of past jobs (MUST call before sbatch)

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": {
      "job_name": "<job_name>"
    },
    "name": "resource_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_nameYesJob name pattern to search (case-insensitive substring of recent COMPLETED job names)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it supplies little: 'Check' implies a read, but there is no statement about what data is returned, whether results are aggregated across matched jobs, or what happens when no completed job matches the pattern. Without an output schema either, an agent cannot anticipate the response shape or failure mode.

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 clauses, zero filler, and the workflow constraint is placed where it will be read. The terseness flirts with under-specification rather than verbosity, which is the preferable failure mode here.

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

Completeness2/5

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

The tool is simple (one required parameter, flat object), but with no annotations and no output schema the description is the only place an agent could learn what this call yields and how to use it to size an sbatch request. That crucial 'why/what you get' link is left implicit.

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% and the sole parameter is fully documented as a case-insensitive substring match over recent COMPLETED job names. The description's phrase 'past jobs' is consistent with that but adds no syntax, formatting, or matching detail beyond the schema, so the baseline 3 applies.

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 pairs a specific verb ('Check') with a specific resource ('actual resource usage of past jobs'), so an agent can tell it is a historical usage lookup rather than a live cluster query. It does not differentiate itself from the sibling 'resource_report', which plausibly covers similar ground, so it stops short of a 5.

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?

The parenthetical 'MUST call before sbatch' gives an explicit, actionable precondition that tells the agent exactly when this tool is mandatory in the workflow. It offers no exclusions or named alternatives (e.g., when to prefer resource_report), which is the main gap.

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