logic-lab
The Logic Lab MCP Server gives AI agents access to a curated library of 303 generative art algorithms across 11 domains (e.g., physics, fractals, cellular automata, steering behaviors, genetic algorithms), enabling discovery, exploration, and retrieval of algorithm source code.
Available tools:
search_algorithms(query, category, limit)— Free-text search across algorithm titles, concepts, and visual descriptions, with optional category filter and automatic synonym expansion.search_by_mood(mood, style, limit)— Find algorithms by aesthetic mood (e.g.,ethereal,chaotic,geometric,organic,cosmic,minimal,crystalline) with optional style refinement.recommend_combinations(intent, count)— Get ranked, multi-layer algorithm recipe suggestions for a given artistic intent (e.g., "flowing smoke with invisible force fields").get_algorithm_summary(path)— Retrieve manifest metadata (title, category, concepts, complexity, dependencies, use-cases) plus a README excerpt — without fetching full source code.get_algorithm(path, max_chars)— Fetch the full source code of a.pyfile orREADME.md(read-only, up to 20,000 characters).get_manifest()— Return the complete algorithm manifest as JSON, listing all 303 entries with their paths, titles, categories, concepts, and metadata.
Enables GitHub Copilot in VS Code to search and retrieve algorithm metadata and source code from the Logic Lab repository for creative coding assistance.
Logic Lab
Python translations of creative coding examples using py5. Each simulation is organized by domain, demonstrating core computational creativity concepts: physics, steering behaviors, genetic algorithms, neural networks, fractals, cellular automata, tiling patterns, and mathematical systems.
MCP Server
Logic Lab is available as an MCP server for AI agents. Agents can search the Logic Lab manifest, find algorithms by visual intent or category, read short summaries, and fetch bounded source snippets for selected examples.
Option 1: Quick Start
If you just want to use the MCP server directly via Glama or your AI agent without cloning the repository, you can run it remotely using uvx.
Add the following to your AI tool's MCP
configuration:
{
"mcpServers": {
"logic-lab": {
"command": "uvx",
"args": [
"--from",
"logic-lab",
"logic-lab-mcp"
]
}
}
}Option 2: Manual Installation (For local development)
Requires uv. Clone this repository locally if you want to modify the algorithms or run the server from your local source.
git clone https://github.com/asamiile/logic-lab.git
cd logic-lab
uv syncRegistration (Local)
After manual installation, register the local server with your AI tool using the logic-lab-mcp command:
Claude Code:
claude mcp add logic-lab -- logic-lab-mcpCodex:
codex mcp add logic-lab -- logic-lab-mcpGitHub Copilot in VS Code (.vscode/mcp.json or user MCP settings):
{
"servers": {
"logic-lab": {
"type": "stdio",
"command": "logic-lab-mcp"
}
}
}Cursor (.cursor/mcp.json or ~/.cursor/mcp.json):
{
"mcpServers": {
"logic-lab": {
"type": "stdio",
"command": "logic-lab-mcp"
}
}
}Available Tools
303 algorithms across 11 domains are accessible via 6 MCP tools:
Tool | Description |
| Free-text search across titles, concepts, and visual descriptions. Start here. |
| Find algorithms by aesthetic mood: |
| Returns layered multi-algorithm recipes for a given artistic intent. |
| Returns manifest metadata and README excerpt for a path. Check relevance before fetching source. |
| Returns source code for a specific algorithm file. Read-only, size-limited. |
| Returns the full manifest JSON. Use when you need to enumerate all entries or categories. |
Recommended workflow: search_algorithms → get_algorithm_summary → get_algorithm
See src/logic_lab/mcp/README.md for full parameter reference, security notes, and resource endpoints.
Agent Conversation Example
User: I want to create flowing smoke with invisible force fields.
Agent: Running
search_algorithms("flowing smoke invisible force fields")...
steering_behaviors/flow_field.py— particles following a fluid vector field
physics/fluid_simulation.py— grid-based fluid dynamicsChecking details with
get_algorithm_summary("steering_behaviors/flow_field.py")... complexity: medium, concepts: [flow field, Perlin noise, autonomous agents]Fetching source with
get_algorithm("steering_behaviors/flow_field.py")to use as reference for implementation.
Algorithm Domains
mathematical/ - Generative geometry, color harmony, noise functions, fractals
physics/ - Particle systems, forces, spring physics, fluid dynamics, collision
steering_behaviors/ - Autonomous agents, flocking, pathfinding, flow fields
genetic_algorithms/ - Evolution, selection, crossover, mutation
neuro_evolution/ - Neural networks evolved via genetic algorithms
fractals/ - Recursive structures, space-filling curves, Mandelbrot sets
cellular_automata/ - Rule-based systems, Game of Life, emergence
tiling_patterns/ - Symmetry, tessellations, ornamental patterns
research/ - Experimental systems combining multiple domains
simulation/ - Prototype implementations and archived experiments
shader/ - GLSL fragment shaders for TouchDesigner and UE5
Example: Autonomous Artwork Generation
py5-media-art — a project that uses the Logic Lab MCP server with Claude Code to autonomously generate py5 sketches. Claude searches Logic Lab for relevant algorithms, adapts them into new compositions, and optionally writes accompanying articles.
Related MCP server: Paint MCP
Gallery
Examples of generative art created with Logic Lab algorithms:
Development
To contribute new algorithms or fixes, see CONTRIBUTING.md for detailed guidelines on:
Development setup with
uvAlgorithm addition workflow
py5 code patterns and templates
Testing requirements
Conventional Commits specification
Automated release process
Setup
Install dependencies:
uv syncRunning Tests
# Install dev dependencies
uv sync --group dev
# Run all tests
uv run pytest tests/
# Run with coverage
uv run pytest tests/ --cov=src/logic_labCode Quality
# Lint with ruff
uv run ruff check src/ tests/
# Format with black
uv run black src/ tests/
# Lint and fix
uv run ruff check --fix src/ tests/Repository Structure
logic-lab/
├── src/logic_lab/ # Package root
│ ├── __init__.py
│ ├── mcp/ # MCP server for AI agent access
│ ├── physics/ # Motion, forces, particles, simulations
│ ├── steering_behaviors/ # Autonomous agents, flow fields, flocking
│ ├── genetic_algorithms/ # Selection, mutation, evolutionary search
│ ├── neuro_evolution/ # Neural networks evolved via genetics
│ ├── fractals/ # Recursion, trees, Koch curves, L-systems
│ ├── cellular_automata/ # Rule-based grids, lattice systems
│ ├── mathematical/ # Noise, curves, geometry, harmony
│ ├── tiling_patterns/ # Symmetry, tessellation, ornaments
│ ├── research/ # Experimental and hybrid systems
│ ├── simulation/ # Prototypes and reference implementations
│ ├── shared/ # Reusable utilities and helpers
│ └── shader/ # GLSL shader experiments
├── tests/ # Pytest test suite
├── CONTRIBUTING.md # Contributor guidelines and conventions
├── CHANGELOG.md # Version history and release notes
├── pyproject.toml # Package configuration and dependencies
└── .github/workflows/
├── test.yml # CI: lint and test automation
└── release.yml # CD: automated releases with release-pleaseReference
License
Author
If you find this helpful, consider supporting the work:
Available Tools
6 toolsget_algorithmA
Return the source text of a Logic Lab .py file or README.md.
This tool is read-only: it reads only .py files and README.md files within
the repository boundary. File creation, editing, deletion, and shell execution
are not available through this server.
Returns a dict with:
- path (str): normalized manifest-relative path
- content (str): file text, possibly truncated
- truncated (bool): true when the file exceeded max_chars
- notice (str | null): truncation message with the current limit and maximum,
or null when content was not truncated
Raises AccessError when the path escapes the repository root, points to a
non-existent file, or refers to a disallowed file type (not .py or README.md).
Call get_algorithm_summary first to confirm relevance before fetching full
source. Call search_algorithms or get_manifest to discover valid paths.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Manifest-relative path to a .py or README.md file within the Logic Lab repository (e.g. 'physics/wave/wave.py' or 'fractals/mandelbrot/README.md'). Must be a relative path — absolute paths are rejected. Paths that escape the repository root are rejected. Use search_algorithms or get_manifest to discover valid paths. | |
| max_chars | No | Maximum characters of source text to return. Accepts integers in the range 1–20000. Default: 12000. When the file exceeds this limit the response sets truncated=true and includes a notice. Increase this value for large source files, up to the hard limit of 20000. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Despite no annotations, the description fully discloses behavioral traits: it is read-only, only reads .py and README.md files, and explicitly states that file creation, editing, deletion, and shell execution are not available. It also details error conditions and return structure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and concise: a single sentence for purpose, bullet points for return values, clear error conditions, and usage recommendations. Every sentence adds value without redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description is fully complete given the tool's complexity and the presence of an output schema. It covers all aspects: input, output, error handling, usage context, and relationships to sibling tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, and the description adds significant value beyond the schema by explaining the 'path' parameter as manifest-relative and describing how to discover valid paths, and for 'max_chars' explaining the range, default, and truncation behavior.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description explicitly states the tool's purpose: 'Return the source text of a Logic Lab .py file or README.md.' It uses a specific verb and resource, and distinguishes from siblings by mentioning alternatives like get_algorithm_summary, search_algorithms, and get_manifest.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear usage guidelines: it recommends calling get_algorithm_summary first to confirm relevance before fetching full source, and suggests search_algorithms or get_manifest for discovering valid paths. It also indicates when not to use this tool (e.g., for other file types or operations).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_algorithm_summaryA
Return a short summary of a Logic Lab algorithm without fetching full source.
For paths in the manifest, returns all metadata fields:
- path, title, category, concepts, visual_use, good_for, complexity, dependencies
- readme_excerpt: first ~6 non-empty lines of the nearest README.md (up to 1200
chars) when a README.md exists in the same directory
For paths not in the manifest, returns a minimal summary derived from the file
path (title inferred from directory name, category from the first path segment)
plus readme_excerpt when available.
This tool never returns source code — call get_algorithm for that. Use this
tool to assess relevance before committing to a full source fetch. It is
cheaper in context than get_algorithm for files you may not end up using.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Manifest-relative path to a .py or README.md file (e.g. 'physics/wave/wave.py'). Must be a relative path within the Logic Lab repository. Use search_algorithms to discover valid paths. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Discloses return format for manifest vs non-manifest paths, explicitly states it never returns source code, and indicates it is cheaper. No annotations, so description carries full burden. Could mention error handling but overall transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well-structured with clear sections, front-loaded purpose, each sentence adds value, no redundancy. Efficient use of space.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Comprehensive given single parameter and presence of output schema. Covers both manifest and non-manifest cases, return fields, and directs to sibling tools for further needs.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, but description adds meaning beyond schema: explains how path validity affects output, and suggests using search_algorithms to discover valid paths. Adds context to parameter semantics.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states the tool returns a short summary without full source, and distinguishes from sibling tool get_algorithm by specifying what it returns (metadata, readme excerpt) and that it never returns source code.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly tells when to use (assess relevance before full fetch, cheaper) and when not (need source code, then use get_algorithm). Provides clear alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_manifestA
Return the full Logic Lab art algorithm manifest as a JSON object.
The manifest contains an 'entries' array. Each entry includes:
- path (str): manifest-relative path to the source file (e.g. 'physics/wave/wave.py')
- title (str): human-readable algorithm name
- category (str): domain (physics, steering_behaviors, genetic_algorithms,
neuro_evolution, fractals, cellular_automata, mathematical, tiling_patterns,
research, simulation, shader)
- concepts (list[str]): key algorithmic concepts demonstrated
- visual_use (str): one-line description of the visual output
- good_for (list[str]): suggested use-cases and aesthetic tags
- complexity (str): 'low', 'medium', or 'high'
- dependencies (list[str]): required Python packages beyond py5
This tool is read-only and returns cached data for the current session.
Prefer search_algorithms for filtered discovery. Use get_manifest when you
need the full entry list or want to enumerate all available categories.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses the tool is read-only and returns cached data, which is helpful. However, no annotations are provided, and it does not mention cache freshness or expiration, leaving a minor gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with a one-line summary, uses a clear bullet list for entry structure, and concludes with usage guidance. Every sentence adds value.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that an output schema exists (context signal), the description appropriately focuses on structure and usage. It covers the essential behavioral context (read-only, cached) and entry format, making it complete for a no-parameter tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With zero parameters, baseline is 4. The description adds no parameter-specific info, which is acceptable since none are needed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool returns the full Logic Lab art algorithm manifest as a JSON object, and explicitly differentiates from search_algorithms by stating when to use each.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly says to prefer search_algorithms for filtered discovery, and use get_manifest when the full entry list or category enumeration is needed, providing clear when-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
recommend_combinationsA
Suggest multi-layer algorithm combinations for a given artistic intent.
Returns a dict with:
- intent (str): the original intent string
- combinations (list): ranked list of layered recipes
- tip (str): guidance for following up on returned paths
Each combination includes:
- name (str): recipe name
- description (str): recipe description
- moods (list[str]): associated creative moods
- layers (list): each layer has role (str), query (str), and suggestions
(list of manifest entries resolved by search_algorithms)
Layer roles describe compositional function (e.g. background, agents, texture,
overlay). Suggestions are live manifest entries — use get_algorithm_summary or
get_algorithm on any suggested path for full details.
Use this tool to plan layered generative artworks from a text description.
It combines curated recipes with dynamic algorithm lookup per layer.
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of combination recipes to return. Accepts integers in the range 1 to the total number of available recipes. Default: 3. Recipes are ranked by how closely their name, description, moods, and layer queries match the intent. | |
| intent | Yes | Free-text description of the artistic intent or visual goal (e.g. 'cosmic void with particle trails', 'organic growth with geometric structure', 'flowing smoke with invisible force fields'). Used to rank curated multi-layer recipes by keyword relevance. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden for behavioral transparency. It thoroughly explains the return structure (intent, combinations, tip) and the composition of each combination (name, description, moods, layers). It notes that suggestions are live manifest entries, implying a read operation. However, it omits details like authorization requirements or rate limits, but given the nature of the tool (recommendation, no side effects), this is acceptable.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with clear sections: main purpose, return fields breakdown, and usage instruction. It is relatively long but each sentence adds value (explaining structure, roles, follow-up actions). Minor redundancy could be trimmed, but overall it is appropriately sized for the complexity of the output.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the existence of an output schema (not shown but stated as present), the description still explains the return structure in detail, covering all fields and sub-fields such as 'layers' with their components. It also provides context on how the tool works (curated recipes, dynamic algorithm lookup). This makes the description complete for the tool's complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, but the description adds significant value beyond the schema. For 'intent', it provides examples ('cosmic void with particle trails') and explains its role in ranking. For 'count', it clarifies default, acceptable range, and ranking mechanism. This extra context helps the agent understand parameter semantics beyond the schema's bare definitions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Suggest multi-layer algorithm combinations for a given artistic intent.' It specifies that it returns ranked combinations with structured details. The distinction from sibling tools (e.g., search_algorithms, get_algorithm) is implicit but clear, as this tool focuses on curated layered recipes with dynamic lookup per layer.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit use-case guidance: 'Use this tool to plan layered generative artworks from a text description.' It also advises following up with get_algorithm_summary or get_algorithm for details. While it does not explicitly state when not to use this tool or compare directly with alternatives, the context of sibling tools makes the usage straightforward.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_algorithmsA
Search the Logic Lab manifest for algorithms by keyword, category, or visual intent.
Returns a list of manifest entries sorted by relevance score. Each entry includes
path, title, category, concepts, visual_use, good_for, complexity, and dependencies.
Returns an empty list when no entries match — this is not an error.
This tool returns manifest metadata only; it never reads source files.
Synonym expansion is applied automatically so queries like 'flow' also match
'fluid' and 'stream'. Combining query with category narrows results to a
specific domain.
Recommended workflow: call this tool for discovery, then get_algorithm_summary
for short context on candidates, then get_algorithm only for paths you intend
to use.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Accepts integers in the range 1–50. Default: 5. Results are sorted by relevance score descending. | |
| query | Yes | Free-text search terms matched against title, category, concepts, visual_use, and good_for fields. Use short descriptive phrases such as 'flow field particles', 'recursive tree', or 'emergent flocking'. Synonym expansion is applied automatically (e.g. 'flow' also matches 'fluid'). | |
| category | No | Exact category filter (case-insensitive). Limits results to a single domain. Available values: physics, steering_behaviors, genetic_algorithms, neuro_evolution, fractals, cellular_automata, mathematical, tiling_patterns, research, simulation, shader. Omit to search across all categories. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description fully carries the behavioral burden. It discloses that the tool never reads source files, applies automatic synonym expansion, and returns an empty list for no matches (not an error). These traits are clearly stated and not contradicted by any annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose and uses short, direct sentences. It efficiently covers all key aspects without redundancy. Every sentence adds value, and the structure is easy to scan.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 3 parameters (1 required) and an output schema exists, the description provides comprehensive context: behavior, return shape, synonym expansion, category values, limit constraints, and a recommended workflow. There are no gaps for an agent to misinterpret the tool's capabilities.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline is 3. The description adds value by explaining synonym expansion (e.g., 'flow' matches 'fluid') and providing usage context for the query parameter. It also clarifies that category is case-insensitive and lists available values. The limit parameter's range and default are restated, but the workflow context enriches understanding beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description explicitly states the tool searches the Logic Lab manifest by keyword, category, or visual intent. It clearly indicates what it returns (manifest entries with relevance score) and what it does not (read source files). The recommended workflow distinguishes it from siblings like get_algorithm_summary and get_algorithm.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit usage guidance: use for discovery, then follow with get_algorithm_summary and get_algorithm. It explains how to narrow results by combining query with category, and clarifies that an empty list is not an error. This helps the agent decide when to use this tool vs alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_by_moodA
Search algorithms by creative mood or visual atmosphere.
Returns a dict with:
- mood (str): the normalized mood used for the query
- style (str | null): the style refinement if provided
- profile_summary (dict): the mood's associated categories and key concepts
- results (list): ranked manifest entries matching the mood
Each mood maps to a curated set of algorithm categories, concepts, and good_for
tags. The style parameter re-ranks results by matching its tokens against all
metadata fields. When the mood is unrecognized, returns an error dict containing
'error', 'available_moods', and a 'tip'.
Prefer search_algorithms for free-text queries without a clear aesthetic direction.
Use this tool when you have a specific visual mood in mind (e.g. 'cosmic',
'minimal', 'chaotic').
Available moods: ethereal, chaotic, geometric, organic, cosmic, minimal,
generative, retro, crystalline, topological, networked, geological.
| Name | Required | Description | Default |
|---|---|---|---|
| mood | Yes | Creative mood or visual atmosphere. Must be one of: ethereal, chaotic, geometric, organic, cosmic, minimal, generative, retro, crystalline, topological, networked, geological. Case-insensitive. Returns an error dict with available_moods when the value is not recognized. | |
| limit | No | Maximum number of results to return. Accepts integers in the range 1–50. Default: 8. Results are sorted by combined mood-profile and style score. | |
| style | No | Optional style refinement as free-text tokens (e.g. 'fluid', 'dark', 'crystalline', 'monochrome'). Tokens are matched against algorithm metadata to boost ranking within the mood results. Omit to use the mood profile alone. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Describes return format (dict with mood, style, profile_summary, results), explains style re-ranking, and error handling. No annotations provided, so description carries full burden — and it clearly communicates all behavioral aspects of a read-only search tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Compact yet comprehensive: one-sentence purpose, bullet-like return field listing, behavioral description, usage comparison, and explicit mood list. No redundant sentences; every line earns its place. Front-loaded with key purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given three parameters (one required), no annotations, and presence of output schema (though not shown), the description covers all important aspects: return structure, parameter effects, error states, and sibling tool distinction. Highly complete for the tool's complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, baseline 3. Description adds value beyond schema: explains style parameter re-ranking behavior ('matched against algorithm metadata to boost ranking'), and limit parameter sorting ('sorted by combined mood-profile and style score'). These non-trivial additions justify a 4.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool searches algorithms by creative mood, and explicitly distinguishes from sibling tool search_algorithms by specifying when to use each. It lists the exact 12 available moods, making the purpose highly specific and differentiated.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit guidance: use when you have a specific visual mood, prefer search_algorithms for free-text queries without clear aesthetic direction. Also documents error behavior for unrecognized moods and lists available moods, enabling correct agent decision-making.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
- Changed
get_algorithm2 fields changed- added
Input schema / properties / max_chars / descriptionAdded value: +"Maximum characters of source text to return. Accepts integers in the range 1–20000. Default: 12000. When the file exceeds this limit the response sets truncated=true and includes a notice. Increase this value for large source files, up to the hard limit of 20000." - added
Input schema / properties / path / descriptionAdded value: +"Manifest-relative path to a .py or README.md file within the Logic Lab repository (e.g. 'physics/wave/wave.py' or 'fractals/mandelbrot/README.md'). Must be a relative path — absolute paths are rejected. Paths that escape the repository root are rejected. Use search_algorithms or get_manifest to discover valid paths."
- Changed
get_algorithm_summary1 field changed- added
Input schema / properties / path / descriptionAdded value: +"Manifest-relative path to a .py or README.md file (e.g. 'physics/wave/wave.py'). Must be a relative path within the Logic Lab repository. Use search_algorithms to discover valid paths."
- Changed
recommend_combinations2 fields changed- added
Input schema / properties / count / descriptionAdded value: +"Number of combination recipes to return. Accepts integers in the range 1 to the total number of available recipes. Default: 3. Recipes are ranked by how closely their name, description, moods, and layer queries match the intent." - added
Input schema / properties / intent / descriptionAdded value: +"Free-text description of the artistic intent or visual goal (e.g. 'cosmic void with particle trails', 'organic growth with geometric structure', 'flowing smoke with invisible force fields'). Used to rank curated multi-layer recipes by keyword relevance."
- Changed
search_algorithms3 fields changed- added
Input schema / properties / category / descriptionAdded value: +"Exact category filter (case-insensitive). Limits results to a single domain. Available values: physics, steering_behaviors, genetic_algorithms, neuro_evolution, fractals, cellular_automata, mathematical, tiling_patterns, research, simulation, shader. Omit to search across all categories." - added
Input schema / properties / limit / descriptionAdded value: +"Maximum number of results to return. Accepts integers in the range 1–50. Default: 5. Results are sorted by relevance score descending." - added
Input schema / properties / query / descriptionAdded value: +"Free-text search terms matched against title, category, concepts, visual_use, and good_for fields. Use short descriptive phrases such as 'flow field particles', 'recursive tree', or 'emergent flocking'. Synonym expansion is applied automatically (e.g. 'flow' also matches 'fluid')."
- Changed
search_by_mood3 fields changed- added
Input schema / properties / limit / descriptionAdded value: +"Maximum number of results to return. Accepts integers in the range 1–50. Default: 8. Results are sorted by combined mood-profile and style score." - added
Input schema / properties / mood / descriptionAdded value: +"Creative mood or visual atmosphere. Must be one of: ethereal, chaotic, geometric, organic, cosmic, minimal, generative, retro, crystalline, topological, networked, geological. Case-insensitive. Returns an error dict with available_moods when the value is not recognized." - added
Input schema / properties / style / descriptionAdded value: +"Optional style refinement as free-text tokens (e.g. 'fluid', 'dark', 'crystalline', 'monochrome'). Tokens are matched against algorithm metadata to boost ranking within the mood results. Omit to use the mood profile alone."
6 tool updates
v0.2.0- First observed
get_algorithm - First observed
get_algorithm_summary - First observed
get_manifest - First observed
recommend_combinations - First observed
search_algorithms - First observed
search_by_mood
TDQS
Each tool has a distinct, well-defined purpose: get_algorithm retrieves source code, get_algorithm_summary returns metadata without source, get_manifest returns the full manifest, search_algorithms searches by keyword, search_by_mood searches by mood, and recommend_combinations suggests combinations. No overlap in functionality.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., get_algorithm, search_algorithms, recommend_combinations). No mixed conventions or ambiguous names.
With 6 tools, the server is well-scoped for a domain of algorithm discovery and retrieval. Neither too few nor too many; each tool earns its place.
The tool set covers the full lifecycle of algorithm exploration: discovery (search_algorithms, search_by_mood, get_manifest), summary (get_algorithm_summary), full source retrieval (get_algorithm), and even creative combination planning (recommend_combinations). No obvious gaps for a read-only lookup server.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Discover, browse, and collect from 500+ on-chain generative art projects.
Shared living surface where AI agents leave short traces and weave lineages
AI Agent Source Registry. 288K+ curated sources for agentic search and discovery.
Social platform where AI agents and robots post their work. Read the feed, search, publish.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP Server for ShaderToy, a site where people share GLSL shader. This MCP server allows LLMs to make complex shader they aren't normally capable of.50MIT
- FlicenseNot gradedqualityFmaintenanceExposes a Pygame-based drawing canvas as an MCP server, allowing LLMs to create digital art using standard shapes and freehand paths. It features a specialized oil paint mode that simulates realistic color mixing, paint depletion, and textured brush strokes.-
- AlicenseNot gradedqualityDmaintenanceMCP server for creating and manipulating generative art with p5.js, Three.js, GLSL, Canvas2D, and SVG, featuring workspace management, parameter control, and screenshot capture.89MIT
- AlicenseBqualityAmaintenanceAn MCP server for TouchDesigner that lets AI agents inspect, build, wire, optimize, and stabilize live TD networks with 106 tools, plus a technique memory system for reusable patterns.1008MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/asamiile/logic-lab'
If you have feedback or need assistance with the MCP directory API, please join our Discord server