Skip to main content
Glama

get_package_source

Retrieve the contents of a specific source file from a @gaddario98 React package by package ID and file path; omit filePath to list all files. Use list_packages first to find packages.

Instructions

Read the contents of a specific source file from a @gaddario98 React package. Use list_packages first to see available packages, then explore files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathNoRelative path to the file within the package directory (e.g., 'hooks/useFormManager.tsx'). Omit to list all source files.
packageIdYesPackage identifier: 'react-core', 'react-form', 'react-queries', or 'react-pages'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. 'Read the contents' implies a safe read-only operation, which is useful, but there is no disclosure of truncation limits for large files, permission requirements, or what a listing looks like when filePath is omitted. Adequate but thin for a tool with zero annotation coverage.

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 short sentences, front-loaded with the core action before the prerequisite hint. Nothing is wasted, though it is very brief for a tool whose behavior is otherwise undocumented.

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

Completeness3/5

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

With no output schema and no annotations, the description should ideally state what is returned (file contents vs. a file listing when filePath is omitted). It covers the basics but leaves the return shape and large-file behavior to inference.

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%, with filePath and packageId fully documented including an example path and the enumeration of package identifiers. The description adds no syntax or format detail beyond the schema, so the baseline of 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 and resource: 'Read the contents of a specific source file from a @gaddario98 React package.' This is clear and actionable. It does not explicitly contrast itself with siblings like search_source or get_package_types, which would be needed for a 5.

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?

Provides clear sequencing: 'Use list_packages first to see available packages, then explore files.' That is real usage context. It stops short of distinguishing when to use this tool versus search_source or get_package_docs, so no exclusions or alternatives are given.

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