Skip to main content
Glama

Propose a Solution Configuration

init_solution_config
Read-onlyIdempotent

Collects setup material for a solution's Layer, Exclude-Namespaces, and Test profiles when config is uninitialized or stale; pass the proposed mapping to apply_solution_config.

Instructions

Collect the material for the guided setup of a solution's Layer Profile, Exclude-Namespaces and Test Profile - step 1 of 2; apply_solution_config writes.

Use it when solution_config_status or analyze_solution's configInit reports an axis uninitialized, or check_solution_config_drift reports one stale. Propose a mapping from the material, then pass it to apply_solution_config.

Returns solutionPath; declaredNamespaces - the solution's own namespaces, the layer-rule source (no test-project namespaces; System/Microsoft/JetBrains ones only under a production project's assembly or root namespace; over the cap the shallowest stay and declaredNamespacesOmitted counts the cut ones per nearest kept parent, else first segment); referencedNamespaces - every namespace a using directive names but the own declared ones (referencedNamespacesOwnOmitted counts them; own *.Properties may stay), heaviest first (a hand-written global using ahead of any file count), each {namespace, documents} (hand-written files whose using names it), plus generatedDocuments (build-written files, obj/) and globalUsingProjects / implicitGlobalUsing (an SDK implicit using) where they apply - neither says what the code leans on; testProjects - the default heuristic's test projects; detectedTestAttributes - the test-attribute MARKERS in the code; testAttributeUses - the attributes each marker covers, with method counts (top 10; Fact covers ConditionalFact); frameworkApiAreas - areas the built-in exclusion list removes although >= 15% of public method signatures name them, each with the keepRule for exclusions (the rest of the list still applies); proposalFormat - the JSON shape apply_solution_config expects. declaredNamespaces, referencedNamespaces and testProjects are capped (items/count/totalFound/truncated, max 300).

Read-only: writes no config or DB row, marks nothing initialized. Needs a live session (a recalled one is rejected; no re-analysis).

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": {
      "sessionId": "<sessionId>"
    },
    "name": "init_solution_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesThe session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.46513
    • changedInput schema / properties / sessionId / description
      Previous value: -"The session_id returned by analyze_solution."New value: +"The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, but the description adds genuinely new constraints beyond them: it writes no config or DB row, marks nothing initialized, requires a live session, and rejects a recalled session with no re-analysis. That session-freshness rule is the kind of behavioral trait annotations cannot express, though the remaining behavioral surface is dominated by return-shape detail rather than call-time behavior.

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

Conciseness3/5

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

The purpose and trigger conditions are front-loaded and the step 1 of 2 / apply_solution_config split is clear. However, the return-value paragraph is a single dense run-on of nested field definitions (declaredNamespaces, referencedNamespaces, globalUsingProjects, frameworkApiAreas, proposalFormat, caps) that is hard to parse and crowds out the call-time guidance. Some of that length is unavoidable with no output schema, but the presentation is not economical.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does so thoroughly, including the proposed mapping's expected format (proposalFormat), truncation caps and counts, and the meaning of heuristic-derived fields. Combined with the live-session requirement and read-only guarantee, an agent has everything needed to call it and interpret the result.

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 100% and the sessionId description already explains the analyze_solution session_id plus the absolute .sln/.slnx/.slnf path form, so the baseline is 3. The description adds one validity constraint the schema lacks - "Needs a live session (a recalled one is rejected; no re-analysis)" - which tells the agent which sessionId values will fail, raising it above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Collect the material for the guided setup of a solution's Layer Profile, Exclude-Namespaces and Test Profile") and immediately places itself in a two-step workflow by naming apply_solution_config as the writer. An agent can distinguish it from apply_solution_config and from the status/drift siblings without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit trigger conditions: call it when solution_config_status or analyze_solution's configInit reports an axis uninitialized, or when check_solution_config_drift reports one stale. It also names the follow-up tool ("then pass it to apply_solution_config"), leaving no inference about sequencing.

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