rails-ai-context
Provides tools for inspecting Stimulus controllers, actions, and targets within a Rails application, giving AI assistants context about the frontend JavaScript framework usage in the app.
Provides tools for understanding Turbo configuration and usage in a Rails application, including Turbo frames, streams, and drive behavior.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rails-ai-contextshow me the schema for the users table"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Contents
A closer look: the schema, the model, the inherited filters, the trace, the app that cannot boot, the six rules
Related MCP server: Synapse
What it does
An assistant writing Rails code knows what an average Rails app looks like. Yours has its own columns,
associations, filters and test setup, and the assistant starts every session with none of that. It
writes a migration for a column that exists, calls user.posts when the association is user.articles,
scaffolds FactoryBot into a fixture suite, and misses the before_action a parent controller adds. You
catch it, fix it, re-prompt, and something next to it breaks.
rails-ai-context gives the assistant 35 tools that read the app itself, over MCP from the AI tool or from the command line. Every answer is read from the app and says how sure it is, and most end with a hint for the next call.
When | What the assistant gets | A real line from an answer |
It asks about a table | Columns with types, nulls and defaults, the indexes, the model on the table |
|
Before it calls an association | Associations with their options, validations including the implicit ones, enums, scopes, callbacks, concerns |
|
Before it writes an action | The actions, every filter with where it was inherited from, strong parameters, the layout |
|
Before it writes a test | The framework, where the factories or fixtures live, their traits, a template in the app's style | Factories: spec/factories (3 files) |
It traces a method | The definition and source, what it calls, every caller grouped by file and kind, the tests | app/services/article_publisher.rb (Service) · 11: return false unless @article.publishable? |
When the app cannot boot | The same tools, from | [STATIC] Static mode (static mode requested with --no-boot). Serving static analysis; runtime-only data is marked [UNAVAILABLE]. |
Each line comes from the sample app in this repository, a blog with Devise, an admin namespace, a JSON API, a Sidekiq job and a FactoryBot suite. The website records the whole answers every time it is built, by running the gem at that commit: crisnahine.github.io/rails-ai-context.
The install writes the files each AI tool reads, so the assistant knows the tools exist and how to ask: the MCP config, one root context file with six anti-hallucination rules, and rules that load when a model, a controller or a migration is open. The tools are read-only, the SQL tool runs inside a read-only transaction, and files that hold secrets are never served.
Try it in your Rails app
Open your AI tool at the root of your Rails app and paste this. It installs the gem, sets up the AI tool you are in, checks the result and tells you the one step left.
Install the rails-ai-context gem in this Rails app so you can read its schema, models, routes and code through its tools instead of guessing.
1. Run `ruby -v` and `bundle exec rails -v`. rails-ai-context needs Ruby 3.1+ and Rails 7.0+. If either is older, stop and tell me.
2. Pick TOOL, the key for the AI tool you are: claude (Claude Code), cursor (Cursor), copilot (GitHub Copilot in VS Code), opencode (OpenCode), codex (Codex CLI). If you are another AI tool, stop and tell me to use the "Another MCP client" prompt instead.
3. Run `bundle add rails-ai-context --group development --version '>= 5.35.0'`. If the Gemfile already lists it, run `bundle update rails-ai-context --conservative` instead. Then run `bundle exec rails-ai-context version`: it must print 5.35.0 or newer, the first version with the flags used below. If it is older, the Gemfile pins it: change its rails-ai-context line to `gem "rails-ai-context", ">= 5.35.0", group: :development` and run `bundle update rails-ai-context --conservative`. If Bundler refuses (a frozen or deployment bundle), run `gem install rails-ai-context -v '>= 5.35.0'` instead and use `rails-ai-context init --tools TOOL --defaults` in step 4.
4. Run `bundle exec rails generate rails_ai_context:install --tools TOOL --defaults`. If it fails because the app can't boot, run `bundle exec rails-ai-context init --tools TOOL --defaults` instead; that one reads the source files when the app won't start.
5. Run `bundle exec rails-ai-context tool onboard` (or `rails-ai-context tool onboard` if you used gem install) and check it describes this app.
6. Tell me which files changed, then the "Next step" lines the install printed for TOOL, word for word. I have to do that step before your rails-ai-context MCP tools appear.Rather type it yourself? In the Gemfile:
bundle add rails-ai-context --group development
bin/rails generate rails_ai_context:install --tools claude --defaultsStandalone, with no Gemfile change:
gem install rails-ai-context
rails-ai-context init --tools claude --defaultsAs a Claude Code plugin, which adds the MCP server and gives each session the six rules, and writes no context files. It runs the installed gem, so install that first, and run it in the app's folder:
gem install rails-ai-context
claude plugin install rails-ai-context --marketplace crisnahine/rails-ai-context --scope projectCommit the .claude/settings.json it writes; the install generator and init then leave Claude Code's
.mcp.json to the plugin (details).
--tools takes claude, cursor, copilot, opencode, codex or all. Without --defaults the
generator asks which AI tools you use and what to write. Re-running is safe: it keeps what you have,
adds what is missing, and in a CLAUDE.md you wrote it touches only the block between its
<!-- BEGIN/END rails-ai-context --> markers.
You need Ruby 3.1 or newer and Rails 7.0 to 8.1, on Linux, macOS or Windows. Optional:
brakeman for security_scan, listen for watch, ripgrep for a faster search_code.
Then one step in your AI tool
Every AI tool holds a new project MCP server back until you say yes. The install prints the step for each tool you picked:
Claude Code | Cursor | GitHub Copilot | OpenCode | Codex CLI |
New session in the app's folder, approve | Restart, turn it on under MCP in Customize | Trust the workspace, send a chat message. Check with "MCP: List Servers". Copilot CLI: trust the folder, check with | Restart in the app's folder. Check with | Trust the project, start a new session. Check with |
Then ask something only your app knows, such as "what columns does the users table have?", and watch
it call rails_get_schema instead of guessing. Every other setup has a prompt: no
Gemfile change, CLI only, MCP only, a whole team, a folder of apps, nothing committed, MCP over HTTP,
Ruby in Docker, another MCP client.
A closer look
Every block below is the gem's own output for the sample app, read without booting it, trimmed: the tier line and the report line that end every answer are cut, and each note names what else is. The website shows each answer whole, recorded at the commit it was built from.
The schema, with the model on it
$ rails-ai-context --app-path site/sample_app tool schema --table users --no-boot
## Table: users
**Models:** User
**Primary key:** id
| Column | Type | Null | Default |
|--------|------|------|---------|
| id | bigint | **NO** | |
| email | string | **NO** | "" |
| encrypted_password | string | **NO** | "" |
| name | string | yes | |
| role | integer | **NO** | 0 |
| active | boolean | **NO** | true |
| api_token | string | yes | |
### Indexes
- `index_users_on_api_token` on (api_token) (unique)
- `index_users_on_email` on (email) (unique)
_Next: `rails_get_model_details(model:"User")` for associations, validations, scopes._Trimmed to seven of its twelve columns and two of its three indexes. With the app booted, the columns
come from the database connection; here they come from db/schema.rb, and db/structure.sql or the
migrations would do.
Before it calls an association
$ rails-ai-context --app-path site/sample_app tool model_details --model Article --no-boot
# Article [STATIC]
**Table:** `articles`
**File:** `app/models/article.rb` (32 lines)
**Structure:** class definition(1-1) → includes(2-3) → associations(4-6) → macros(7-8) → validations(9-12) → callbacks(13-15) → scopes(16-18) → instance methods(19-22) → private(23-24) → instance methods(25-32)
## Associations
- `belongs_to` **author** (class: User) (inverse_of: :articles) (fk: author_id)
- `has_many` **comments** dependent: destroy
## Validations
- `presence` on author _(implicit from belongs_to)_
- `presence` on title
- `length` on title (maximum: 120)
- `presence` on slug
- `uniqueness` on slug
- `presence` on body (if: :published?)
## Enums
- `status`: draft(0), in_review(1), published(2) [integer]
## Scopes
- `recent` → order(published_at: :desc, created_at: :desc) [STATIC]
- `by_author` → where(author: user) [STATIC]
- `published` → where(status: :published).where.not(published_at: nil) [STATIC]
## Callbacks
- `before_validation`: :assign_slug (on: :create)
- `after_commit (on: :update)`: :notify_author (if: :saved_change_to_status?)
## Concerns
- **Publishable** - publishable?, publish!The model is read with the Prism parser. A scope with a literal body is [VERIFIED], one built at
runtime is [INFERRED], and in the static tier every record is capped at [STATIC], since no record
can claim more than the tier that carries it. The columns, the primary key, the static-tier note on
associations, the instance methods and the next-call hint are trimmed out above. The published scope
is declared in the Publishable concern, and the Concerns section lists the methods each concern brings.
Before it writes an action
$ rails-ai-context --app-path site/sample_app tool controllers --controller admin/articles --no-boot
# Admin::ArticlesController
**Parent:** `Admin::BaseController`
**Layout:** `admin` (declared in Admin::BaseController)
## Actions
- `index`
- `publish`
- `show`
## Filters
- `before` **authenticate_user!** _(from ApplicationController)_
- `before` **require_admin** _(from Admin::BaseController)_
- `before` **set_article** (only: show, publish)Every filter that applies, with where it was inherited from, so the assistant never misses the
authenticate_user! two classes up. The schema hints for the models the controller touches, and the
next-call hints, follow in the full answer.
Tracing a method
$ rails-ai-context --app-path site/sample_app tool search_code --pattern 'publishable?' --match_type trace --no-boot
# Trace: `publishable?`
## Definition
**app/models/concerns/publishable.rb:8** in `module Publishable`
```ruby
def publishable?
in_review? && body.present? && author.active?
end
```
## Called from (4 sites)
### app/controllers/admin/articles_controller.rb (Controller) → `POST /admin/articles/:id/publish`
13: if @article.publishable?
### app/models/concerns/publishable.rb (Model)
13: raise ArgumentError, "#{self.class.name} #{id} is not ready to publish" unless publishable?
### app/services/article_publisher.rb (Service)
11: return false unless @article.publishable?
### lib/tasks/articles.rake (Other)
5: PublishArticleJob.perform_later(article) if article.publishable?
## Tested by (1 reference)
- `spec/models/article_spec.rb` (1 reference)One call in place of a file-by-file search: the definition, what it calls, its siblings, every caller grouped by file and labelled by kind, with the route a controller caller answers, and the tests. The "Calls internally" and "Sibling methods" sections are trimmed out above.
When the app cannot boot
The app-reading commands try a full boot for live reflection. When the boot fails, from a missing
environment variable, an unreachable service or a broken initializer, they answer from the static
tier instead of dying: routes from config/routes.rb, the schema from db/schema.rb,
db/structure.sql or the migrations, models and controllers from their source. Every answer carries
a tier line, a section that needs a booted app says [UNAVAILABLE] with the reason, and
--no-boot asks for that tier outright:
_[STATIC] Static mode (static mode requested with --no-boot). Serving static analysis; runtime-only data is marked [UNAVAILABLE]. Run `bundle exec rails-ai-context --app-path site/sample_app doctor` for details._32 of the 40 introspectors answer here. Each declares which of three kinds it is: it reads files only, it needs live reflection, or it answers from another source such as the schema dump. What a tier can say is a declaration, so an answer never guesses at what it could not read (ADR-0002). The routes engines and gems draw at boot, and an association a gem adds at boot, are not listed, and the answer says so.
The six rules
The root context file carries six rules the assistant reads before writing code. That file is
AGENTS.md, which Cursor, OpenCode and Codex read and CLAUDE.md imports, or CLAUDE.md itself when
none of those three is chosen; Copilot reads its own copy in .github/copilot-instructions.md.
Verify before you write. Never reference a column, association, route, helper, method, class, partial or gem that a tool call in this turn did not confirm.
Mark every assumption with
[ASSUMPTION]. "I'd need to check X first" is a good answer.Training data describes average Rails. This app isn't average. When something feels obviously standard, query anyway.
Check the inheritance chain before every edit: inherited filters, concerns, includes, STI parents.
Empty tool output is information. "0 callers found" means investigate, or ask.
Stale context lies. Re-query after writes.
On by default. Turn off with config.anti_hallucination_rules = false if you prefer your own. In an
MCP-only or CLI setup, the ground rules prompt gives
the assistant the same rules for one session.
The tools
Every tool is read-only and answers from your app. Over MCP each name carries a rails_ prefix
(rails_get_schema). From the CLI the short name works: schema, get_schema and rails_get_schema
all resolve. About half take detail=summary|standard|full.
Category | Tools |
Search and trace |
|
Understand |
|
Schema and models |
|
Controllers and routes |
|
Views and frontend |
|
Testing and quality |
|
App config and services |
|
Data and debugging |
|
Four worth knowing on day one:
search_codewithmatch_type=tracereturns the definition, the source, every caller grouped by file and labelled by kind, and the tests, in one call.get_controllersreturns the action source with inherited filters, strong params and the render map.get_model_detailsreturns associations, validations, scopes, enums and macros from the AST, each tagged[VERIFIED]or[INFERRED].queryruns read-only SQL inside a read-only transaction, with a timeout, a row limit and column redaction.
Parameters for all 35 are in the tools reference; worked examples in
recipes. MCP clients can also read five resource templates, such as
rails-ai-context://models/{name} and rails-ai-context://controllers/{name}/{action}, and nine
static resources, such as rails://schema and rails://routes.
How it works
40 introspectors read the app, one per kind of fact: the schema, the models, the routes, the
controllers, the views, the jobs, the gems, the conventions and so on. Each returns a hash and is
registered under a key, so a preset is a list of keys: :full runs all 40 and :standard runs 17.
The models and the controllers are read with Prism, Ruby's own parser. Each file is parsed once into a
cache keyed by its content, and a single walk over the tree feeds every listener at the same time:
associations, validations, scopes, enums, callbacks, macros, strong parameters. A listener tags each
record by how it was read: [VERIFIED] for a literal, [INFERRED] for an expression that only runs at
runtime. Introspection is cached with a fingerprint of the app's files, so an edit to a model is seen
on the next call without a restart.
A tool composes its answer from that context, hydrates it with schema hints for the models it touches, cuts it at the response budget, and ends it with a tier line and, for most tools, a hint for the next call. Three transports reach the same registry: MCP over stdio, MCP over HTTP mounted inside the app, and the command line with no server at all.
Architecture has the modules and the request lifecycle, Introspectors the catalogue of listeners and the rule for what is read from the AST, and the ADRs the decisions with their reasons.
What it costs
It is free and MIT licensed. What you pay is tokens, and only when the assistant asks:
A tool answer is sized by its
detaillevel and cut atmax_tool_response_chars, 200,000 characters by default. Start withsummaryand drill down.The root context file is held to 12,000 bytes in its default compact mode, and a rule file to 8,000, since they share the agent's context with your own instructions.
The last line of every answer, which asks the assistant to offer you an issue when the gem itself answered wrong, costs about 40 tokens.
config.report_issue_line = falseleaves it out.
Questions you should ask first
Does it send my code anywhere? No. The tools run on your machine, in your app's process or in a
child of it. Two things go online: search_docs fetches Rails guides from GitHub when called with
fetch: true, and the standalone binary asks rubygems.org for the latest version at most once a day,
in a child process that sends nothing about the app. RAILS_AI_CONTEXT_NO_UPDATE_CHECK=1 turns that
off, and it is off in CI.
Can it read my secrets? Files that hold them are never served: .env, config/master.key,
credentials.yml.enc, config/database.yml, keys and certificates, on a list you can extend. Logs
are redacted before they leave the process, get_config shows credential key names without values,
and query never returns an encrypted column. Security has every layer.
Can it change my database? No. Every tool is read-only. query allows SELECT, WITH, SHOW,
EXPLAIN and DESCRIBE, runs inside a read-only transaction with a statement timeout, caps the rows,
redacts secret columns, and on PostgreSQL plans the statement first and refuses a plan that reaches a
secret column by another name.
What does it write into my repository? The MCP config for each AI tool you picked, one root
context file with a copy for Copilot, rules files per tool, its own config and a .gitignore line.
A re-run keeps your lines and adds what is missing; uninstall takes back only what it wrote. A team
that wants no AI files in the repo can skip the install: the tools work with none of it.
Is the HTTP endpoint safe? Mounted inside the app it inherits your routing, auth and middleware.
Outside development and test it refuses every request with a 403 unless you set
config.allow_http_in_production = true, since it has no authentication of its own.
Which AI tools? Claude Code, Cursor, GitHub Copilot, OpenCode and Codex CLI get context files and
MCP config written for them. Any other MCP client, such as Claude Desktop, Windsurf, Zed or a JetBrains
IDE (Copilot or AI Assistant), gets an entry from rails-ai-context mcp-entry. A tool with no MCP at all
gets the CLI setup, where the context files name the shell commands.
Still wondering about something? The FAQ
answers the rest: install, the tools, configuration, context files, performance, security, and how it
compares to a hand-written CLAUDE.md or pasting schema.rb into the prompt.
What it will not do
Write to your app or your database from a tool. Every tool reads. The assistant still decides what to do with the facts, and the six rules ask it to verify before writing; nothing enforces that.
Say more than it read. Without a boot, 32 of 40 introspectors answer and the rest say
[UNAVAILABLE].query,runtime_infoanddoctorneed a booted app, andquerya database.Support Rails 9. The gemspec caps
railtiesbelow 9.0, and the standalone binary warns when it boots one. Compatibility has the CI matrix: 17 Ruby and Rails pairs on Linux, plus macOS and Windows legs.Time-limit
queryon SQLite under Windows. There is noforkthere, so that query runs without its limit, and the MCP configs start the server throughcmd /d /c, since a gem's executables on Windows are batch files.
Install options and configuration
Three setups, picked at install time with a flag, or afterwards with the change the setup prompt:
Setup | Writes | Flag | Good for |
MCP + context files | MCP config and context files |
| Most apps |
CLI only | Context files that name shell commands |
| Tools without MCP, or no server to approve |
MCP only | MCP config only |
| Teams that keep their own |
MCP over stdio is the default. Each AI tool gets its own config file (.mcp.json,
.cursor/mcp.json, .vscode/mcp.json and .github/mcp.json, opencode.json, .codex/config.toml) that starts
bundle exec rails-ai-context serve, or rails-ai-context serve standalone. MCP over HTTP mounts
the server inside your app:
# config/routes.rb
mount RailsAiContext::Engine, at: "/mcp" if defined?(RailsAiContext::Engine)The if keeps the routes file loading where the gem is not installed, as in production, where Bundler
skips the development group. There is also a standalone HTTP process:
rails-ai-context serve --transport http --port 6029. The CLI runs the same 35 tools with no server:
bin/rails 'ai:tool[search_code]' pattern="publishable?" match_type=trace
rails-ai-context tool schema --table users --detail fullThe commands, in the Gemfile and standalone:
In the Gemfile | Standalone | What it does |
|
| Set up (both take |
|
| Start the MCP server (stdio) |
|
| Start the MCP server (HTTP) |
|
| Run one tool |
|
| List the tools |
|
| Regenerate the context files |
|
| Diagnostics and a readiness score |
|
| Regenerate on file change |
|
| Run a multi-tool preset ( |
|
| Remove what the gem wrote, keep what you wrote |
|
| Print an MCP entry for Claude Desktop, Windsurf, Zed and other clients |
The binary finds the app the way bin/rails does, so it runs from any subdirectory. Flags shared by
the app-reading commands: --app-path PATH to target another directory, --environment ENV to set
RAILS_ENV, and --no-boot to answer from source. The full list is in the CLI reference.
A Gemfile install writes an initializer and .rails-ai-context.yml; a standalone install writes the
YAML file alone, with the same keys. Every option with its default is in
Configuration:
# config/initializers/rails_ai_context.rb
if defined?(RailsAiContext) && RailsAiContext.respond_to?(:configure)
RailsAiContext.configure do |config|
config.ai_tools = %i[claude cursor] # which AI tools to generate for
config.tool_mode = :mcp # :mcp (default) or :cli
config.preset = :full # :full (40 introspectors) or :standard (17)
end
endRegister your own tools next to the built-in ones:
# app/mcp_tools/rails_get_business_metrics.rb
class RailsGetBusinessMetrics < MCP::Tool
tool_name "rails_get_business_metrics"
description "Key business metrics for this app"
input_schema(properties: { period: { type: "string" } })
def self.call(period: "week", server_context: nil)
MCP::Tool::Response.new([{ type: "text", text: "Users this #{period}: #{User.recent.count}" }])
end
end
# config/initializers/rails_ai_context.rb
config.custom_tools = ["RailsGetBusinessMetrics"]Test them with the bundled helper (RSpec or Minitest):
include RailsAiContext::TestHelper
response = execute_tool("business_metrics", period: "month")
assert_tool_response_includes(response, "Users")See Custom tools.
Every MCP call fires an ActiveSupport::Notifications event:
ActiveSupport::Notifications.subscribe("rails_ai_context.tools.call") do |event|
ms = (event.payload[:duration].to_f * 1000).round
Rails.logger.info "[MCP] #{event.payload[:tool_name]} #{ms}ms"
endTo take it out again:
bundle exec rails-ai-context uninstall && bundle remove rails-ai-context # in the Gemfile
rails-ai-context uninstall # standaloneIt removes the context files, the MCP entries, its config, its .gitignore lines and its pre-commit
hook, and keeps what you wrote: your lines in CLAUDE.md, other servers in an MCP config, a hook you
edited. Or paste the uninstall prompt.
Troubleshooting
bundle exec rails-ai-context doctor (or bin/rails ai:doctor) boots the app, checks every file the
install wrote, the MCP configs and the plugins, and prints a readiness score with what to fix. It needs
a bootable app, since diagnosing the boot is its job. The fix it prompt
hands the same checks to the assistant, and Troubleshooting has the
problems people hit most: a server the AI tool never lists, a boot that fails, a Windows path, a
bundle that resolves the wrong Rails.
Development
git clone https://github.com/crisnahine/rails-ai-context.git
cd rails-ai-context
bundle install
bundle exec rspec # the suite, on an in-memory SQLite app under spec/internal
bundle exec rubocop --parallel # rubocop-rails-omakase style
bundle exec rake e2e # fresh Rails apps per install path; minutes; TEST_POSTGRES=1 adds a PostgreSQL specThe website is site/, filled in by scripts/site.rb from the repository: the install prompt from
docs/PROMPTS.md, the tool list from the registry, every docs/ page rendered beside it, and the
answers recorded by running the gem against site/sample_app. To see it before pushing:
bundle exec ruby scripts/site.rb _site
python3 -m http.server 8000 -d _site.github/workflows/pages.yml builds it on every pull request and deploys it from main. CONTRIBUTING.md has the layout of lib/, how to add an
introspector, a tool or a Prism listener, and how to run the specs against real database servers.
Contributing and security
Pull requests are welcome; CONTRIBUTING.md has the process, and the code of conduct applies to everyone taking part. Bugs go to the issue tracker with the Ruby, Rails and gem versions and the steps to reproduce. A security problem goes by email, the way SECURITY.md says, and never in a public issue. Only the latest 5.x release gets security fixes.
Learn more
The short tour, with every answer recorded at the commit it was built from | |
Let your AI tool install, change, remove or use the gem | |
Up and running in 5 minutes | |
Claude Code, Cursor, Copilot, OpenCode, Codex CLI, HTTP transport | |
Every command, parameter and option | |
All 35 tools with every parameter | |
Real workflows, end to end | |
Commands, flags and argument syntax | |
Use without a Gemfile entry | |
Every option with its default | |
Build and test your own tools | |
System design and internals | |
All 40 introspectors and the AST engine | |
SQL safety layers and file blocking | |
Supported versions, operating tiers, app shape matrix | |
Common problems and fixes | |
Frequently asked questions | |
Every release, newest first |
If it saves you a correction loop, star it on GitHub, and if it saves you time, consider sponsoring the project.
Available Tools
35 toolsrails_analyze_featureARead-onlyIdempotent
Full-stack feature analysis: models, controllers, routes, services, jobs, views, Stimulus controllers, tests, related models, callbacks, concerns, and environment dependencies. Use when: exploring an unfamiliar feature, onboarding to a codebase area, or tracing a feature across layers. Pass feature:"authentication" or feature:"User" for broad cross-cutting discovery.
| Name | Required | Description | Default |
|---|---|---|---|
| feature | Yes | Feature keyword to search for (e.g. 'authentication', 'User', 'payments', 'orders'). Case-insensitive partial match across all layers. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior — case-insensitive partial matching across all layers — but says nothing about result volume, truncation, or ordering, which matters for a tool that aggregates nine-plus layers.
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 scope enumeration is front-loaded and the usage guidance follows immediately; every sentence does work. The long comma-separated layer list is dense but earns its place by defining breadth rather than padding.
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?
With no output schema, the description compensates by effectively listing the sections returned. What is missing is any sense of response size or shape (single report vs. per-layer buckets), which an agent would want before calling on a large feature.
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% and the single parameter is already documented with the same examples ('authentication', 'User', 'payments', 'orders') plus the case-insensitive partial-match note. The description's parameter guidance largely restates the schema, so the baseline 3 applies.
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 names a specific verb ("Full-stack feature analysis") and enumerates exactly which layers are covered — models, controllers, routes, services, jobs, views, Stimulus, tests, callbacks, concerns, env dependencies. That breadth implicitly separates it from narrow siblings like rails_get_model_details or rails_get_callbacks, though no sibling is named explicitly.
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 gives three concrete triggering scenarios — exploring an unfamiliar feature, onboarding to a codebase area, tracing across layers — which is clear when-to-use guidance. It stops short of exclusions or naming the narrower sibling tools to use instead once the agent knows what it is looking for.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_dependency_graphARead-onlyIdempotent
Generates a dependency graph showing how models connect through their associations. Output as Mermaid diagram syntax or plain text. Use when: understanding feature architecture, tracing data flow, planning refactors. Key params: model (center graph on model), depth (1-3), format (mermaid/text).
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many hops from the center model (1-3, default: 2) | |
| model | No | Center the graph on this model (e.g., 'User'). Without this, shows every model up to a cap of 50 nodes. | |
| format | No | Output format: mermaid (diagram syntax) or text (plain) | |
| show_sti | No | Show Single Table Inheritance hierarchies (default: false) | |
| show_cycles | No | Detect and display circular dependency cycles (default: false) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile needs no restating. The description adds the output shape (Mermaid syntax vs. plain text), which matters because there is no output schema, but it never says what the graph actually includes (associations only? STI? cycles?) or what the 50-node cap does to an uncentered call.
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?
Four short sentences, front-loaded with the core capability before the usage list. The trailing 'Key params' sentence is mostly redundant with a fully described schema, which is the one piece of waste.
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?
For a read-only, zero-required-parameter analysis tool with full schema coverage, the description covers purpose, scenarios, and output format. The remaining gap is scope of the graph contents and how the default uncentered mode behaves at the 50-node cap, which the schema mentions but the description does not reinforce.
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 description coverage is 100%, so all five parameters including show_sti and show_cycles are already documented in the schema. The 'Key params' sentence restates model/depth/format with the same meaning the schema carries, adding no syntax, constraints, or interaction rules. Baseline 3 applies.
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 names a specific verb and resource: generates a dependency graph of models connected through associations, with two named output formats. This clearly separates it from data-fetching siblings like rails_get_model_details or rails_get_schema. It stops short of explicitly routing against the closest sibling (rails_get_component_catalog / rails_get_schema), so it is a 4 rather than a 5.
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 gives an explicit 'Use when' list covering three concrete scenarios (architecture understanding, data-flow tracing, refactor planning), which is enough for an agent to decide whether to call it. There are no when-not conditions and no named alternatives, which is the only reason it is not a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_diagnoseARead-only
One-call error diagnosis: parses the error, classifies it, gathers controller/model/schema context, shows recent git changes, pulls relevant logs, and suggests a fix. Use when: you hit an error and need to understand why. Key params: error (required - paste the error message), file, line, action (controller#action).
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File where error occurs, relative to Rails root (e.g. 'app/controllers/posts_controller.rb'). | |
| line | No | Line number where the error occurs. | |
| error | Yes | Error message or exception (e.g. 'NoMethodError: undefined method `foo` for nil:NilClass'). | |
| action | No | Controller#action format (e.g. 'posts#create'). Pulls full action context. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context by disclosing the composite pipeline (context gathering, git history, log pulling, fix suggestion) that an agent would not infer from the name alone. It omits cost/latency implications of a multi-source call, keeping it from a 5.
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?
Front-loaded with the core capability, then usage condition, then params — a sensible order with no filler. The 'Key params' sentence is somewhat redundant with the fully documented schema, slightly diluting conciseness.
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?
With no output schema, the description compensates by indicating what comes back: parsed/classified error, controller/model/schema context, git changes, logs, and a suggested fix. That is sufficient for an agent to know what to expect, though it doesn't describe output shape or size.
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 description coverage is 100%, so all four parameters are already documented with examples in the schema. The description only restates the key params and marks error as required, adding the minor hint to 'paste the error message' but no format or interaction details 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?
States a specific verb and resource ('One-call error diagnosis') and enumerates the concrete sub-actions it performs: parsing, classifying, gathering controller/model/schema context, git changes, logs, and a suggested fix. This clearly separates it from single-purpose siblings like rails_read_logs or rails_get_context.
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?
'Use when: you hit an error and need to understand why' gives a clear triggering condition. It does not name alternatives or exclusions (e.g., when to prefer rails_read_logs or rails_get_context directly), so it stops short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_generate_testARead-onlyIdempotent
Generate test scaffolding that matches your project's actual test patterns - framework, factories, assertion style. Use when: adding tests for a model, controller, or service. Generates copy-paste-ready test files. Key params: model (e.g. 'User'), controller (e.g. 'PostsController'), file (e.g. 'app/services/foo.rb').
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File path relative to Rails root (e.g. 'app/services/payment_service.rb'). Auto-detects type. | |
| type | No | Test type: unit (model/service, default), request (controller), system (browser/Capybara). | |
| model | No | Model name (e.g. 'User'). Generates model spec with validations, associations, scopes, enums. | |
| controller | No | Controller name (e.g. 'PostsController'). Generates request spec with routes and auth. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint/idempotent/non-destructive; the description adds the meaningful detail that output is 'copy-paste-ready' text rather than files written to disk, resolving the main ambiguity about what 'generates' means. It still doesn't state whether anything is persisted or how large the output is, so not a 5.
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?
Benefit is front-loaded, then the use case, then params — good ordering and no wasted prose. The trailing param list is largely redundant given the fully described schema, which keeps it from a 5.
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?
With no output schema, the description carries the burden of explaining what comes back, and 'copy-paste-ready test files' plus framework/factory/assertion-style matching covers that adequately. It doesn't say how file paths or types interact (all params optional, no required args), which is a minor remaining gap.
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 all four parameters plus the type enum are already documented with examples. The 'Key params' sentence repeats the schema's own examples ('User', 'PostsController') without adding selection logic, e.g. when to pass file versus model/controller. Baseline 3 applies.
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?
States a specific verb and resource ('Generate test scaffolding') and characterizes the output ('copy-paste-ready test files' matching the project's framework, factories, and assertion style). It doesn't explicitly contrast itself with the most confusable sibling, rails_get_test_info, so differentiation is inferred rather than stated.
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?
'Use when: adding tests for a model, controller, or service' gives a clear triggering context. It stops short of exclusions or naming an alternative for read-only inspection (rails_get_test_info), so it is context without routing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_callbacksARead-onlyIdempotent
Get ActiveRecord model callbacks grouped by type, in Rails event order: before/after/around for validation, save, create, update, destroy. Use when: understanding side effects, debugging callback chains, or checking what happens on save/create/destroy. Specify model:"User" for one model's callbacks. detail:"full" includes callback method source code. The list is what the model, its base classes and its concerns declare, and within one type the order is the order Rails runs them, a before_ or around_ callback with prepend: true first, and after_commit in the order the app's setting gives.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model class name (e.g. 'User', 'Post'). Omit to see all models with their callbacks. | |
| detail | No | Detail level. summary: model names + callback counts. standard: callbacks by type in Rails event order (default). full: callbacks with method source code. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint/idempotentHint/non-destructive, so safety is covered; the description adds genuine behavioral context beyond that — the callback list reflects what the model, base classes and concerns declare, and ordering rules (prepend: true first, after_commit per app setting) are disclosed. It does not mention response size or truncation for large models, but the ordering semantics are the more important omission to have covered.
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?
Purpose and 'use when' are front-loaded, which is the right order. The final sentence is a long run-on that packs inheritance scope and three ordering rules into one clause chain; it earns its content but could be split for readability.
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?
For a two-parameter read-only inspection tool with no output schema, the description covers scope (single model vs all), detail levels, inheritance/concern inclusion, and execution ordering — enough for an agent to call it correctly and interpret results without further clarification.
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 both parameters are already fully documented including the detail enum levels. The description restates the same facts (model:'User' for one model, detail:'full' for source code) with no additional syntax, defaults, or edge-case guidance, so the baseline 3 applies.
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?
States a specific verb and resource: 'Get ActiveRecord model callbacks grouped by type, in Rails event order', with the enumerated event types (validation, save, create, update, destroy). This clearly separates it from siblings like rails_get_model_details or rails_get_concern, which address the model or concern broadly rather than callback chains.
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?
'Use when: understanding side effects, debugging callback chains, or checking what happens on save/create/destroy' gives concrete triggering scenarios rather than leaving usage implied. It stops short of naming a sibling alternative or stating when not to use it, so it sits just below the top tier.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_component_catalogARead-onlyIdempotent
Returns ViewComponent and Phlex component catalog: props, slots, previews, which views render each component. Use when: building views with components, understanding component API, finding reusable components. Key params: component (filter by name), detail level.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max components to return. Default: 50. | |
| detail | No | Level of detail: summary (names + types), standard (+ props + slots), full (+ sidecar assets + usage) | |
| offset | No | Skip this many components for pagination. Default: 0. | |
| component | No | Component name to show details for (e.g., 'AlertComponent', 'alert') |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral value beyond that by disclosing what the catalog contains (props, slots, previews, reverse-mapping of components to views), which tells the agent what it gets back. It omits any note on result volume or pagination behavior, keeping it from a 5.
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?
Three tight sentences with the return contents front-loaded ahead of usage triggers and params. The trailing 'Key params' clause is somewhat redundant against a fully documented schema, but it is short and does prioritize. No wasted prose.
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?
With no output schema, the description must describe return values, and it does so by enumerating props, slots, previews, and rendering relationships. Combined with usage triggers and key params, an agent has enough to call it correctly; only pagination/result-size expectations are left to the schema.
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 description coverage is 100% and all four params carry explanations, including the detail enum values spelled out in the schema. The description's 'Key params: component (filter by name), detail level' merely flags which two matter most; it adds no syntax or format detail beyond the schema. Baseline 3 applies.
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?
States a specific verb (Returns) and resource (ViewComponent and Phlex component catalog), then enumerates its contents: props, slots, previews, and which views render each component. That enumeration distinguishes it from adjacent siblings like rails_get_view and rails_get_partial_interface without needing to name them.
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?
Explicit when-to-use triggers are given: 'building views with components, understanding component API, finding reusable components.' That is clear positive guidance. It stops short of 5 because no when-not conditions or named alternatives are offered, so an agent choosing between this and rails_get_partial_interface or rails_get_view must infer the boundary.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_concernARead-onlyIdempotent
Get ActiveSupport::Concern details: public methods, included modules, and which models/controllers include it. Use when: understanding shared behavior, checking concern interfaces, or finding where a concern is used. Specify name:"Searchable" for full detail, or omit for a list of all concerns. Filter with type:"model" or type:"controller".
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Concern module name (e.g. 'Searchable', 'Authenticatable'). Omit to list all concerns. | |
| type | No | Filter by concern type, the name each section heading of the listing prints: model for app/models/concerns/, mailer for app/mailers/concerns/, and for a concern outside every concerns directory the root it lives in (service for app/services, lib for lib). other: app/concerns itself, or a configured directory. all: everything (default). | |
| detail | No | Detail level, read when `name` is given. summary and standard (default): method signatures. full: method signatures with source code. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description still adds behavioral value by disclosing the two operating modes: omitting name yields a browsable listing of all concerns, while naming one yields detail, and detail:"full" pulls in source code (i.e. a materially larger response).
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?
Three sentences, front-loaded with purpose, then usage, then parameter mechanics; no filler. The use-when trio is slightly boilerplate but short enough to earn its place.
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?
With annotations carrying the safety profile, a fully documented schema, and no output schema, the description covers what an agent needs: what is returned, the list-vs-detail mode switch, and filtering. Only the exact listing shape for the no-name case is left implicit.
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% and each parameter is already well documented there, so the baseline is 3. The description illustrates name usage ('Searchable') but its filter examples are thinner than the schema — it lists only type:"model" or type:"controller" while the schema enumerates model, mailer, service, lib, other, and all — so it adds little and slightly narrows the picture.
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?
States a specific verb and resource (get ActiveSupport::Concern details) and enumerates the payload: public methods, included modules, and including models/controllers. That is clear, but it never names a sibling (e.g. rails_get_model_details or rails_search_code) to disambiguate when a concern-level view is the right choice.
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?
Explicit 'Use when:' clause gives three concrete situations (understanding shared behavior, checking interfaces, finding usages), which is real context rather than a restatement. It stops short of when-not-to-use guidance or naming alternatives, so it lands just below the top band.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_configARead-onlyIdempotent
Get the app's configuration, one section per call. section: app (default: database, auth, assets, cache, session, queue, Action Cable, middleware, initializers), gems (notable gems by category), frontend (JS framework, build tool, TypeScript, package manager), api (serializers, GraphQL, versioning, CORS, rate limiting, pagination), engines (mounted engines and Rack apps), conventions (architecture and patterns), autoload (Zeitwerk paths, inflections), active_support (concerns, notifications, on_load hooks), env (names of environment variables and credentials keys), env_config (config/environments/*.rb per environment), i18n (locales, locale files, coverage).
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | gems, env_config, i18n: max entries. Default: 50. | |
| detail | No | frontend, api, env: summary, standard (default) or full. | |
| locale | No | i18n: only this locale (e.g. "fr"). | |
| offset | No | gems, env_config, i18n: skip this many entries. Default: 0. | |
| section | No | Which section to answer. Default: app. | |
| category | No | gems: only this category. Default: all. | |
| environment | No | env_config: only this environment (e.g. "production"). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds the material behavioral detail that results are partitioned by section, but says nothing about output shape, size limits, or what happens when a section has no data. With annotations carrying the safety profile, a 3 is right.
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?
One sentence, purpose front-loaded before the long parenthetical catalogue. The catalogue is dense but every entry maps to a real enum value and earns its place. A structured list would read better than the nested parentheses, which is the only deduction.
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?
No output schema exists, so the description must carry the burden of saying what comes back, and the per-section inventory does that reasonably well. Pagination vocabulary (limit/offset) is scoped per section in the schema. The main gap is that no return shape or size expectation is given for any section.
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, but the description genuinely extends the schema: it explains what each enum value of `section` actually yields, which the schema only labels 'Which section to answer'. That content inventory is the difference between guessing a section and choosing one. It does not repeat schema-level detail about limit/offset/detail.
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?
States a specific verb and resource ('Get the app's configuration') plus a key scoping rule ('one section per call'), then enumerates all 11 sections with the content each returns. An agent can tell what it will get. It does not, however, distinguish itself from look-alike siblings such as rails_runtime_info or rails_get_context.
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 'one section per call' phrasing implies how to use it, and the section catalogue implies which call to make for which need. But there is no explicit when-to-use / when-not, no pointer to an alternative tool, and no guidance for choosing between, say, section=api and rails_get_routes.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_contextARead-onlyIdempotent
Get cross-layer context in a single call - combines schema, model, controller, routes, views, stimulus, and tests. Use when: you need full context for implementing a feature or modifying an action. Specify controller:"PostsController" action:"create" to get everything for that action in one call.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model name (e.g. 'Post'). Returns schema, associations, validations, scopes, callbacks, tests. | |
| action | No | Specific action name (e.g. 'create'). Requires controller. Returns full action context. | |
| feature | No | Feature keyword (e.g. 'post'). Like analyze_feature but includes schema columns and scope bodies. | |
| include | No | Additional context to bundle: 'stimulus', 'turbo', 'services', 'jobs', 'conventions', 'helpers', 'env', 'callbacks', 'tests', 'config', 'gems', 'security'. Appends these to any mode. | |
| controller | No | Controller name (e.g. 'PostsController'). Returns action source, filters, strong params, routes, views. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and closed-world scope, so safety is fully covered. The description adds aggregation behavior (one call returns multiple layers) but says nothing about output size, latency, or truncation risk on a tool that reads many layers at once.
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?
Three short sentences with the capability stated first, then the trigger condition, then a usage example. The example sentence partially duplicates the trigger sentence, a minor redundancy that keeps it off a 5.
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?
With five optional parameters, no required parameters, and no output schema, the description should clarify whether model, feature, and controller/action are mutually exclusive or composable modes — the schema hints at modes but the description never resolves it. It also omits any expectation about response size for a cross-layer read.
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 description coverage is 100%, so every parameter including the 'include' bundle list is already documented with examples. The description only restates the controller+action pairing already stated in the action parameter description, adding no combination semantics or precedence rules.
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?
Names a specific verb and resource ('Get cross-layer context') and enumerates exactly which layers are bundled (schema, model, controller, routes, views, stimulus, tests), which a granular sibling like rails_get_model_details cannot claim. It does not explicitly name a sibling it replaces, so it stops short of a 5.
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 an explicit trigger ('Use when: you need full context for implementing a feature or modifying an action') plus a concrete invocation example, controller:"PostsController" action:"create". It lacks explicit when-not guidance or routing to the narrower siblings when only one layer is needed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_controllersARead-onlyIdempotent
Get controller details: actions, before_action filters, strong params, and parent class. Use when: adding/modifying controller actions, checking what filters apply, or reading action source code. Filter with controller:"PostsController", drill into action:"create" for source code with line numbers.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max controllers to return when listing. Default: 50. | |
| action | No | Specific action name (e.g. 'index', 'create'). Requires controller. Returns the action source code and applicable filters. | |
| detail | No | Detail level for controller listing. summary: names + action counts. standard: names + action list (default). full: everything. Ignored when specific controller is given. | |
| offset | No | Skip this many controllers for pagination. Default: 0. | |
| controller | No | Optional: specific controller name (e.g. 'PostsController'). Omit for all controllers. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is covered. The description adds behavior beyond that: results are paginated list-style by default, narrowing to a single controller returns full detail, and drilling into an action returns source code with line numbers plus the filters that apply to it.
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?
Three tight sentences: purpose first, usage next, invocation pattern last. No filler or restated title. The final sentence packs filter and drill-down into one line, which is dense but still readable.
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?
There is no output schema, so the description usefully names the return contents (actions, filters, strong params, parent class, source with line numbers). Pagination defaults and the detail enum are handled in the schema. What remains thin is the shape of the response when listing all controllers versus one, but an agent has enough to call it correctly.
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 description coverage is 100%, so every parameter including limit, offset, detail, controller, and action is already documented at the field level. The description's 'controller:"PostsController"' and 'action:"create"' examples largely restate the schema's own examples, adding little that is not already structured. Baseline 3 applies when the schema carries the parameter burden.
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 uses a specific verb and resource ('Get controller details') and immediately enumerates what comes back: actions, before_action filters, strong params, parent class. That set of returned fields makes it plainly distinguishable from siblings like rails_get_view, rails_get_routes, or rails_get_model_details without opening the schema.
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 gives an explicit 'Use when:' with three concrete scenarios (adding/modifying actions, checking filters, reading action source) and explains the controller: filter and action: drill-down pattern. It stops short of naming alternatives or exclusions – e.g. when to prefer rails_search_code or rails_get_callbacks instead – so it is clear but not fully routing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_edit_contextARead-onlyIdempotent
Get targeted code context for surgical edits: returns matching lines with surrounding code and line numbers. Use when: you need to edit a specific method or section without reading the entire file. Requires file:"app/models/user.rb" and near:"def activate" (or line:42) to locate the code region.
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path relative to Rails root (e.g. 'app/models/post.rb', 'app/controllers/posts_controller.rb'). | |
| line | No | Show context_lines either side of this line number instead of searching for `near` (e.g. a line from a stack trace). | |
| near | No | What to find in the file - a method name, keyword, or string to locate (e.g. 'scope', 'def index', 'validates', 'STATUSES'). | |
| context_lines | No | Lines of context above and below the match. Default: 5. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by disclosing the return format (matching lines plus line numbers) and the two locating strategies (near vs line). It does not say what happens when no match is found, which keeps it from a 5.
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?
Two sentences, front-loaded with the purpose and return shape, followed by the usage condition and required locator pattern. No filler or restatement of the tool name.
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?
With no output schema, the description carries the burden of describing returns and does so adequately (matching lines, surrounding code, line numbers). Minor gaps remain around no-match behavior and how context_lines interacts with near, but the schema covers the defaults.
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 the baseline is 3, but the description goes further by showing concrete usage ('file:"app/models/user.rb" and near:"def activate" (or line:42)') and making the near/line alternative explicit. It adds real meaning about how the locator parameters combine.
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?
States a specific verb and resource ('Get targeted code context') and immediately specifies the return shape: matching lines with surrounding code and line numbers. It also implicitly distinguishes itself from the broader rails_get_context / rails_search_code siblings by framing the tool as a way to avoid 'reading the entire file'.
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 'Use when: you need to edit a specific method or section without reading the entire file' clause gives a clear triggering condition. It stops short of naming alternatives such as rails_get_context or rails_search_code, so the agent must infer when to prefer those instead.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_helper_methodsARead-onlyIdempotent
Get Rails helper modules: method signatures, the view helpers controllers declare with helper_method, framework helpers in use, and which views call each helper. Use when: finding available view helpers, checking what helper methods exist, or understanding shared view logic. Specify helper:"ApplicationHelper" for full detail, or omit to list all helpers with method counts.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max helpers to return. Default: 50. | |
| detail | No | Detail level. summary: names + method counts. standard: names + method signatures (default). full: method signatures + view cross-references + framework helpers. | |
| helper | No | Helper module name (e.g. 'ApplicationHelper', 'UsersHelper'). Omit to list all helpers. | |
| offset | No | Skip this many helpers for pagination. Default: 0. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds that omitting 'helper' lists all helpers with counts and that full detail includes view cross-references, but that largely mirrors the detail enum in the schema rather than adding new behavioral context like output size or cost.
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?
Three tight sentences: scope first, usage triggers second, invocation pattern last. No filler and everything is front-loaded.
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?
There is no output schema, but the description enumerates the returned content well enough for an agent to know what it will get at each detail level. Pagination semantics (limit/offset) are left entirely to the schema, which is a minor gap for a list 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?
Schema coverage is 100%, so the baseline is 3, but the description goes slightly beyond by showing a concrete usage pattern: pass helper:"ApplicationHelper" for full detail versus omitting it to list all helpers with method counts. It doesn't explain limit/offset interaction with that 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?
States a specific verb and resource ('Get Rails helper modules') and enumerates exactly what it returns: method signatures, helper_method declarations, framework helpers, and view call-sites. That scope separates it in practice from rails_get_view or rails_get_controllers, though no sibling is named explicitly.
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 an explicit 'Use when:' clause with three concrete triggers (finding available view helpers, checking helper methods, understanding shared view logic). It gives no when-not conditions and doesn't route to alternatives such as rails_get_view for view-side logic.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_job_patternARead-onlyIdempotent
Analyze background jobs in app/jobs/, app/workers/ and app/sidekiq/: queues, retries, perform signatures, guards, and what they call. Use when: understanding job infrastructure, adding a new job, or tracing async workflows. Specify job:"SendWelcomeEmail" for full detail, or omit to list all jobs with queue names and retry config.
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | Job class name or filename (e.g. 'SendWelcomeEmailJob', 'send_welcome_email'). Omit to list all jobs. | |
| detail | No | Detail level. summary: names + queues. standard: names + queues + retries + what they call (default). full: everything including guards, broadcasts, schedules, and enqueuers. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, so safety is covered by structured data. The description adds useful context that is not in the annotations: the directories scanned and the detail-scaling behavior (summary vs. full), which helps the agent reason about result depth. It stops short of noting cost or output-size implications for large codebases.
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?
Front-loaded with the verb and resource scope, followed by usage triggers and parameter behavior in a compact three-part flow. Every sentence carries weight, though the per-parameter guidance mildly duplicates the schema text.
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?
For a two-parameter, read-only, zero-required analysis tool with no output schema, the description covers what is scanned, when to invoke it, and how detail levels work. Because there is no output schema, a bit more about the shape of the returned summary would close the remaining gap.
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 description coverage is 100%, so both parameters are already fully documented, including the detail enum's three levels. The description mostly restates the omit-to-list-all behavior already present in the schema and slightly conflates 'specify job' with 'full detail', adding minimal value. Baseline 3 is appropriate 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.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (analyze) and a precise resource scope (app/jobs/, app/workers/, app/sidekiq/) along with the dimensions it covers: queues, retries, perform signatures, guards, and downstream calls. This clearly distinguishes it from siblings like rails_get_service_pattern or rails_get_callbacks, so an agent can route without opening a schema.
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 'Use when:' clause names three concrete triggers (understanding job infrastructure, adding a new job, tracing async workflows), which is clear positive guidance. It does not explicitly name an alternative tool or a when-not-to-use case, so it falls short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_mailersARead-onlyIdempotent
Get ActionMailer mailers: every mailer class with its delivery actions, delivery method, own defaults, layout and callbacks, template formats per action and preview class, the queue deliver_later uses, interceptors and observers, and the Action Mailbox mailboxes with the routing that sends inbound mail to each. Use when: adding an email, checking which mailer sends what, or finding the action to preview/test. Filter with mailer:"UserMailer". Omit for all mailers.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max mailers to return. Default: 50. | |
| mailer | No | Show only this mailer (e.g. "UserMailer"). Default: all mailers. | |
| offset | No | Skip this many mailers for pagination. Default: 0. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description's extra content is about what data is returned rather than behavior (no cost, no truncation/pagination caveats, no note that the scan is static analysis). It adds scope context but not much behavioral insight beyond the 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?
Front-loaded correctly: verb and resource appear in the first clause, then contents, then use cases, then filtering. The opening sentence is long and dense (a dozen comma-separated items), which borders on overload, but each item describes a distinct part of the return payload rather than padding.
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?
With no output schema, the description does the heavy lifting of explaining the returned structure in detail, and it covers when to call and how to filter. The only residual gap is pagination behavior for limit/offset, which is left to the schema field descriptions.
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 description coverage is 100%, so all three parameters (limit, mailer, offset) are already documented with defaults and examples. The description restates the mailer filter ("Filter with mailer:\"UserMailer\". Omit for all mailers.") without adding syntax or semantics beyond the schema, so baseline 3 applies.
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?
Specific verb (Get) plus specific resource (ActionMailer mailers), followed by an enumeration of exactly what is included: mailer classes, delivery actions, method, defaults, layout, callbacks, template formats, preview classes, queue, interceptors/observers, and Action Mailbox routing. An agent can distinguish this from siblings like rails_get_controllers or rails_get_callbacks purely from the description.
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?
Explicit usage triggers are given: "Use when: adding an email, checking which mailer sends what, or finding the action to preview/test." It also states how to narrow scope (filter by mailer name, omit for all). It stops short of naming a sibling alternative or a when-not condition, keeping it at a 4.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_model_detailsARead-onlyIdempotent
Get ActiveRecord model details: associations, validations, scopes, enums, callbacks, concerns. Use when: understanding model relationships, adding validations, checking existing scopes/callbacks. Specify model:"User" for full detail, or omit for a list. detail:"full" shows association lists.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max models to return when listing. Default: 50. | |
| model | No | Model class name (e.g. 'User', 'Post'). Omit to list all models. | |
| detail | No | Detail level for model listing. summary: names only. standard: names + association/validation counts (default). full: names + full association list. Ignored when specific model is given (always returns full). | |
| offset | No | Skip this many models for pagination. Default: 0. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is fully covered. The description adds a genuine behavioral rule (omitting model returns a list; giving a model always returns full detail, so detail is moot), but says nothing about source of truth, performance, or truncation beyond what the schema states.
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?
Three compact sentences/fragments with the purpose and the model-vs-list decision front-loaded, and no filler. Slightly clipped phrasing ('Use when: ... Specify model:...') reads as shorthand but wastes no 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?
Four optional params with no output schema, and the description covers the key invocation decision (single model vs listing) plus the detail-level semantics. Pagination and default limit behavior are delegated to the schema, which is acceptable given its 100% coverage.
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 schema coverage at 100%, every parameter including limit, offset and the detail enum is already documented in structured data. The description's 'Specify model:"User"' example and 'detail:"full" shows association lists' largely restate the schema's own text, so it adds only marginal meaning.
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?
Opens with a specific verb+resource ('Get ActiveRecord model details') and enumerates the exact content returned: associations, validations, scopes, enums, callbacks, concerns. It is clearly distinct from siblings like rails_get_routes or rails_get_schema, though it does not disambiguate itself from rails_get_callbacks or rails_get_concern, which overlap with two of the listed categories.
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 'Use when:' clause gives three concrete scenarios (understanding relationships, adding validations, checking existing scopes/callbacks), which is real guidance rather than an implied purpose. It stops short of naming alternatives or exclusions, e.g. it never says when to reach for rails_get_callbacks or rails_get_concern instead.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_partial_interfaceARead-onlyIdempotent
Analyze a partial's interface: local variables it expects, where it's rendered from, and what methods are called on each local. Use when: rendering a partial, understanding what locals to pass, or refactoring partial dependencies. Specify partial:"shared/status_badge" to see its full interface. Supports both underscore-prefixed and non-prefixed names.
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Detail level. summary: locals list + usage count. standard: locals + usage examples from codebase (default). full: locals + usage + full partial source. | |
| partial | Yes | Partial path relative to app/views (e.g. 'shared/status_badge', 'users/form'). The leading underscore is optional. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Rich annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds value by describing what the analysis actually reports (locals, render sites, method call sites), which matters because there is no output schema. Minor gap: no mention of limitations such as dynamically resolved partials.
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?
Three tight sentences: capability first, usage conditions second, format example third — all front-loaded with no filler. The 'Use when:' list is dense but each item earns its place.
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?
For a two-parameter read-only analysis tool with full schema coverage, the description supplies the missing return-value context (no output schema exists) and the usage triggers. Only the absence of any stated limitations keeps it from being fully complete.
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%: both 'partial' and 'detail' are documented, with the enum's three levels fully explained in the schema. The description's quoted example ('shared/status_badge') and the underscore-prefix note largely restate what the schema already says, so baseline 3 applies.
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?
Names a specific verb (analyze) and resource (partial's interface), then enumerates the three concrete outputs: expected locals, render sites, and methods called on each local. That differentiates it from a plain source read like rails_get_view, though it never names a sibling explicitly, and 'full' detail mode returning partial source blurs the boundary slightly.
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?
Gives an explicit 'Use when:' list covering rendering, passing locals, and refactoring dependencies — clear invocation context. It stops short of stating when to prefer a sibling tool (e.g., rails_get_view for raw source) or any exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_routesARead-onlyIdempotent
Get routing table: HTTP verbs, paths, controller#action, route names. Use when: building links/redirects, checking available endpoints, verifying route helpers exist. Filter with controller:"users", use detail:"summary" for counts or detail:"full" for route names.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max routes to return. Default: depends on detail level. | |
| detail | No | Detail level. summary: route counts per controller. standard: paths and actions (default). full: everything including names and constraints. | |
| offset | No | Skip routes for pagination. Default: 0. | |
| app_only | No | Leave out the routes Rails' engines and gems draw on their own (Active Storage, Action Mailbox and its conductor, Turbo Native navigation, Rails' info and mailer-preview pages). Routes the app's route files declare stay, devise_for's and the health check's included. A controller filter searches every route. Default: true. | |
| controller | No | Filter routes by controller name (e.g. 'users', 'api/v1/posts'). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds the useful behavioral detail that output shape varies by detail level (counts vs paths vs names+constraints) and that a controller filter scopes results, though it doesn't mention the app_only default filtering of engine routes — a notable behavior left entirely to the schema.
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?
Three compact sentences: what it returns, when to use it, how to tune it. Front-loaded and every clause carries information; no filler or hedging.
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?
With no output schema, the description correctly takes on the burden of describing the return contents (verbs, paths, controller#action, names), which it does. Pagination via limit/offset is never hinted at in the description, and the default app_only filtering — likely to surprise an agent — is only in the schema, so a small gap remains.
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 every parameter is already documented, including the full app_only engine-route explanation. The description restates the controller filter and detail levels with pragmatic framing ("summary for counts", "full for route names") but adds little syntax or meaning the schema doesn't already carry. Baseline 3 is appropriate.
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?
Opens with a specific verb+resource ("Get routing table") and immediately enumerates the returned fields (verbs, paths, controller#action, names), which separates it cleanly from siblings like rails_get_controllers or rails_get_turbo_map. An agent knows exactly what this tool surfaces without opening the schema.
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?
Explicit when-to-use triggers are given: building links/redirects, checking available endpoints, verifying route helpers. It also routes between modes (controller filter, summary vs full). It stops short of naming a sibling tool as the alternative when this one is wrong, so it lands at 4 rather than 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_schemaARead-onlyIdempotent
Get database schema: tables, columns, types, indexes, foreign keys. Use when: writing migrations, checking column types/constraints, understanding table relationships. Filter to one table with table:"users", control detail with detail:"summary"|"standard"|"full".
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max tables to return when listing. Default: 50 for summary, 25 for standard, 10 for full. | |
| table | No | Specific table name for full detail. Omit for overview. | |
| detail | No | Detail level. summary: table names + column counts. standard: table names + column names/types (default). full: everything including indexes, FKs, comments. | |
| format | No | Output format. Default: markdown. | |
| offset | No | Skip this many tables for pagination. Default: 0. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds nothing beyond that — no pagination behavior, no note on cost of "full" detail across large schemas — so it earns only the baseline.
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?
Three compact sentences, front-loaded with the resource then the use cases then the knobs. Slight redundancy with schema-provided enum values keeps it from a 5, but every sentence carries weight.
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?
With no output schema, the description does the necessary work of enumerating the return contents (tables, columns, types, indexes, FKs) and differentiating the detail levels. Pagination and limit defaults live in the schema, so nothing critical is missing for correct invocation.
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 description coverage is 100%, so the enum values, defaults and limit semantics are already documented in the schema. The description's `table:"users"` and `detail:"summary"|"standard"|"full"` examples restate those values rather than adding new meaning; baseline 3 applies.
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?
Opens with a specific verb and enumerated resource: "Get database schema: tables, columns, types, indexes, foreign keys." That clearly distinguishes it from siblings like rails_get_model_details or rails_get_config, though it never names an alternative explicitly.
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 "Use when:" clause gives three concrete scenarios (writing migrations, checking column types/constraints, understanding relationships), which is more than most siblings offer. It lacks explicit when-not-to-use or named alternatives, so it falls short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_service_patternARead-onlyIdempotent
Analyze service objects in app/services/, app/interactions/ and app/interactors/: patterns, interfaces, dependencies, and side effects. Use when: understanding how services are structured, adding a new service, or tracing what a service does. Specify service:"CreateOrder" for full detail, or omit to detect the common pattern and list all services.
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Detail level. summary: names only. standard: names + method signatures + line counts (default). full: everything including side effects, error handling, and callers. | |
| service | No | Service class name or filename (e.g. 'CreateOrder', 'create_order'). Omit to list all services with pattern detection. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds real behavioral context: omitting `service` silently switches the tool into pattern-detection + list-all mode, and supplying it switches to single-service detail. It does not clarify whether the detail levels apply to both modes, which is the remaining ambiguity.
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?
Three sentences: what it analyzes, when to use it, and how to call it. Scope is front-loaded and every sentence carries unique information with no restatement of the name or title.
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?
With only two optional parameters, full schema coverage, and safety annotations present, the description covers what an agent needs to invoke it correctly, and no output schema means return-format explanation is not required. The one gap is the interaction between `service` and `detail` in "full detail" phrasing.
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 the baseline is 3, but the description earns extra credit by explaining the consequence of omitting `service` (pattern detection + full listing) and giving a concrete invocation example ("CreateOrder"). It leaves a small tension between "Specify service for full detail" and the separate `detail` enum that determines detail level.
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?
Specific verb ("Analyze") plus specific resource (service objects in app/services/, app/interactions/, app/interactors/) and an enumeration of what is reported: patterns, interfaces, dependencies, side effects. The named directories separate it from siblings like rails_get_job_pattern and rails_get_concern without needing to open a schema.
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?
"Use when: understanding how services are structured, adding a new service, or tracing what a service does" gives concrete triggering contexts, and the final sentence gives the two invocation modes (with vs. without the service param). It stops short of naming sibling alternatives or exclusions, so it stops at 4 rather than 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_stimulusARead-onlyIdempotent
Get Stimulus controllers: targets, values, actions, outlets, classes. Use when: wiring up data-controller attributes in views, adding targets/values, or checking existing Stimulus behavior. Filter with controller:"filter-form" for one controller's full API, or list all with detail:"summary".
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max controllers to return when listing. Default: 50. | |
| detail | No | Detail level. summary: names + counts. standard: targets + values + actions (default). full: everything including outlets, classes, HTML usage. | |
| offset | No | Skip this many controllers for pagination. Default: 0. | |
| controller | No | Specific Stimulus controller name (e.g. 'hello', 'filter-form'). Case-insensitive. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered elsewhere. The description adds useful context about default detail level and the filter-vs-list modes, but says nothing about source of truth (static parse vs runtime), staleness, or error behavior when a controller name doesn't exist.
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?
Three tight sentences, front-loaded with the resource and its payload, then usage, then parameter modes. Every clause carries information an agent needs; no filler.
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?
With no output schema, the description does the work of describing return content (targets, values, actions, outlets, classes) and how detail levels modulate it, which is sufficient to call correctly. Minor gap: no indication of what happens for unknown controller names or how large default listings behave at limit 50.
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 all four parameters are already documented, including the detail enum and defaults — baseline 3 applies. The description reinforces this with a concrete example ('controller:"filter-form"') and a usage pairing ('list all with detail:"summary"'), but adds no format or constraint detail 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?
Names a specific verb and resource ('Get Stimulus controllers') and enumerates exactly what is extracted: targets, values, actions, outlets, classes. That enumeration distinguishes it clearly from the similarly named rails_get_controllers (Rails controllers) and from rails_get_view or rails_get_partial_interface.
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 an explicit 'Use when' list of concrete scenarios: wiring data-controller attributes, adding targets/values, checking existing Stimulus behavior. It also explains the two operating modes (filter by one controller vs list all at summary detail). It stops short of naming a when-not condition or an alternative sibling tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_test_infoARead-onlyIdempotent
Get test infrastructure and existing test files: framework, factories, fixtures, CI config, coverage setup. Use when: writing new tests, checking what factories/fixtures exist, or finding the test file for a model/controller. Use model:"User" or controller:"Posts" to see existing tests. detail:"full" lists factory and fixture names.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Show existing tests for a specific model (e.g. 'User'). Looks for model spec/test file. | |
| detail | No | Detail level. summary: framework + counts. standard: framework + fixtures + CI (default). full: everything including fixture names, factory names, helper setup. | |
| controller | No | Show existing tests for a specific controller (e.g. 'Posts'). Looks for controller/request spec/test file. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/idempotent/closed-world, so safety is covered; the description adds what the payload actually contains at each layer. It also clarifies that model:/controller: narrow the output to existing tests rather than filtering results. No statement about behavior when a model has no test file, which is the main remaining 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?
Three tight sentences, front-loaded with the resource and its contents, then when-to-use, then parameter hints. No filler and no repetition.
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?
With no output schema, the description does the work of enumerating returned content and the detail-level tiers, which is sufficient for a read-only introspection tool. It does not address empty/not-found results or how model and controller interact when both are passed.
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% and the enum is documented in-schema, so the baseline is 3. The description's 'Use model:"User" or controller:"Posts"' and 'detail:"full" lists factory and fixture names' mostly restate the schema descriptions rather than adding new semantics such as precedence when both model and controller are supplied.
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 opens with a specific verb and resource ('Get test infrastructure and existing test files') and enumerates the contents it returns: framework, factories, fixtures, CI config, coverage setup. That lets an agent separate it from mutation siblings like rails_generate_test, though it never names an alternative explicitly.
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 gives an explicit 'Use when:' list covering the three main triggers (writing new tests, checking factories/fixtures, locating a model/controller test file). It stops short of stating when NOT to use it or naming the sibling that should be used instead for generation.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_turbo_mapARead-onlyIdempotent
Map Turbo Streams and Frames across the app: model broadcasts, channel subscriptions, frame tags, and DOM target mismatches. Use when: debugging Turbo Stream delivery, adding real-time updates, or understanding broadcast→subscription wiring. Filter with stream:"notifications" for a specific stream, or controller:"messages" for one controller's Turbo usage.
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Detail level. summary: count of streams, frames, model broadcasts. standard: each stream with source → target (default). full: everything including inline template refs and DOM IDs. | |
| stream | No | Filter by stream/channel name (e.g. 'notifications', 'messages'). Shows only broadcasts and subscriptions for this stream. | |
| controller | No | Filter by controller name (e.g. 'messages', 'comments'). Shows Turbo usage in that controller's views and actions. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Read-only, idempotent and non-destructive are already covered by annotations, so the description's job is to say what analysis is produced — it does, listing broadcasts, subscriptions, frame tags and DOM target mismatches as outputs. It also implicitly signals the default detail level via the schema, though it never states output size or cost at 'full' detail.
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?
Three sentences, front-loaded with the purpose and then the when-to-use triggers. The final filter sentence largely duplicates the schema's parameter descriptions, which is mild redundancy but not bloat.
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?
No output schema exists, but the description compensates by naming the four artifact classes the map contains and the three detail levels via the schema. For a zero-required-param read-only analysis tool this is close to sufficient; only the shape of a 'mismatch' finding is left undefined.
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 all three params are already documented with examples in the schema. The description's closing sentence re-uses those same examples (stream:"notifications", controller:"messages") without adding behavior the schema lacks — e.g. how filters combine or what happens when both are given.
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?
States a specific verb+resource: mapping Turbo Streams and Frames, enumerating the four things it surfaces (model broadcasts, channel subscriptions, frame tags, DOM target mismatches). No sibling tool covers Turbo, so an agent can confidently route here rather than to rails_get_stimulus or rails_get_view.
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 'Use when:' clause names three concrete scenarios — debugging stream delivery, adding real-time updates, understanding broadcast→subscription wiring — and follows with filter guidance keyed to each param. It does not name a wrong-tool alternative or exclusion, which keeps it below a 5, but the context is unambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_get_viewARead-onlyIdempotent
Get view templates, partials, and their Stimulus/partial references. Use when: editing ERB views, checking which partials a page renders, or finding Stimulus controller usage. Filter with controller:"posts" for all views, or path:"posts/index.html.erb" for one file's content.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Specific view path relative to app/views (e.g. 'posts/index.html.erb'). Returns full content. | |
| detail | No | Detail level. summary: file list with line counts. standard: file list with partials/stimulus refs (default). full: template content. | |
| controller | No | Filter views by controller name (e.g. 'posts', 'comments'). Lists all templates for that controller. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds that a path lookup returns full file content versus a controller filter listing all views, but says nothing about output size, pagination, or what happens when no filter is supplied.
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?
Two tight sentences: the capability statement is front-loaded, then the usage triggers, then the filtering syntax. Nothing extraneous, and the most decision-relevant information comes first.
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?
With no output schema, the description adequately conveys the return shape by distinguishing a file list from full file content. It is nearly complete for a read-only lookup tool, though it never states the default behavior when both filters are omitted.
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% and each parameter already carries its own description and examples, so the schema does the heavy lifting. The description's inline examples (controller:"posts", path:"posts/index.html.erb") echo the schema rather than adding new semantics, so the baseline 3 applies.
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?
States a specific verb and resource ('Get view templates, partials, and their Stimulus/partial references') and implicitly scopes it against siblings like rails_get_stimulus and rails_get_partial_interface by focusing on view files. An agent can tell what it retrieves without opening the schema.
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 'Use when:' clause names three concrete scenarios (editing ERB views, checking rendered partials, finding Stimulus controller usage), which is clear routing guidance. It stops short of naming alternative sibling tools or stating when not to use it (e.g. use rails_get_stimulus for controller source).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_migration_advisorARead-onlyIdempotent
Generates migration code for schema changes. Given an action (add_column, remove_column, rename_column, add_index, add_association, change_type), generates the migration, flags irreversible operations, and shows affected models. Use when: adding fields, changing schema, planning database changes. Key params: action, table, column, type, new_name (for rename_column).
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Column type (e.g., 'string', 'integer', 'boolean', 'references'). For add_association with column, the table the reference points at (e.g., 'users'). | |
| table | Yes | Table name (e.g., 'users', 'posts') | |
| action | Yes | Migration action to perform | |
| column | No | Column name (e.g., 'email', 'status'). For add_association, the reference (e.g., 'user', 'parent'). | |
| options | No | Additional options (e.g., 'null: false, default: 0') | |
| new_name | No | New column name - only for rename_column action (e.g., 'full_name') |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/idempotent/non-destructive, and the description usefully adds what the response contains: the generated migration, irreversible-operation flags, and affected models. The one notable omission is that it never says the migration is only generated and not applied to the database — an agent calling 'remove_column' has to infer that from readOnlyHint.
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?
Three compact sentences, front-loaded with the core action and followed by usage scope and params. Minor waste in the trailing param list, which duplicates schema detail, but overall no padding.
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?
For a 6-parameter generator with no output schema, the description covers what is produced (migration code, irreversibility warnings, affected models) and which actions are supported. Only the generate-vs-apply distinction and any output-format/precondition detail are missing.
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% with per-parameter descriptions and an enum on action, so the schema already carries the load. The description's 'Key params' list and the new_name-for-rename_column note largely restate schema text rather than adding new 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?
States a specific verb and resource: 'Generates migration code for schema changes', and enumerates the six/seven supported actions. It is unambiguous versus siblings like rails_get_schema or rails_validate, though it never explicitly names an alternative tool.
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 an explicit 'Use when:' clause (adding fields, changing schema, planning database changes) that maps situations to the tool. It gives no when-not guidance or named alternative for adjacent tasks (e.g., inspecting an existing schema), which keeps it short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_onboardARead-onlyIdempotent
Get a narrative walkthrough of the Rails application - stack, data model, authentication, key flows, background jobs, frontend, testing, getting started instructions, and the app's custom rake tasks, generators and Railties. Use when: first encountering a project, onboarding a new developer, or orienting an AI agent. Key params: detail (summary/standard/full).
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Detail level. summary: 1-paragraph overview. standard: structured walkthrough (default). full: all subsystems included. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: output is a narrative walkthrough (not raw data), its scope spans full subsystems including custom rake tasks and Railties, and it implies no mutation. It omits size/cost considerations for large apps.
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?
Two sentences, front-loaded with the purpose before usage conditions and params. The subsystem list is long but each item concretely signals coverage; it could be trimmed slightly without loss.
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?
Single optional param, full schema coverage, no output schema to explain, and annotations carrying the safety profile. The description tells an agent what it gets (a narrative covering named subsystems), when to call it, and how to control depth — everything needed to invoke it correctly.
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% and the enum description already fully explains summary/standard/full, plus marks standard as the default. The description's 'Key params: detail (summary/standard/full)' only repeats the schema, so baseline 3 is appropriate.
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?
States a specific verb and resource ('Get a narrative walkthrough of the Rails application') and enumerates the exact subsystems covered: stack, data model, auth, key flows, jobs, frontend, testing, getting started, rake tasks/generators/Railties. That breadth makes it clearly the whole-app orientation tool against the narrower sibling getters like rails_get_model_details or rails_get_config.
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?
Explicit 'Use when:' clause gives three concrete triggering situations (first encounter, onboarding a developer, orienting an AI agent). It does not name an alternative or state when not to use it, so it falls short of the 5 bar.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_performance_checkARead-onlyIdempotent
Static analysis for Rails performance anti-patterns: N+1 query risks, missing counter_cache, Model.all in controllers, missing foreign key indexes, eager loading candidates. Use when: reviewing code for performance, before deploying, or investigating slow pages. Key params: model (filter by model), category (filter by issue type), detail level.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Filter results to a specific model (e.g., 'User', 'Post') | |
| detail | No | Level of detail: summary (counts), standard (issues + suggestions), full (+ code context) | |
| category | No | Filter by issue category (default: all) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that this is *static* analysis (no app execution), which is genuinely useful context, but says nothing about scope of scanning, cost, or how results are organized beyond the detail enum.
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 capability list is front-loaded and the usage triggers follow immediately, with no wasted preamble. The trailing 'Key params' sentence is largely redundant with the schema and slightly dilutes an otherwise tight description.
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?
No output schema exists, but the detail enum describes output granularity (counts vs issues vs code context), and annotations cover safety and idempotency. Required parameters are zero and all three params are schema-documented, so an agent has what it needs to call it correctly.
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 description coverage is 100%, and the enums for detail and category are fully documented in the schema itself. The 'Key params' sentence merely restates what the schema already provides, adding no new meaning such as filtering interaction or defaults beyond 'default: all'.
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?
States a specific verb ('Static analysis') and resource ('Rails performance anti-patterns') and enumerates the concrete issue classes it detects (N+1, counter_cache, indexes, Model.all, eager loading). This clearly separates it from rails_security_scan or rails_diagnose, though it never names a sibling explicitly.
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?
'Use when: reviewing code for performance, before deploying, or investigating slow pages' gives concrete triggering contexts. It stops short of any when-not guidance or explicit routing to alternatives such as rails_diagnose for runtime problems.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_queryARead-only
Execute read-only SQL queries against the database. Use when: checking data patterns, verifying migrations, debugging data issues. Safety: SQL validation + database-level READ ONLY + statement timeout + row limit. Development/test only by default. Key params: sql (SELECT only), limit (default 100), format (table/csv).
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL query to execute. Only SELECT, WITH, SHOW, EXPLAIN, DESCRIBE allowed, and no UNION. | |
| limit | No | Max rows to return. Default: 100, hard cap: 1000. | |
| format | No | Output format. table: markdown table (default). csv: comma-separated values. | |
| explain | No | Run EXPLAIN on the query. Returns execution plan analysis instead of data. SELECT only. | |
| database | No | The app database to query, by its config/database.yml name (for example queue). Default: the primary. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint and destructiveHint=false, yet the description adds real context beyond them: SQL validation, a database-level READ ONLY session, statement timeout, row limit, and dev/test environment gating. These are exactly the operational constraints an agent needs before calling a raw-SQL 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?
Front-loaded purpose, then use cases, then safety, then params — good ordering with no filler. The trailing 'Key params' clause largely duplicates the schema and is the one part that does not earn its place.
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?
With five parameters, full schema coverage, rich annotations, and no output schema, the description covers purpose, timing, and safety adequately. What is missing is behavior of the less obvious options (explain, database) and error/result semantics, which keeps it from a 5.
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 description coverage is 100%, so the schema already documents sql, limit, format, explain, and database in detail. The description's 'Key params' line restates schema content (SELECT only, default 100, table/csv) without adding syntax or format detail, and ignores explain and database entirely.
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 opens with a specific verb+resource ('Execute read-only SQL queries against the database'), which cleanly separates this tool from the introspection siblings like rails_get_schema or rails_search_code. It does not explicitly name a sibling as the alternative, so it stops short of a 5.
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?
'Use when: checking data patterns, verifying migrations, debugging data issues' gives concrete triggering scenarios, and 'Development/test only by default' sets an environment boundary. It lacks explicit when-not guidance or a pointer to the introspection siblings for schema questions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_read_logsARead-only
Read recent log entries with level filtering and sensitive data redaction. Use when: debugging errors, checking recent activity, investigating failed requests. Key params: lines (default 50), level (ERROR/WARN/INFO/DEBUG/FATAL/all), file, search. Search matches the redacted line, so a filtered value cannot be searched for.
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Log file name (e.g. 'production', 'sidekiq', or a rotated 'development.log.0'). Defaults to current Rails.env log. '.log' suffix optional. | |
| level | No | Minimum log level filter. 'all' shows everything (default). 'ERROR' shows ERROR+FATAL only. | |
| lines | No | Number of lines to tail from the log file. With `search`, the number of matching lines to show, searched for in the last 4 MB of the file. Default: 50, max: 500. | |
| search | No | Case-insensitive text filter. Only lines containing this string are returned, searched for in the last 4 MB of the file. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already establish the safe read-only, non-destructive, closed-world profile, so the description is not carrying the safety burden. Its real addition is the redaction behavior and the caveat that search matches the redacted line, so a redacted token cannot be searched for — genuinely useful operational context. It does not describe output shape or truncation behavior for very large files.
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?
Four short sentences, purpose first, then usage triggers, then the parameter shorthand, then the single most surprising caveat last. Every sentence carries information not duplicated elsewhere.
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?
For a four-param read tool with full schema coverage and a closed-world read-only profile, the description covers purpose, triggers, key defaults and the redaction/search gotcha. The only gap is that with no output schema the description never says what a returned log entry looks like (raw lines? structured objects?), which an agent might want before parsing results.
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% and every parameter already has a thorough description including defaults, enum semantics and the 4 MB search window, so the baseline is 3. The description earns a 4 by foregrounding which params matter ('Key params: lines (default 50), level (...)') and by adding a semantic constraint the schema cannot express — search operates on redacted text.
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?
States a specific verb and resource — 'Read recent log entries' — plus the two capabilities (level filtering, sensitive data redaction). Nothing in the sibling list reads logs; the rest are code/schema introspectors, so the agent can route here without ambiguity.
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?
'Use when: debugging errors, checking recent activity, investigating failed requests' gives three concrete triggering scenarios, which is above the minimum implied-usage bar. It stops short of 5 because no when-NOT-to-use or named alternative is given (e.g. rails_search_code for grepping source rather than logs).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_review_changesARead-only
PR/commit review context: shows changed files with relevant schema/model/route context per file, detects warnings (missing indexes, removed validations, changed associations, new routes without tests). Use when: reviewing changes before merging, understanding what a commit changed and its impact. Key params: ref (default 'HEAD' for uncommitted, or 'main', 'HEAD~3', commit SHA).
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref to diff against. 'HEAD' = uncommitted changes (default). 'main' = diff from main. 'HEAD~3' = last 3 commits. 'abc123' = specific commit. | |
| files | No | Filter to files or directories (relative to Rails root). Omit to review all changed files. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly=true, destructive=false, openWorld=true, and idempotent=false. The description adds real value beyond that by disclosing what the output contains (per-file schema/model/route context) and what classes of warnings are surfaced (missing indexes, removed validations, changed associations, untested routes). It says nothing about behavior with very large diffs or performance limits, which is the main remaining 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?
Three compact, front-loaded segments: what it shows, when to use it, key params. Efficient overall, though the 'ref' recap duplicates schema content rather than adding new information, which is a minor waste of the limited 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?
There is no output schema, so the description must carry the return-value burden — it does so at a high level by naming per-file context and warning categories. For a two-optional-parameter read tool with full annotation coverage, that is nearly sufficient; a brief note on output shape (grouped by file? ranked warnings?) would close the gap.
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 description coverage is 100%, so the baseline is 3. The description restates the 'ref' semantics ('default HEAD for uncommitted, or main, HEAD~3, commit SHA') which is already fully documented in the schema, and never mentions the 'files' filter parameter at all.
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 opens with a specific verb and resource — 'PR/commit review context: shows changed files with relevant schema/model/route context per file' — and adds a second concrete capability (warning detection with named categories). This is clearly distinguishable from sibling context tools like rails_get_edit_context or rails_get_context, which are not diff-scoped.
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 gives an explicit 'Use when:' clause with two concrete scenarios (reviewing before merge, understanding a commit's impact). It does not name a sibling alternative or state when not to use it, so it stops short of the top mark.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_runtime_infoARead-only
Live runtime state: database connection pool, table sizes, pending migrations, cache stats, job queues. Use when: debugging performance, checking database health, verifying deployment state, or understanding infrastructure. Key params: detail (summary/standard/full), section (database/cache/jobs/connections).
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Detail level. summary: one-line per section. standard: tables with sizes (default). full: index usage + cache details. | |
| section | No | Filter to one section. Omit for all sections. | |
| database | No | The app database whose table sizes and index usage to show, by its config/database.yml name. Default: the primary. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds that state is "live" (current, not cached) and enumerates the section categories, but says nothing about cost, latency, or whether introspection has side effects on a running system — and idempotentHint=false is left unexplained.
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?
Three compact clauses: purpose, usage triggers, key params — front-loaded and scannable with zero filler. The trailing "Key params" sentence partially duplicates enum values already in the schema, which is mild waste but keeps the definition self-contained.
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?
With no output schema, the description carries the return-value burden and does so by enumerating the five data categories, and all parameters are documented in the schema. For a read-only introspection tool this is nearly complete; only the meaning of idempotentHint=false and any cost/volume caveats are missing.
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 the schema already documents all three parameters and both enums in detail. The description only restates the detail and section enum values and omits the `database` parameter entirely, adding no syntax or semantics beyond structured data. Baseline 3 applies.
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?
Opens with a specific noun phrase — "Live runtime state" — and enumerates the concrete resources covered (connection pool, table sizes, pending migrations, cache stats, job queues), so an agent knows exactly what it returns. It implicitly separates itself from static-inspection siblings like rails_get_config or rails_get_schema by the word "Live," but never names a sibling explicitly.
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 "Use when:" clause gives four concrete triggering scenarios (debugging performance, checking database health, verifying deployment state, understanding infrastructure). That is clear positive guidance, but there are no exclusions or named alternatives telling the agent when to prefer rails_diagnose or rails_performance_check instead.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_search_codeARead-onlyIdempotent
Search the Rails codebase with smart modes. Use match_type:"trace" to see where a method is defined, who calls it, and what it calls - in one call. Use match_type:"definition" for definitions only, "call" for call sites only, "class" for class/module definitions. Requires pattern:"method_name". Narrow with path:"app/models" and file_type:"rb".
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Subdirectory or file to search (e.g. 'app/models', 'config/routes.rb'). Default: entire app. | |
| limit | No | Max lines to return. Default: auto-sized so the page holds a useful number of matches. A limit too small for one match and its context still returns that match. | |
| offset | No | Skip this many emitted lines for pagination. Default: 0. | |
| pattern | Yes | Search pattern (regex supported). For definition and class, a plain method or constant name matches literally (`valid?`), anything else as a regex (`generate_.*`). | |
| file_type | No | Filter by file extension (e.g. 'rb', 'js', 'erb'). Default: all files. | |
| match_type | No | any: all matches (default). definition: `def` lines whose method name contains the pattern. class: `class/module` lines whose name contains it. call: call sites only (excludes definitions). trace: FULL PICTURE - shows definition + source code + all callers + what it calls internally. | |
| exact_match | No | Match the pattern literally, whole-word where its edges are word characters. `def reblog?` will not match `def reblog`. Default: false. | |
| context_lines | No | Lines of context before and after each match (like grep -C). Default: 2, max: 5. | |
| exclude_tests | No | Exclude test/spec files from results. Default: false. | |
| group_by_file | No | Group results by file with match counts. Default: false. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already establish read-only, idempotent, non-destructive behavior. The description adds useful behavioral context, especially that trace mode returns definitions, source, callers, and internal calls in one call, though it does not discuss pagination or result-shape details beyond that.
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 compact and front-loaded: purpose first, then mode selection, then required input and narrowing options. Every sentence contributes useful selection or invocation guidance.
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?
With rich annotations and full schema coverage, the description is largely complete for a read-only search tool. It could say more about general return behavior outside trace mode, but the critical invocation guidance is present.
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 description coverage is 100%, so all parameters are already documented in detail. The description reinforces required pattern usage and mode semantics, but adds little beyond the schema's own parameter descriptions.
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 states a specific verb and resource: search the Rails codebase. It clearly distinguishes search modes (trace, definition, call, class), but does not explicitly differentiate this tool from sibling tools such as rails_search_docs or rails_get_model_details.
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 gives explicit guidance on which match_type to use for definitions, call sites, class/module definitions, and full trace results. It also notes required pattern usage and path/file_type narrowing, though it does not compare usage against sibling search or retrieval tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_search_docsARead-onlyIdempotent
Search a bundled index of the Rails guides and the Turbo, Stimulus and Hotwire Native handbooks. Use when: you need to reference Rails conventions, API details, or best practices. Pass query:"active record callbacks" to find matching topics. Filter with source:"guides", "turbo", "stimulus" or "hotwire". Set fetch:true to retrieve full content from GitHub (cached 24h).
| Name | Required | Description | Default |
|---|---|---|---|
| fetch | No | When true, fetch full content from GitHub (cached 24h in tmp/). Default: false. | |
| limit | No | Maximum number of results to return (1-20). Default: 5. | |
| query | Yes | Search terms (e.g. 'active record validations', 'turbo streams', 'action cable'). | |
| source | No | Filter results by documentation source. Default: all. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds real value beyond that by disclosing that fetch:true reaches out to GitHub and is cached for 24 hours, which is the kind of network/state behavior an agent needs. It stops short of describing result shape or what happens on a cache miss.
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?
Four short, front-loaded sentences: scope first, then when-to-use, then query/filter examples, then the fetch behavior. Nothing is padded, though the filter enumeration edges toward repeating the schema's enum.
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?
With no output schema, the description still conveys what comes back ("matching topics", and full content when fetch is true), which is the key return-value context. It omits the limit default and result ordering, but those are documented in the schema.
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 description coverage is 100%, so the schema already documents query, source, limit and fetch completely. The description's example query string and source filter values largely restate what the schema provides, adding only mild emphasis. Baseline 3 is appropriate given the schema does the heavy lifting.
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 uses a specific verb ("Search") against a precisely delimited resource: "a bundled index of the Rails guides and the Turbo, Stimulus and Hotwire Native handbooks." By naming the exact corpora, it implicitly distinguishes itself from the corpus-agnostic sibling rails_search_code and from project-introspection tools like rails_get_schema.
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?
"Use when: you need to reference Rails conventions, API details, or best practices" gives an explicit trigger condition. However, no negative guidance or named alternative is offered — e.g. it never says to use rails_search_code for project code instead — so an agent must infer the boundary.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_security_scanARead-onlyIdempotent
Run Brakeman static security analysis on Rails app. Use when: after editing controllers/models/views, reviewing code for vulnerabilities, or before deploying. Filter with files:["app/controllers/users_controller.rb"], set confidence:"high" to reduce noise.
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | File paths relative to Rails root to filter results (e.g. ['app/controllers/users_controller.rb']). Omit to scan entire app. | |
| checks | No | Run only specific checks by Brakeman class name (e.g. ['CheckSQL', 'CheckCrossSiteScripting']). Omit to run all checks. | |
| detail | No | Detail level. summary: counts only. standard: warnings with file/line (default). full: warnings with code snippets and remediation links. | |
| confidence | No | Minimum confidence level for reported warnings. high: fewest results, most certain. weak: all warnings (default). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds practical behavioral context: results can be narrowed with file filters and high confidence reduces noise, which helps an agent predict output volume. It stops short of describing runtime cost or the shape of results.
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?
Three short sentences with the core action first and the when-to-use and tuning guidance immediately after. No filler, and the most decision-relevant information is front-loaded.
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?
For a four-parameter, read-only scanning tool with no output schema, the description covers what it does, when to invoke it, and how to reduce result noise. Minor gaps remain around expected runtime and how findings are returned, but nothing essential for correct invocation is missing.
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% and each of the four parameters is documented in detail, including enum meanings. The description's inline examples (files:["app/controllers/users_controller.rb"], confidence:"high" to reduce noise) mirror the schema examples rather than adding new semantics, so the baseline 3 applies.
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?
States a specific verb and resource: 'Run Brakeman static security analysis on Rails app.' This clearly separates it from siblings such as rails_validate, rails_performance_check, and rails_review_changes without needing the schema.
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 names three triggering situations: after editing controllers/models/views, when reviewing code for vulnerabilities, and before deploying. It gives clear positive guidance but does not name alternatives or state when not to use it versus rails_validate or rails_performance_check.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_session_contextBRead-only
Track what you've already queried to avoid redundant calls. Use action:"status" to see what tools you've called, action:"summary" for a compressed recap, action:"reset" to clear session, or mark:"tool:param" to record a query. Helps maintain focus during long development sessions.
| Name | Required | Description | Default |
|---|---|---|---|
| mark | No | Mark a tool+params as already queried (e.g., 'get_schema:users', 'get_model_details:User'). | |
| action | No | status: list queried tools with timestamps. summary: compressed recap. reset: clear session. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations declare readOnlyHint=true, but the description says reset clears the session and mark records a query, both of which are state mutations. This directly contradicts the read-only annotation.
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 single sentence front-loads the purpose and action list. The final clause about maintaining focus is mild filler, but overall it is efficient.
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?
For a two-parameter session utility with full schema coverage, the description covers actions and mark format adequately. It omits return behavior for status/summary, and the read-only contradiction leaves behavioral expectations unclear.
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% and already documents both parameters and the action enum. The description restates action meanings and mark format, adding little 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?
States that the tool tracks already-queried tools to avoid redundant calls and enumerates its actions. It is clearly a session-tracking meta-utility, though it does not explicitly contrast itself with sibling retrieval tools.
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?
Explains what each action and the mark parameter do, and implies use during long development sessions. However, it gives no explicit when-not guidance or alternatives for choosing this over sibling query tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
rails_validateARead-onlyIdempotent
Validate syntax and semantics of Ruby, ERB, and JavaScript files in a single call. Use when: after editing files, before committing, to catch syntax errors and Rails-specific issues. Pass files:["app/models/user.rb"], use level:"rails" for semantic checks (missing partials, route helpers, column refs in validates/permit/callbacks).
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | File paths relative to Rails root (e.g. ['app/models/post.rb', 'app/views/posts/index.html.erb']) | |
| level | No | Validation level. syntax: check syntax only (default, fast). rails: syntax + semantic checks (partial existence, route helpers, column refs in validates/permit/callbacks). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds that multiple files are handled in a single call and enumerates what the semantic layer catches (missing partials, route helpers, column refs), which is useful context, but says nothing about cost, output format, or failure behavior.
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?
Three front-loaded sentences with no filler, and the when-to-use guidance appears early. There is minor redundancy: the enumerated semantic checks in the final parenthetical repeat the level parameter's schema description almost verbatim.
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?
For a validator there is no output schema, and the description never indicates what a result looks like (per-file pass/fail, diagnostic list, error locations, how semantic errors are reported). Annotations do cover side effects, but the agent cannot predict the response shape before calling.
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%, and both parameters carry descriptions that already explain the rails-vs-syntax level distinction in nearly the same words. The description's concrete example call files:["app/models/user.rb"] with level:"rails" adds a little illustrative value, but the semantic content largely duplicates 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?
States a specific verb (validate) against specific resources (Ruby, ERB, JavaScript files) and adds the distinguishing scope detail of syntax vs. semantic checking in a single call. No sibling tool in the list offers validation, so the purpose is unmistakable.
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 'Use when: after editing files, before committing, to catch syntax errors and Rails-specific issues' clause gives concrete trigger points an agent can act on. It doesn't point at an alternative or say when not to call it, but the retrieval-plus-validate workflow is clearly implied.
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.
35 tool updates
v5.39.1- First observed
rails_analyze_feature - First observed
rails_dependency_graph - First observed
rails_diagnose - First observed
rails_generate_test - First observed
rails_get_callbacks - First observed
rails_get_component_catalog - First observed
rails_get_concern - First observed
rails_get_config - First observed
rails_get_context - First observed
rails_get_controllers - First observed
rails_get_edit_context - First observed
rails_get_helper_methods - First observed
rails_get_job_pattern - First observed
rails_get_mailers - First observed
rails_get_model_details - First observed
rails_get_partial_interface - First observed
rails_get_routes - First observed
rails_get_schema - First observed
rails_get_service_pattern - First observed
rails_get_stimulus - First observed
rails_get_test_info - First observed
rails_get_turbo_map - First observed
rails_get_view - First observed
rails_migration_advisor - First observed
rails_onboard - First observed
rails_performance_check - First observed
rails_query - First observed
rails_read_logs - First observed
rails_review_changes - First observed
rails_runtime_info - First observed
rails_search_code - First observed
rails_search_docs - First observed
rails_security_scan - First observed
rails_session_context - First observed
rails_validate
TDQS
Scored across 35 tools
Most tools map to a distinct Rails artifact (schema, routes, callbacks, mailers, jobs, stimulus, turbo), but several boundaries blur: rails_analyze_feature and rails_get_context both promise 'full-stack context in one call' across the same layers, and rails_get_context vs rails_get_edit_context differ only by a word while doing very different things. rails_onboard also overlaps with rails_get_config, and rails_get_model_details subsumes rails_get_callbacks. Descriptions are detailed enough that an agent can usually recover, but misselection is a real risk.
All names use a uniform rails_ prefix and snake_case verb_noun form, which is highly readable. The only inconsistency is the verb layer: a large get_* family coexists with bare verbs (analyze_feature, search_code, review_changes, query, validate, onboard), so the 'get' prefix is applied unevenly. Predictable overall, minor deviation.
35 tools is heavy, sitting above the comfortable 3-15 band, and a few are redundant (analyze_feature vs get_context, session_context as a meta-bookkeeping utility). However, the server targets an entire Rails application surface, so most tools do correspond to a genuine distinct artifact type. Borderline over-scoped rather than gratuitous.
Coverage is unusually broad: schema, models, controllers, routes, views, partials, helpers, services, jobs, mailers, Stimulus, Turbo, components, tests, migrations, config, logs, security and performance, plus read-only SQL and docs search. Minor gaps remain around authorization policies (Pundit/CanCan), ActiveStorage/ActionText attachments, and API/GraphQL schema introspection. No dead ends for the core read-and-understand workflow.
Maintenance
Related MCP Connectors
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
A registry of AI agent tools — MCP servers, APIs, CLIs, SDKs — kept current by automated ingestion.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides MCP tools that help AI agents get their bearings in a codebase with unified SQL views over code, git, docs, and conversations, powered by DuckDB.6Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProvides structural code intelligence via 26 MCP tools, enabling AI assistants to query code symbols, dependencies, and call graphs accurately without file-pasting.-
- AlicenseAqualityCmaintenanceEnables AI coding agents to efficiently explore codebases by providing structural outlines, module digests, symbol bodies, and AST-aware grep via MCP.418 npm1MIT

Tidewave Railsofficial
AlicenseNot gradedqualityBmaintenanceBetter agentic Rails development, runtime-level tools for your agent to talk to your running app.475Apache 2.0