Skip to main content
Glama

Query aictrl project context

query_context
Read-only

Read project context in exactly six domains: code, system (architecture, data model, APIs, roadmap), issues, backlog (epics and tasks), agent skills, and stack layers. Most actions read stored, indexed context such as the knowledge graph. Live GitHub reads: issues/read returns the current GitHub issue and latest comments; issues/list with query searches issue titles and bodies live (params.repoFullName is required, with optional state/label); issues/context, overlap and list without query use stored issue context. code/read can fetch file content from repositories connected to the organization. Use backlog list/get actions to find existing epic and task UUIDs before calling update_backlog. Task references also accept #123, owner/repo#123 or https://github.com/owner/repo/issues/123 from connected repositories; bare numbers must be unambiguous. Read-only: it does not create, change, or delete backlog, workflow, or GitHub data. Not for workflow runs or task executions: use list_workflow_runs to discover runs, get_workflow_run for a known run ID, and get_task_execution for an execution ID returned by start_task.

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": {
      "organization_id": "<organization_id>",
      "domain": "<domain>",
      "action": "<action>"
    },
    "name": "query_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoPrimary search term, file path, symbol, or ID (e.g., "UserService", "#123", "coding-standards"). For domain=skills with action=load, the primary form is the human-readable skill name returned by list/recommend (e.g., "writing-gherkin"); a skill UUID is still accepted and loads by ID.
actionYesQuery type. Valid actions depend on the domain; actions are NOT shared across domains. Valid actions per domain — code: search, context, impact, callers, deps, plan, traverse, skeleton, edge_query, batch_context, read, co_changes, churn, authors, recent_prs_for_file, pr_history_for_subsystem, subsystem, layer, neighbourhood, pr_context; system: entity, model, enum, lineage, api, architecture, subsystem, roadmap, feature; issues: context, list, overlap, prs_for_issue, read; backlog: list, get, list_epics, get_epic, list_tasks, get_task; skills: list, recommend, list_files, load; stack: list_layers, list_agents, get_layer. "list" is supported only by: issues, backlog, skills; "get" is supported only by: backlog. Any other domain/action pair returns invalid_action. Notes: issues/context reads stored KG, issues/read reads the live GitHub issue and latest comments (params.repoFullName + params.issueNumber); backlog list defaults to epics (params.type="tasks" + epic_id for tasks), backlog get takes query=ID (UUID or legacy epic/task ID) and resolves it through tenant-scoped lookups. Backlog lists accept params.limit (default 50, maximum 100) and params.cursor from pagination.next_cursor; list_epics status is draft|planning|active|review|done|blocked; task lists accept params.status as an array of draft|ready|active|review|done|blocked|cancelled. Task lists return summary records without description; use get_task for the full description.
domainYesThe area of the project to explore.
paramsNoAdditional filters or options like depth, limit, type, or start_line.
versionNoAPI version (default: v1)
organization_idYesAICtrl organization ID returned by list_organizations.

Output Schema

NameRequiredDescriptionDefault
nextNo
resultYes
coverageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"Query type. Valid actions depend on the domain; actions are NOT shared across domains. Valid actions per domain — code: search, context, impact, callers, deps, plan, traverse, skeleton, edge_query, batch_context, read, co_changes, churn, authors, recent_prs_for_file, pr_history_for_subsystem, subsystem, layer, neighbourhood, pr_context; system: entity, model, enum, lineage, api, architecture, subsystem, roadmap, feature; issues: context, list, overlap, prs_for_issue, read; backlog: list, get, list_epics, get_epic, list_tasks, get_task; skills: list, recommend, list_files, load; stack: list_layers, list_agents, get_layer. \"list\" is supported only by: issues, backlog, skills; \"get\" is supported only by: backlog. Any other domain/action pair returns invalid_action. Notes: issues/context reads stored KG, issues/read reads the live GitHub issue and latest comments (params.repoFullName + params.issueNumber); backlog list defaults to epics (params.type=\"tasks\" + epic_id for tasks), backlog get takes query=ID and auto-detects epic vs task."New value: +"Query type. Valid actions depend on the domain; actions are NOT shared across domains. Valid actions per domain — code: search, context, impact, callers, deps, plan, traverse, skeleton, edge_query, batch_context, read, co_changes, churn, authors, recent_prs_for_file, pr_history_for_subsystem, subsystem, layer, neighbourhood, pr_context; system: entity, model, enum, lineage, api, architecture, subsystem, roadmap, feature; issues: context, list, overlap, prs_for_issue, read; backlog: list, get, list_epics, get_epic, list_tasks, get_task; skills: list, recommend, list_files, load; stack: list_layers, list_agents, get_layer. \"list\" is supported only by: issues, backlog, skills; \"get\" is supported only by: backlog. Any other domain/action pair returns invalid_action. Notes: issues/context reads stored KG, issues/read reads the live GitHub issue and latest comments (params.repoFullName + params.issueNumber); backlog list defaults to epics (params.type=\"tasks\" + epic_id for tasks), backlog get takes query=ID (UUID or legacy epic/task ID) and resolves it through tenant-scoped lookups. Backlog lists accept params.limit (default 50, maximum 100) and params.cursor from pagination.next_cursor; list_epics status is draft|planning|active|review|done|blocked; task lists accept params.status as an array of draft|ready|active|review|done|blocked|cancelled. Task lists return summary records without description; use get_task for the full description."
    • changedInput schema / properties / query / description
      Previous value: -"Primary search term, file path, symbol, or ID (e.g., \"UserService\", \"EPIC-123\", \"coding-standards\"). For domain=skills with action=load, the primary form is the human-readable skill name returned by list/recommend (e.g., \"writing-gherkin\"); a skill UUID is still accepted and loads by ID."New value: +"Primary search term, file path, symbol, or ID (e.g., \"UserService\", \"#123\", \"coding-standards\"). For domain=skills with action=load, the primary form is the human-readable skill name returned by list/recommend (e.g., \"writing-gherkin\"); a skill UUID is still accepted and loads by ID."
  2. Changed1 schema field changed
    • changedInput schema / properties / action / description
      Previous value: -"Query type. Universal actions (work across domains): list, get. Domain-specific actions — code: search, context, impact, callers, deps, plan, traverse, skeleton, batch_context, read, co_changes, churn, authors; system: entity, model, enum, lineage, api, architecture, roadmap, feature; issues: context (stored KG), read (authenticated live GitHub issue and latest comments; params.repoFullName + params.issueNumber), list, overlap; backlog: list (default: epics; params.type=\"tasks\" + epic_id for tasks), get (query=ID, auto-detects epic vs task), list_epics, get_epic, list_tasks, get_task; skills: list, recommend, list_files, load; stack: list_layers, list_agents, get_layer."New value: +"Query type. Valid actions depend on the domain; actions are NOT shared across domains. Valid actions per domain — code: search, context, impact, callers, deps, plan, traverse, skeleton, edge_query, batch_context, read, co_changes, churn, authors, recent_prs_for_file, pr_history_for_subsystem, subsystem, layer, neighbourhood, pr_context; system: entity, model, enum, lineage, api, architecture, subsystem, roadmap, feature; issues: context, list, overlap, prs_for_issue, read; backlog: list, get, list_epics, get_epic, list_tasks, get_task; skills: list, recommend, list_files, load; stack: list_layers, list_agents, get_layer. \"list\" is supported only by: issues, backlog, skills; \"get\" is supported only by: backlog. Any other domain/action pair returns invalid_action. Notes: issues/context reads stored KG, issues/read reads the live GitHub issue and latest comments (params.repoFullName + params.issueNumber); backlog list defaults to epics (params.type=\"tasks\" + epic_id for tasks), backlog get takes query=ID and auto-detects epic vs task."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with an explicit read-only guarantee ('does not create, change, or delete backlog, workflow, or GitHub data'). It goes further by disclosing that some actions make live GitHub calls while others hit the stored KG, which is meaningful beyond the annotations. It stops short of discussing rate limits, auth scopes, or pagination behavior in narrative form (pagination is delegated to the schema).

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?

Front-loaded with the domain enumeration and the read-only guarantee, but the middle becomes a dense run-on of GitHub read semantics and task reference formats. The action-per-domain list and notes largely duplicate the action parameter's schema description, so some sentences do not fully earn their place.

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 single mega-tool spanning six domains and ~40 domain/action pairs, the definition covers selection, live-vs-stored distinction, ID resolution prerequisites, and sibling routing. An output schema exists so return values need no explanation. Remaining gaps are per-action param specifics (depth, start_line) which are left entirely to the object schema.

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% so the baseline is 3, but the description adds real routing meaning: params.repoFullName is required for live issue reads, params.type/status/limit/cursor semantics for backlog lists, and the #123 / owner/repo#123 / URL reference formats for task queries. These clarify cross-parameter interactions the schema does not express.

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 ('Read project context') and enumerates the six domains it covers: code, system, issues, backlog, skills, stack. It also draws a clear boundary against the workflow/execution siblings by naming list_workflow_runs, get_workflow_run and get_task_execution explicitly.

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 when-to-use routing: stored KG reads vs live GitHub reads for issues/read and issues/list with query, plus the prerequisite of resolving epic/task UUIDs via backlog list/get before calling update_backlog. It also states a clear exclusion ('Not for workflow runs or task executions') and names three alternatives.

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.