Skip to content

One common MCP tool shape for every client (Google Connected Apps policy, ChatGPT adapters) #2030

Closed

Description

@phernandez

Goal: one common tool shape for every client (Claude, ChatGPT, Gemini, Codex, Cursor, Hermes, ...), so docs, skills, plugins and the manual describe one surface.

Two things pull against that today:

  • Google's new Connected Apps Platform (MCP apps in Gemini and Search AI Mode) has a policy that constrains tool shape. Some grouped tools from the 1.0 surface (1.0 MCP tool surface: one tool per job, bm_ names #1827) may read as "generic dispatchers" to a strict reviewer.
  • ChatGPT already gets a different surface: Cloud registers search and fetch adapters only for OpenAI clients.

This issue records where we stand and the options, so we decide once, for every client.

Policy: https://developers.google.com/connected-apps/connected-apps-policy

What the policy says

  • "Connected Apps must statically declare all callable tool operations in the console at registration time."
  • Apps "must not expose dynamic discovery functions (e.g., list_tools, get_schema) or generic runtime dispatchers (e.g., execute_command, invoke_dynamic_tool)."
  • Each tool should use "distinct, unambiguous language," and descriptions must not "reference other tools or create new rules for when or how other tools should be used."
  • Tools that make sensitive or irreversible changes (altering persistent state, deleting data, changing access) must set destructiveHint: true or require confirmation.
  • Apps must not request or collect "full conversation context."

Where the 1.0 surface stands

Every tool and every command value is a closed, statically declared enum, so nothing is discovered at runtime and nothing dispatches an open-ended command. The question is whether a reviewer reads "one tool per operation" strictly.

Tool Shape Risk
bm_agent (Cloud) command: list, status, run, get, changes, runs, review, keep_all, mark Highest. Nine operations, reads and writes mixed.
bm_review (Cloud) command: comment, suggest, reply, resolve, accept, reject Medium
bm_project command: list, create, recent, info, usage Medium. Reads and a write in one tool.
bm_schema command: validate, infer, diff Medium. Name is close to the banned get_schema, though it is about note schemas.
bm_man reads manual pages for any tool Medium. Closest to "dynamic discovery."
bm_edit command: append, prepend, find_replace, ... Low. One operation with variants.

Annotations: bm_delete, bm_write, bm_edit and project delete set destructiveHint: true. bm_move sets false; a move changes persistent state but is reversible.

Descriptions: several tool descriptions and the server instructions point at other bm_* tools ("read with bm_read first", "use bm_open to show"). The policy line is probably aimed at steering other apps' tools, but a strict reading could flag it.

ChatGPT adapters in Cloud

Cloud serves two extra tools, search and fetch, in apps/cloud/.../hosted_mcp/chatgpt_tools.py. They wrap bm_search and bm_read. OpenAI's connector review expects tools with exactly these names, answering in one shape: a list holding a single {"type": "text", "text": "{...json...}"} item. They are registered only when the client is identified as OpenAI (is_openai_mcp_client); other clients are refused. Core documents them as chatgpt-search(3) and chatgpt-fetch(3).

So today there are already two surfaces: bm_* everywhere, plus search / fetch for ChatGPT. Ways to get to one:

  • Serve search and fetch to every client as part of the common surface. They are single-purpose and read-only, which also fits Google's policy. Cost: two tools that overlap bm_search / bm_read.
  • Find out whether OpenAI's review still requires these exact names and response shape. If not, retire the adapters and use bm_search / bm_read for ChatGPT too.

Options

  1. Keep the 1.0 shape. Argue that the command enums are closed and declared, not dispatchers. No work now. Risk: a strict reviewer.
  2. Split grouped tools everywhere. One tool per operation for every client (bm_project_list, bm_project_create, bm_review_comment, ...). Still one shape, docs and skills change once. Cost: more tools, and it reverses the 1.0 consolidation. Needs an eval run (1.0 tools: eval harness v1 surface and v0.24.1 baseline #1828) to check tool selection does not get worse.
  3. Per-client profile (like the ChatGPT search / fetch adapters). Rejected: a second surface means a second set of docs, skills and manual pages to keep in sync. The ChatGPT adapters are the existing case of this and should move toward the common shape too.

Current decision

One common shape for all clients. For now that means keeping the 1.0 shape (option 1) and working toward folding the ChatGPT adapters into the common surface. Revisit the grouped tools only if Google's review pushes back, and then change the shape everywhere (option 2), not per client. If pushed, the first candidates are:

  • drop or rename bm_man (closest to banned discovery)
  • split bm_agent into read tools and an explicit run tool
  • set destructiveHint: true on bm_move

Related

Activity

  1. added
    enhancement
    on Nov 3, 2026
  2. claude commented on Nov 3, 2026

    @claude
    Contributor

    Claude finished @phernandez's task in 25s —— View job


    Triage

    • Type: Enhancement. This is a design-decision record, not a defect.
    • Component: MCP tools. bm_agent and bm_review are Cloud-only, but the decision applies to every client, so I did not apply the cloud label.
    • Priority: Low for now. The current decision is option 1 (keep the shape), and it is only revisited if Google's review pushes back. It becomes Medium or High if Gemini or Search AI Mode distribution is a launch goal.
    • Complexity: Option 1 needs no work. Option 2 (splitting the grouped tools) is Complex. It touches the tool registry, manual pages, skills, docs and server instructions. It also needs an eval baseline from 1.0 tools: eval harness v1 surface and v0.24.1 baseline #1828 to confirm tool selection doesn't get worse.
    • Duplicates: None found. Related issues are 1.0 MCP tool surface: one tool per job, bm_ names #1827 (the 1.0 tool surface) and 1.0 tools: eval harness v1 surface and v0.24.1 baseline #1828 (the eval harness).

    Notes

    • The three "if pushed" candidates are small and independent, so they could be done ahead of any review:
      • Set destructiveHint: true on bm_move. This is the cheapest change and the one the policy most directly requires: a move alters persistent state, and the policy says such tools must set the hint or require confirmation.
      • Drop or rename bm_man.
      • Split bm_agent into read tools and an explicit run tool.
    • The policy line that descriptions must not "reference other tools" could affect more than the tool shapes. The bm_* cross-references in tool descriptions and server instructions would need rewording under option 1 as well as option 2. A grep-based audit of those strings would show how many there are.
    • Consider adding a note on how to detect a "strict reviewer" outcome, such as a rejection reason from the Connected Apps console. That would turn "revisit if pushed" into a concrete trigger.

    I made no code changes, as this was triage only.

  3. changed the title [-]MCP tool shapes vs Google Connected Apps policy (grouped command tools)[/-] [+]One common MCP tool shape for every client (Google Connected Apps policy, ChatGPT adapters)[/+] on Nov 3, 2026
  4. added this to the nextup milestone on Nov 3, 2026
  5. phernandez commented on Nov 6, 2026

    @phernandez
    MemberAuthor

    Decision update (2026-11-06): we're moving from option 1 to option 2, unrolling the subcommand pattern into one tool per operation for every client. Chat clients handle the grouped command tools poorly.

    First piece: bm_agent plus agent templates as tools, in basicmachines-co/basic-memory-cloud#3011. Next come bm_project, bm_review, bm_schema and bm_edit, measured with the #1828 eval.

    🤖 Generated with Claude Code

  6. phernandez commented on Nov 12, 2026

    @phernandez
    MemberAuthor

    Closing. The tool split landed in #2068 (bm_project), #2069 (bm_schema) and #2071 (dropped memory://ai_assistant_guide).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions