Skip to main content
Glama

midnight-get-repo-context

Read-only

Combine version info, syntax reference, and relevant examples for a repository in one call, saving time and tokens when starting a coding session.

Instructions

🚀 COMPOUND TOOL: Get everything needed to start working with a repository in ONE call. Combines version info + syntax reference + relevant examples. Use this at the start of a coding session instead of multiple individual calls. Saves ~50% tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository name (e.g., 'compact', 'midnight-js')
includeExamplesNoInclude example code snippets (default: true)
includeSyntaxNoInclude syntax reference (default: true)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
repositoryNoFull repository path
quickStartNoVersion and install command
versionNoVersion details
syntaxNoSyntax reference summary
examplesNoRelevant examples
Behavior4/5

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

Annotations already indicate readOnlyHint=true. Description adds value by revealing compound nature, internal combination of calls, and token efficiency. No contradictions.

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?

Two efficient sentences with emoji and bold label for impact. Front-loaded purpose, followed by usage guidance. 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?

With output schema, full parameter coverage, and annotations, the description fills remaining gaps: compound nature, optimal usage timing, and token savings. Fully complete for the tool's moderate complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with parameter descriptions. Description adds context by linking boolean parameters to parts of the compound result (examples, syntax), enhancing meaning beyond schema alone.

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?

Description clearly states the tool gets all repository context in one call, specifying what it combines (version info, syntax, examples). Distinguished from sibling tools like midnight-get-version-info and midnight-list-examples.

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?

Explicitly recommends use at the start of a coding session to replace multiple calls and highlights token savings. Does not specify when not to use, but context is clear.

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/Olanetsoft/midnight-mcp'

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