Skip to main content
Glama

list_skill_files

Read-only

Browse or search a skill's files and nested sub-skills, returning bounded pages with signed cursor pagination for controlled navigation.

Instructions

Browse or search a skill's files and nested sub-skills. Returns a bounded page with signed cursor pagination.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "skill_name": "<skill_name>"
    },
    "name": "list_skill_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoSubdirectory path within the skill (default: root)
viewNoDirectory entries or nested skill summariesfiles
limitNoMaximum entries per page (1–100); a byte budget may return fewer
queryNoCase-insensitive words matched against all names/paths and sub-skill descriptions before paging
cursorNoOpaque next_cursor from the previous page; omit to start or change filters
max_depthNoFile tree depth (0–8, default: 2); sub_skills always searches all nested depths
skill_nameYesSkill name, e.g. 'KrillinAI'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.0.7
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Opaque next_cursor from the previous page; omit to start or change filters",
      +  "maxLength": 512,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 50,
      +  "description": "Maximum entries per page (1–100); a byte budget may return fewer",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / max_depth / description
      Previous value: -"Directory scan depth (default: 2)"New value: +"File tree depth (0–8, default: 2); sub_skills always searches all nested depths"
    • addedInput schema / properties / max_depth / maximum
      Added value: +8
    • addedInput schema / properties / max_depth / minimum
      Added value: +0
    • changedInput schema / properties / max_depth / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / path / maxLength
      Added value: +4096
    • addedInput schema / properties / query
      Added value: +{
      +  "default": "",
      +  "description": "Case-insensitive words matched against all names/paths and sub-skill descriptions before paging",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / properties / view
      Added value: +{
      +  "default": "files",
      +  "description": "Directory entries or nested skill summaries",
      +  "enum": [
      +    "files",
      +    "sub_skills"
      +  ],
      +  "type": "string"
      +}
  2. First observedv1.0.6

TDQS

A3.8/5.0
Behavior4/5

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

With readOnlyHint=true already declaring the safety profile, the description earns credit for adding return behavior: results are a bounded page, and pagination uses a signed cursor. This tells the agent to expect truncated results and to loop with a cursor, which the annotations alone do not convey. It stops short of describing how the byte budget or filters interact beyond the schema's own wording.

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 short sentences with zero filler; the resource scope is front-loaded and the pagination contract follows immediately. Nothing is repeated from the title or schema.

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 7-parameter read tool with a fully documented schema, a readOnly annotation, and no output schema, the description covers the essential return-shape contract (bounded page, signed cursor) that structured fields do not. A brief note on how cursor invalidation relates to changing filters would close the remaining gap, though the cursor parameter description already hints at it.

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 every parameter (path, view, limit, query, cursor, max_depth, skill_name) is already documented with defaults and bounds. The description adds no parameter-level meaning beyond the schema, which is the expected baseline when the schema does the heavy lifting.

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?

The description names a specific verb pair (browse/search) and a specific resource (a skill's files and nested sub-skills), so the agent can tell it is a traversal tool rather than a content reader. It does not explicitly contrast itself with siblings such as load_skill_file, read_skill, or search_skills, so differentiation is only implicit.

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

Usage Guidelines3/5

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

The phrase "Browse or search a skill's files and nested sub-skills" implies two usage modes (directory listing vs. query filtering) and the pagination sentence hints at multi-page traversal. However, there is no explicit when-to-use/when-not guidance and no named alternative, so the agent must infer that reading file contents belongs to a sibling tool.

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