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. Two reads reach GitHub live: issues/read returns the current GitHub issue and latest comments (issues/context, list and overlap use stored issue context), and code/read can fetch file content from repositories connected to the organization. Use backlog list/get actions to find existing epic and task IDs before calling update_backlog. 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoPrimary 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.
actionYesQuery 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.
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

TableJSON Schema
NameRequiredDescriptionDefault
nextNo
resultYes
coverageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint=false, but the description adds real context beyond them: most actions read stored indexed context while exactly two (issues/read, code/read) reach GitHub live, and issues/read requires authentication with repoFullName + issueNumber. It doesn't cover rate limits or pagination/response shape, but the live-vs-stored distinction is genuinely informative.

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 six domains, then live-vs-stored caveats, then exclusions and alternatives - a sensible order. It is dense but not padded; the main cost is that the long action enumeration partially duplicates the schema's action description, which is redundant but still aids action selection.

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?

For a broad multi-domain read tool with an output schema and annotations already present, the description supplies what structured fields cannot: the live-vs-stored split, the ordering requirement before update_backlog, and explicit handoffs to the workflow/task-execution siblings. Nothing an agent needs to select the right domain/action is missing.

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 baseline is 3, but the description goes further: it disambiguates which domain+action combinations exist, clarifies that issues/context, list and overlap use stored issue context while issues/read is live, and states that query accepts an ID, path, symbol, or skill name depending on domain. That is semantic guidance the schema's flat action enum does not convey.

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?

The description states a concrete verb+resource ('Read project context') and immediately enumerates the six exact domains (code, system, issues, backlog, skills, stack), so an agent knows precisely the scope. It also names what it is not (workflow runs, task executions), separating it from siblings.

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?

It gives explicit routing rules: 'use backlog list/get actions to find existing epic and task IDs before calling update_backlog', and 'Not for workflow runs or task executions: use list_workflow_runs... get_workflow_run... get_task_execution...'. This is when-to-use, when-not-to-use, and named alternatives in one place.

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.

Resources