Skip to main content
Glama

import.extract

Extract a function or module from any GitHub repository with license checks, dependency resolution, and style adaptation; get ready-to-paste code with attribution.

Instructions

Extract a function/module from a GitHub repo with provenance. License-checked, dependency-resolved, style-adapted. Returns ready-to-paste code with attribution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoBranch/tag/commit
pathYesFile path in the repo
repoYesowner/repo
symbolNoSpecific function/class to extract
adaptStyleNoAdapt to your project's style

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavioral traits beyond the schema: it license-checks, resolves dependencies, adapts style, and returns code with attribution. It stops short of stating auth requirements, failure modes (e.g. what happens when a license check fails), or whether the extraction is read-only/harmless.

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?

Three short, front-loaded sentences with zero filler; the core action and its differentiators are stated immediately and the return value is placed last. Every fragment 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 no annotations and no output schema, the description covers the action, its transformation pipeline, and the shape of the return (ready-to-paste code with attribution). It is nearly sufficient, only missing failure/edge behavior and auth context.

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 all five parameters (ref, path, repo, symbol, adaptStyle) are already documented in the schema. The description only loosely alludes to adaptStyle ("style-adapted") and adds no syntax or format detail beyond what the schema provides, so 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 gives a specific verb ("Extract") and resource ("a function/module from a GitHub repo") and enumerates the tool's distinctive pipeline: provenance, license-checking, dependency resolution, style adaptation. It is clearly understandable on its own, though it does not name any sibling (e.g. github.repo_file or code.symbols) to differentiate itself 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: "Returns ready-to-paste code with attribution" suggests the use case of pulling external code into your project. There is no explicit when-to-use vs alternatives guidance, no mention of prerequisites (auth, rate limits), and no statement of when not to use it.

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