Skip to main content
Glama

get_edit_context

Read-onlyIdempotent

Fetch a symbol's source code, direct dependencies, callers, same-file siblings, and impacted tests before editing, so changes account for related code.

Instructions

Pre-edit bundle: source + direct deps + callers + same-file siblings + impacted tests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
symbolNoAlias de `name`.
projectNoProject name/path (default: active).
max_depsNoDefault 10.
max_callersNoDefault 10.
symbol_nameNoAlias de `name`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv4.20.0
    • addedInput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "name"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "symbol_name"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "symbol"
      +    ]
      +  }
      +]
    • addedInput schema / properties / symbol
      Added value: +{
      +  "description": "Alias de `name`. ",
      +  "type": "string"
      +}
    • addedInput schema / properties / symbol_name
      Added value: +{
      +  "description": "Alias de `name`. ",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "name"
      -]
  2. Addedv4.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and repeatability are covered. The description adds the useful fact that this is a composite/aggregated read rather than a single-resource fetch, but says nothing about cost, size limits, or truncation behavior of the bundle.

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 front-loaded fragment with zero filler; the bundle contents are listed immediately. It is arguably too terse to stand alone, but no sentence is wasted.

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 read-only aggregator with no output schema and high schema coverage, the description adequately signals what comes back. The gaps are the alias-parameter semantics and any indication of bundle size or output shape, which are minor given the annotations.

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 83%, so the schema carries the parameter burden and baseline is 3. The description adds nothing about parameters, and notably does not clarify the name/symbol/symbol_name alias anyOf or how max_deps/max_callers shape the returned bundle.

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?

Names a specific artifact ('pre-edit bundle') and enumerates its five contents (source, direct deps, callers, same-file siblings, impacted tests), which is far more informative than a bare verb+resource. It distinguishes itself reasonably from siblings like find_impacted_test_files or get_dependencies, though it never explicitly says how it differs from get_full_context or get_change_impact.

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?

'Pre-edit' implies the trigger point (before making a change), but there is no explicit when/when-not statement and no named alternative. With get_full_context, get_change_impact and get_dependencies in the sibling set, the agent must guess which context-gathering tool to pick.

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