Skip to content

AI agent does not automatically invoke MCP / performance tools without explicit instruction #940

Description

@madhaviai

Description of the bug

When prompting an AI agent to “check LCP” or investigate slow page loads, the agent does not automatically invoke the relevant DevTools MCP performance tools. Tool usage only occurs when explicitly instructed. This seems like a tool discoverability/description issue, and improving tool metadata or prompt-to-tool mapping could make performance debugging more natural.

Reproduction

Chrome DevTools MCP server

AI assistant Cursor IDE invoking MCP tools

Tested across multiple prompts related to LCP and performance debugging

Expectation

Image Image

MCP configuration

No response

Chrome DevTools MCP version

latest

Chrome version

No response

Coding agent version

No response

Model version

No response

Chat log

No response

Node version

No response

Operating system

None

Extra checklist

  • I want to provide a PR to fix this bug

Activity

  1. added theissue type on Feb 12, 2026
  2. OrKoN commented on Feb 12, 2026

    @OrKoN
    Collaborator

    "check LCP" works for me in gemini-cli. Do you have a complete list of prompts that did not work for you? "can you fix my webpage" is probably too generic and the IDE would use the code editing features first.

  3. added a commit that references this issue on Feb 12, 2026
    e7922b9
  4. madhaviai commented on Feb 12, 2026

    @madhaviai
    ContributorAuthor

    In most cases the MCP tools were invoked as expected, but I noticed a few intermittent cases (e.g., pagination/UI fixes, fixing a webpage) where the agent didn’t pick them up automatically. Appreciate the team’s responsiveness and the great work here 🙌

  5. OrKoN commented on Feb 12, 2026

    @OrKoN
    Collaborator

    If you have some suggestions, happy to land improvements! we have basic evaluation scenarios set up here that can help validate improvements https://github.com/ChromeDevTools/chrome-devtools-mcp/tree/main/scripts/eval_scenarios

  6. madhaviai commented on Feb 13, 2026

    @madhaviai
    ContributorAuthor

    Thanks for sharing this, the eval scenarios look really helpful for validating changes. I’ll add a couple of scenarios based on real prompts I’ve been testing.
    One suggestion would be to slightly broaden the tool descriptions (e.g., list pages, analyze page, performance_start_trace) to cover more frontend-oriented language so tools are picked up more consistently or agentify the MCP server. Happy to collaborate and discuss more concrete examples if helpful.

  7. natorion commented on Feb 13, 2026

    @natorion
    Contributor

    I think this is something that also has to be optimized on the AI agent side. tool discovery and tool calling is actually very AI agent dependent, in particular as Cursor is also offering their own browser tools.

  8. madhaviai commented on Feb 13, 2026

    @madhaviai
    ContributorAuthor

    Totally agree, tool discovery and calling are definitely very agent-dependent, especially with IDEs like Cursor that have their own browser tools.
    In my case, I only had the DevTools MCP server configured in the IDE, so the intermittent misses were happening even without competing tools. Having an agent wrapper or routing layer around MCP servers, making “DevTools agent” prioritizes the DevTools MCP server for browser/runtime-related prompts would likely make this much more deterministic.
    Overall, with the right prompts the experience has been great really, and I’m excited about where this is heading.

  9. removed theissue type on Feb 18, 2026
  10. added theissue type on Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions