Skip to main content
Glama

get_config

Retrieve effective job defaults for a cluster and optional project, showing the config file each value originates from (built-in when unset).

Instructions

Get the effective job defaults for a cluster (and optionally a project).

Every value is reported with the config file it came from (``built-in``
when no file sets it).

Args:
    cluster: Cluster whose cluster-specific defaults apply. Omit to see
        only the global defaults.
    project: Project root (directory holding ``.srunx/config.toml``).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterNo
projectNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv6.0.0
    • addedInput schema / properties / cluster
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Cluster"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Project"
      +}
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It does add real behavioral detail beyond the name — values are resolved across layered config sources and each is annotated with its originating file, with "built-in" as the fallback — but it never states that the call is side-effect-free/read-only, nor anything about permissions or error behavior when a project path is invalid.

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?

The lead sentence front-loads the purpose, the provenance sentence adds genuinely useful context, and the Args block is tight. No filler sentences, though the docstring-style Args formatting is slightly verbose for only two optional parameters.

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

Completeness4/5

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

For a simple two-optional-parameter reader with an output schema, the description covers scope, source resolution, and both parameters, so an agent could call it confidently. The only shortfall is the unspecified format of the `cluster` value and no note on failure modes for a bad `project` 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 0% (titles only), so the description must compensate, and it largely does: `cluster` is defined as selecting cluster-specific defaults with omission meaning global-only, and `project` is defined concretely as the directory holding `.srunx/config.toml`. The one remaining gap is the expected form of `cluster` (name vs. identifier).

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?

"Get the effective job defaults for a cluster (and optionally a project)" states a precise verb and resource, and the notion of "effective" defaults plus per-file provenance makes it distinct from sibling readers like get_resources or list_clusters. It stops short of naming an alternative tool, so the differentiation is implicit rather than explicit.

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

Usage Guidelines3/5

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

Usage is only implied: the tool is for inspecting job defaults, and the Args block explains that omitting `cluster` yields global-only defaults, which tells the agent how scoping changes results. There is no explicit when-to-use/when-not-to-use statement and no pointer to any sibling tool for related needs.

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