Skip to main content
Glama

Context Get

context_get

Retrieve project rules, decisions, and procedures scoped to specific files or queries. Use at project start or when switching areas to get relevant context within a token budget.

Instructions

Pacote de contexto do projeto: regras, contexto, decisões, padrões, procedimentos.

Use quando: Começar num projeto (se o hook não injetou) ou ao passar a mexer em outra área: paths traz as regras com escopo daqueles arquivos; query, itens relacionados. Retorna: {linked, project_key, workspace, domain, markdown, included, omitted, sensitive}. Exemplo: context_get(project=".", paths=["src/payments/Charge.java"], query="estorno") Notas: Dentro de budget_tokens. Itens que casam com paths ou query vêm em foco, com o começo do content (dispensa item_get); o resto, só título, resumo e key. sensitive é true se paths toca uma área marcada com a keyword "sensivel". Inclui o domain do projeto, Geral do workspace e Global/Geral. Sem substituídos, obsoletos nem ephemeral.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsNo
queryNo
projectYes
budget_tokensNo
connection_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full behavioral burden and largely meets it: it discloses the `budget_tokens` cap, that path/query matches arrive focused with the start of content while the rest show only title/summary/key, how `sensitive` is set, and which scopes are included/excluded (substituted, obsolete and ephemeral items omitted). Permissions and performance characteristics are the main gaps.

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?

Well front-loaded with bold section headers (Use quando / Retorna / Exemplo / Notas) that let an agent skim. The 'Retorna' field list duplicates what the existing output schema already specifies, which is the only wasted line; the rest is dense and earns its 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 5-parameter tool with 0% schema description coverage and no annotations, the description supplies the usage triggers, scoping semantics, budget behavior and inclusion/exclusion rules an agent needs to call it correctly. With an output schema present, the explicit return-field listing is redundant, and `connection_id` remains undocumented, but overall it is nearly complete.

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, and it does for most parameters: `paths` (scoped rules for those files), `query` (related items), `project` (shown as project=".") and `budget_tokens` (results capped within it) all gain meaning. Only `connection_id` is left unexplained in both schema and description.

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 resource clearly: a project context bundle covering rules, context, decisions, patterns and procedures. The retrieval verb is only implicit ('context_get') and no sibling is named directly, though the note that focused items 'dispensa item_get' hints at the item_get overlap. Clear but not fully differentiated from item_get/item_search in the purpose line itself.

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

Usage Guidelines4/5

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

The '**Use quando:**' block gives explicit triggering conditions: starting on a project (when the hook hasn't injected) or moving into another area, with `paths` for scoped rules and `query` for related items. It covers when to reach for this tool but does not lay out explicit when-not rules beyond the hook case.

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