Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

List strategy revision files

list_files
Read-onlyIdempotent

Lists files in any saved strategy revision owned by the authenticated user. Folders are represented by slash-separated file paths. For the current attached/open strategy, omit strategyId and revisionId so the server uses the latest active revision from conversation state, falling back to the MCP token, instead of making you copy UUIDs. If the user explicitly asks for another owned strategy, resolve that target with list_strategies/list_revisions and pass that target strategyId/revisionId here. For plan-driven first-build work, make the visible implementation item in_progress with update_plan_item before using file tools so the user sees the current plan step while file work runs. For first-build strategy work, call create_strategy first. When create_strategy attaches the workspace through conversationUpdate, omit strategyId and revisionId: get_file needs only path and list_files needs no selectors. If creation returned no conversationUpdate, copy the exact returned strategyId/revisionId pair.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
revisionIdNoRevision id. Omit to use the active revision or latest saved revision of strategyId.
strategyIdNoStrategy id (or exact owned strategy name). Omit for the current attached/open strategy; omitting revisionId resolves the latest saved revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / revisionId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/strategyId/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / revisionId / description
      Previous value: -"Revision id. Omit only for the current attached/open strategy when the MCP token is scoped to an active strategy revision."New value: +"Revision id. Omit to use the active revision or latest saved revision of strategyId."
    • changedInput schema / properties / strategyId / anyOf
      Previous value: -[
      -  {
      -    "format": "uuid",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 200,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / strategyId / description
      Previous value: -"Strategy id. Omit only for the current attached/open strategy when the MCP token is scoped to an active strategy revision."New value: +"Strategy id (or exact owned strategy name). Omit for the current attached/open strategy; omitting revisionId resolves the latest saved revision."
  2. Changed5 schema fields changed
    • removedInput schema / properties / revisionId / $ref
      Removed value: -"#/properties/strategyId"
    • addedInput schema / properties / revisionId / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/properties/strategyId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / strategyId / anyOf
      Added value: +[
      +  {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / strategyId / format
      Removed value: -"uuid"
    • removedInput schema / properties / strategyId / type
      Removed value: -"string"
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds genuinely non-obvious behavior: server-side resolution from conversation state with fallback to the MCP token, and that folders are expressed as slash-separated paths in the result. It does not describe ordering, pagination, or whether file contents/metadata are included.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and logically ordered, but it repeats the same "omit strategyId and revisionId" instruction three times in different framings and drifts into plan-workflow orchestration that is only tangentially about listing files. Roughly a third of the text could be consolidated without losing meaning.

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 two-optional-parameter read tool with full schema coverage and annotations, this covers selection logic, fallback behavior, prerequisites, and result shape (slash paths). The main residual gap is return-value detail (file contents vs. names only, ordering), which is not covered since there is no output schema.

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% and the schema already documents both optional selectors and the active/latest-revision default. The description goes beyond it by giving the precedence chain (conversation state, then MCP token) and by clarifying that strategyId accepts an exact owned strategy name, which the schema only hints at.

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?

States a specific verb and resource ("Lists files in any saved strategy revision owned by the authenticated user") plus a scope constraint (owned revisions only). It implicitly distinguishes itself from get_file (single file) and list_revisions (revisions, not files) by describing what it returns and how paths are shaped.

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

Usage Guidelines5/5

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

Explicit routing rules: omit both selectors for the current attached strategy; resolve other targets via list_strategies/list_revisions and pass IDs here. It also states prerequisites (create_strategy for first-build work, update_plan_item before file tools) and the exact branch when creation returns no conversationUpdate, so an agent has no inference left to do.

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.