Skip to main content
Glama

get_package_readme

Fetch the README of a Swift package from GitHub to understand its functionality, usage, and documentation before integration.

Instructions

Fetch the README of a Swift package from GitHub.

This is a QUERY tool — read-only, safe to call multiple times.

Use this after search_swift_packages to get details about a specific package. The owner and repo values come from search results (e.g. "apple" and "swift-nio").

Args: owner: GitHub repository owner (user or org). Example: "Alamofire". repo: GitHub repository name. Example: "Alamofire". max_length: Maximum characters to return (default 4000). Set to 0 for full content. Larger values use more tokens.

Returns the README content as markdown. If the README is longer than max_length, it is truncated with a note about the full length.

After reading the README, you can suggest the package to the user with its Swift Package Index URL: https://swiftpackageindex.com/{owner}/{repo}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
repoYes
max_lengthNo

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/detailobsessed/spm-search'

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