Skip to main content
Glama

Neurarch

Size a training job

size_training_job
Read-onlyIdempotent

Call BEFORE any training launch: peak memory at your batch, fits/borderline/no per card, smallest safe card, max batch, two-card split, cost, data fit. Not a convergence check. Offline.

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": {
      "batch_size": "<batch_size>"
    },
    "name": "size_training_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpuNo"A100-40", "8xH100".
dataNoseq_len, tokenizer_size, num_classes, image_size, channels
hf_idNoorg/name. Needs --hf.
epochsNoDefault 10.
samplesNoPer epoch (default 50,000).
seq_lenNoDefault 2048.
attentionNoDefault sdpa.
batch_sizeYesGlobal batch.
model_pathNoFile, zoo:<id>, hf:<org/name>
model_sourceNoOptional: answer about model text passed inline (a .neurarch.json document or PyTorch source).

Output Schema

NameRequiredDescriptionDefault
fitsYes
verdictYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Read-only, idempotent and non-destructive behavior is already covered by annotations, and the description correctly positions the tool as a pre-launch estimate that does not itself launch training. However, "Offline" sits in tension with openWorldHint=true (and with the hf_id/model zoo paths), and nothing says whether the numbers are deterministic or what units "cost" is in.

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?

It is very short and front-loads the timing constraint before the output list, with no filler. The telegraphic, comma-spliced fragment style costs it a little readability, but every token carries information.

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 10-parameter tool with a nested object and an output schema, the description covers purpose, timing and exclusions, and the output schema absolves it from explaining return structure. Still missing are disambiguation from similarly memory-focused siblings like diagnose_oom and clarification of what "borderline" or "cost" actually mean.

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 description coverage is 100% across all 10 parameters, so the schema already carries the semantics; the description only ties sizing to "your batch" and implies the gpu argument drives the two-card split. It adds no interpretation of data, epochs, attention or model_source beyond what the schema states, 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 names a concrete preflight function and enumerates what it returns: peak memory at the given batch, a fits/borderline/no fit verdict per card, smallest safe card, max batch, two-card split, cost and data fit. That is a specific, distinguishable capability rather than a restatement of the title, though it never names a sibling (e.g. diagnose_oom) to contrast itself with.

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?

"Call BEFORE any training launch" gives an explicit trigger point, and "Not a convergence check" is a real exclusion that rules out a class of misuse. What is missing is the positive alternative: nothing tells the agent which sibling to use when a job is already running or already OOMing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.