Skip to main content
Glama

Get Incident Context

get_incident_context

What went wrong last time we touched this module? Returns past incidents, deploy failures, gotchas, and active constraints for a module or system. Use BEFORE modifying infrastructure code, deploy scripts, or any module with a history of fragility. Surfaces the kind of tribal knowledge that prevents repeat failures — Docker bind mount traps, Vault agent write patterns, stale dist/ artifacts, port conflicts, and similar operational landmines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results to return (default 20)
moduleYesModule or system name (e.g. 'Engine', 'VaultCrux', 'docker', 'vault-agent')
days_backNoHow many days back to search (default 90)
code_pathsNoSpecific code paths to check for related incidents

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It clearly describes the type of historical knowledge returned (incidents, failures, gotchas, constraints) and gives real-world examples, which is useful. However, it does not explicitly state that the tool is read-only, whether it requires special permissions, or what happens when no incidents are found (e.g., empty result). The concrete examples add value, but core behavioral disclosures beyond 'returns' are minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, front-loaded with a purpose question then a direct statement. The second sentence gives usage timing, and the final sentence provides concrete examples ('Docker bind mount traps, Vault agent write patterns, stale dist/ artifacts, port conflicts'). Every sentence earns its place with no redundancy or fluff.

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?

The tool has an output schema (though not shown), so return-value details are covered elsewhere. The description gives enough context for when to use the tool and what kind of insight it provides. It lacks mention of edge cases (e.g., searching a module with no history) or how it interacts with other context-gathering tools, but overall it is sufficiently complete for a read-oriented lookup tool.

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

Parameters3/5

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

Schema description coverage is 100%, with each parameter (module, limit, days_back, code_paths) having a clear description and example. The tool description does not add additional parameter semantics beyond what the schema provides, so the baseline score of 3 applies.

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 opens with a clear verb ('Returns') and identifies the exact resource ('past incidents, deploy failures, gotchas, and active constraints for a module or system'). It distinguishes itself from siblings like get_active_alerts (which would focus on current alerts) and get_constraints (which would list active constraints only) by framing the tool as a historical/tribal knowledge lookup, with concrete example content (Docker bind mount traps, Vault agent patterns).

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?

Explicit usage guidance is provided: 'Use BEFORE modifying infrastructure code, deploy scripts, or any module with a history of fragility.' This gives a clear temporal and situational trigger. However, it does not explicitly name alternative tools or state when NOT to use this tool, so it stops short of the full 5-point bar.

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.

TDQS

C2.8/5.0
Disambiguation2/5

Several tools have overlapping purposes: check_claim and memory_claim_check are the same function with different tiers, get_freshness_report and memory_freshness_report are duplicates, get_correction_chain and compare_versions both trace history, and investigate_question subsumes many other retrieval tools. This will cause agent misselection.

Naming Consistency4/5

Most tools follow a verb_noun pattern (get_constraints, declare_constraint, sync_pull, etc.). Exceptions like memory_claim_check, memory_freshness_report, session_debrief, and verify_before_acting deviate but are relatively few. Overall the naming is readable and mostly predictable.

Tool Count1/5

75 tools is excessive for a memory server. Many are highly niche or direct duplicates (e.g., paid/free versions of the same function). The count far exceeds typical well-scoped servers and introduces cognitive overhead without proportional value.

Completeness3/5

The server covers a wide array of memory, constraint, decision, skill, and sync operations, which is impressive. However, there are notable gaps: no direct delete or edit for memory facts (only corrections/versioning), and no bulk enumeration of all stored items. The redundancy in retrieval tools also suggests an incomplete design.

Resources