Skip to main content
Glama

compile_project_domains

Suggests work-type domains from a project's stack and memories, with supporting evidence, and can save the merged draft to enable cross-project recall.

Instructions

Suggest work-type domains for a project from its stack and its own memories, with the evidence behind each one. Returns a draft by default; pass auto_save=True to store it.

Domains are what makes cross-project recall work: once projects declare
them, recall(domain_filter='python') searches every Python project at
once. They share the compiled-skill vocabulary, so the same names reach
find_skills() and get_skill().

Suggestions are merged with any domains the project already declares —
this never removes one.

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": {
      "project_name": "<project_name>"
    },
    "name": "compile_project_domains"
  }
}

Input Schema

NameRequiredDescriptionDefault
auto_saveNo
project_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.1.7

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that output is a draft by default, that auto_save=True writes it, that suggestions include supporting evidence, and critically that merging never removes already-declared domains (non-destructive). It leaves unstated whether the project must already exist and what happens on failure, so not a 5.

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?

Front-loaded with the core action, then two short reference paragraphs that each add real context (what domains buy you, shared vocabulary with find_skills/get_skill, merge safety). Slightly more prose than strictly needed in the vocabulary sentence, but nothing is wasted.

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?

No annotations and no output schema, so the description should cover return shape and effects — it does explain that results come with evidence and are merged, non-destructively, with existing domains. Residual gaps: where the draft lives when auto_save is false and error conditions for unknown project names.

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 description coverage is 0%, so the description must compensate. It fully explains auto_save (default false = draft, true = store). project_name is left unelaborated but its meaning is evident from the surrounding text ('suggest domains for a project'); a brief note on whether it matches list_projects names would push this to 5.

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: 'Suggest work-type domains for a project from its stack and its own memories, with the evidence behind each one.' The follow-on paragraph defines what a domain is and its link to recall/find_skills, so an agent can tell this apart from compile_project_context or compile_skill, though no alternative tool is named for contrast.

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?

The description gives situational context (domains enable cross-project recall via recall(domain_filter='python')) and instructs that the default is a draft while auto_save=True persists it. But when to use this versus compile_project_context or how to decide between compiling domains and not compiling is only implied, and there are no explicit exclusions or prerequisites.

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