Skip to main content
Glama
FullContextInput MCP

FullContextInput MCP

by lukehemmin

extract_file_content

Extracts a filename from a prompt and returns that file's full code, with an optional workspace path for locating the file.

Instructions

프롬프트에서 파일명을 추출하고 해당 파일의 전체 코드를 반환합니다.

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": {
      "prompt": "<prompt>"
    },
    "name": "extract_file_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes분석할 프롬프트 텍스트
workspace_pathNo워크스페이스 경로 (선택사항).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

A3.5/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, and it does disclose one non-obvious behavior: the file reference is derived automatically from free text rather than passed as an explicit path parameter. It says nothing about failure modes (no filename found, multiple candidates, file missing), whether whole-file returns can be very large, or any permission requirements.

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?

A single front-loaded sentence with no filler; the extraction step precedes the return so the agent sees the mechanism first. Nothing redundant is included.

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

Completeness3/5

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

For a two-parameter read tool with a full schema this is minimally adequate, but with no annotations and no output schema the description should cover at least ambiguous-prompt handling and path resolution relative to workspace_path. Those gaps leave an agent guessing at edge-case behavior.

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%, so both parameters are already documented in the schema. The description adds only the meaning of 'prompt' as the source for filename extraction and never explains how workspace_path affects resolution — the baseline 3 applies.

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?

The description names a concrete two-step operation: extract a filename from the prompt, then return that file's full code. The emphasis on 'full code' (전체 코드) implicitly distinguishes it from the chunk/line readers in the sibling list, but no sibling is named explicitly.

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: an agent can infer it applies when it holds a natural-language prompt containing a filename. There is no explicit statement of when to prefer this over read_file_content or read_file_smart, and no prerequisites or exclusions are given.

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