Skip to main content
Glama

Generate Repository Readme Tool

generate-repository-readme

Use this when the user asks to generate or refresh a README for an imported repository. After authorization, this state-changing action consumes AI credits, creates a generation, and can save it to a Space, where it may be publicly accessible; it requires the numeric repository_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
licenseNoOptional license value for the README; required when sections includes License.
filenameNoOptional generation history filename. Defaults to README.md plus the repository name.
languageNoOptional human language for the generated README. Defaults to English.
sectionsNoOptional README sections to include, such as Introduction, Features, Requirements, Installation, Usage, Configuration, Contributing, or License.
repository_idYesRequired numeric ID of an already connected/imported repository from the user repository records; do not pass a slug, URL, provider name, or Space repository-link ID.
save_to_spaceNoOptional destination Space page to create from the generated README after authorization. The authenticated user must manage the Space.
additional_instructionsNoOptional customer instructions for README tone, scope, installation focus, examples, or project-specific emphasis.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that authorization is required, that it is state-changing, that it consumes AI credits, that it creates a generation, and that saving to a Space may make the output publicly accessible. This is exactly the kind of cost/side-effect context an agent needs before invoking.

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?

Two sentences, front-loaded with the trigger condition, and the second sentence packs the side-effect profile efficiently. It is dense but each clause carries information an agent needs.

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 state-changing, credit-consuming tool with no output schema and a nested parameter object, the description covers triggers, authorization, cost, and public-exposure risk. It does not indicate the return value (e.g., a generation identifier) or whether generation is asynchronous, a minor remaining gap.

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 the schema already documents all seven parameters including the nested save_to_space object and the license/sections dependency. The description only restates that repository_id must be numeric, adding little beyond the schema, 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?

States a specific verb (generate/refresh) and resource (README for an imported repository), so an agent can distinguish it from the generic documentation generators. It stops short of naming sibling alternatives such as generate-repository-documentation or generate-and-add-documentation, which is the only gap.

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 a clear trigger condition: 'Use this when the user asks to generate or refresh a README for an imported repository.' It sets the precondition that the repository must already be imported, but offers no explicit when-not or alternative-tool routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources