Skip to main content
Glama

query_context

Read-only

Search rules, tech-stack, workflows, and skills using hybrid full-text and vector retrieval to find relevant project context.

Instructions

Hybrid FTS + vector search across rules, tech-stack, workflows, and skills.

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": {
      "query": "<query>"
    },
    "name": "query_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
kindNo
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.14.0

TDQS

B3.1/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds the useful detail that retrieval is hybrid (keyword plus vector), but says nothing about ranking, result count behavior, or what happens with an unrecognized kind filter.

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?

A single verbless fragment that front-loads the mechanism and scope with no filler. It is tight, though the fragment style omits any operative verb and the brevity comes partly from under-specification.

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

Completeness2/5

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

An output schema and annotations are supplied, so return-value and safety explanation are not needed. However, with three parameters at 0% schema coverage, the description should define k and the accepted kind values; it defines neither, leaving an agent to guess at call syntax.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and largely fails: 'k' is never explained as a result count or bounded, and 'kind' is an unconstrained string with no enum. The domain list ('rules, tech-stack, workflows, and skills') is the only hint at valid kind values, which is partial compensation but leaves both non-required parameters underspecified.

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?

It names a concrete retrieval mechanism (hybrid FTS + vector) and an explicit corpus (rules, tech-stack, workflows, skills), so an agent knows this is a cross-domain semantic search rather than a single-resource lookup like query_rules or get_tech_stack. It stops short of naming any sibling or stating how it differs from them.

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?

Usage is only implied: the enumerated domains suggest this is the tool to reach for when the target corpus is unknown or spans several sources. There is no explicit when-to-use, when-not-to-use, or pointer to query_rules/query_graphify for narrower searches.

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