Skip to main content
Glama

git_pull_reindex

Update knowledge index by pulling latest git commits and re-indexing only changed files.

Instructions

Pull latest commits from the knowledge repo git remote, then re-index.

    Call this AFTER pushing .md files to the knowledge repo. Runs
    'git pull' on the cloned docs directory, then re-indexes only changed
    files. No-op if the repo is already up to date.

    Requires MCP_GIT_REPO_URL to be configured. Use reindex() instead
    when files were written locally (not via git push).

    Args:
        project: Target project name (optional)

    Returns:
        "Already up to date" if no changes, otherwise files indexed,
        chunks upserted, and stale chunks removed.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description covers key behaviors: it's a no-op if up to date, requires MCP_GIT_REPO_URL configuration, and describes return values. Lacks explicit mention of safety (e.g., read/write nature) but is otherwise sufficient.

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-loaded with main purpose, uses bullet-like formatting. Every sentence adds value, though could be slightly more concise. No wasted words.

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

Completeness5/5

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

Given one optional parameter, clear usage context, and the presence of an output schema, the description is complete. It explains the workflow, prerequisites, and return 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?

The only parameter 'project' is noted as optional, but the description adds no extra semantic detail beyond what the schema's default and type provide. Schema coverage is 0%, so the description adds minimal value.

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 clearly states the tool pulls commits and reindexes, and distinguishes it from the sibling 'reindex' by noting when each should be used.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to call this after pushing .md files, and to use reindex() for locally written files. Provides clear when-to and when-not-to guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dl4rce/flaiwheel'

If you have feedback or need assistance with the MCP directory API, please join our Discord server