Skip to main content
Glama
Coding Thinker MCP
by awssat

analyze_context

Analyze code files and the request first to capture style, pre-existing issues, research queries, and git status before planning or making code edits.

Instructions

Step 1: Analyze code files and understand the request.

Returns:

  • session_id: Use in subsequent tool calls

  • style_profile: Auto-detected code style (will enforce on edits)

  • issues: Pre-existing problems (including git status)

  • research_queries: Suggested searches for best practices

  • git_status: Repository state and commit readiness

Call this FIRST before any other tool.

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": {
      "files": "<files>",
      "request": "<request>"
    },
    "name": "analyze_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
requestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.2

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It usefully enumerates the return payload (session_id, style_profile, issues, research_queries, git_status) and notes that the detected style "will enforce on edits" — a real downstream consequence — but never states whether the analysis is read-only, what it costs, or what happens on an invalid file payload.

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-loads the Step 1 framing, then uses a compact bulleted return list, ending with the imperative call-first rule. Every section is purposeful; the only mild redundancy is restating the tool's identity in the first line.

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?

Because there is no output schema, the explicit return-value enumeration is genuinely necessary and well done, and the workflow ordering is stated. The remaining gap is parameter meaning for a tool that expects a structured file array, which the description leaves to intuition.

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 0% across two required parameters, so the description must compensate. It only implicitly conveys that "files" are source files and that "request" is the user's task; the nested path/content/language structure of the files array is not clarified at all.

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 verb and resource ("Analyze code files") and frames its position in a workflow as "Step 1". The "understand the request" half is fuzzier, but combined with the call-first directive an agent can distinguish this from execute_and_review, plan_and_verify, and think_aloud.

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?

Gives an explicit sequencing rule: "Call this FIRST before any other tool," which is exactly the when-to-use guidance an agent needs for a pipeline entry point. It does not explain when to skip it or how it relates to the downstream analysis tools, but the ordering constraint carries most of the weight.

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