Skip to content

Guides and role documents name tool calls the MCP surface does not expose (four places) #716

Backlog

Description

@naohito2000

Four places where a guide or a role document tells its reader to make a call the MCP surface does not expose. Found while reviewing #711; none of them originates on that branch, and two of them need a design call rather than a wording fix, so they are here instead of in that PR.

Verified against main at the time of writing. Each row quotes the instruction, then what the surface actually accepts.

Guide-side: the call is spelled as a CLI invocation

1. search_assets — sdpm/references/guides/aws-design.md:12-13 says search-assets --type general and search-assets -s aws; sdpm/references/guides/design-rules.md:32-33 repeats search-assets --type general. The tool is search_assets(query, source_filter, type_filter, theme_filter) (sdpm/sdpm/tools/__init__.py:150-158, servers/remote/server.py:827-835). Neither surface takes flags.

A composer following either guide calls no such tool, so the AWS icon-source decision and the emoji replacement path both dead-end.

Fix: search_assets(query="…", type_filter="general") and search_assets(query="…", source_filter="aws"). Keep the syntax in one guide and point at it from the other.

2. code_to_slide's include path and two options that do not exist — the tool saves includes/<name>.json and returns that path (sdpm/sdpm/tools/__init__.py:274-289; the remote surface agrees at servers/remote/server.py:1041-1042). sdpm/references/guides/slide-json-media.md:61-75 repeats the recipe but tells the composer to write "src": "code.json", and :77-82 advertises --font-size and --no-label, which are not in the signature at tools/__init__.py:263-273.

Following the guide produces an include path that names no written file, so the code block is missing at build time; passing either option fails validation.

Fix: use the returned include_path instead of spelling a second path, and drop the options list. The guide then owns only when and where to place the include.

Needs a design call: no runnable cloud path

3. start_translation is unbound on the remote surface — sdpm/references/workflows/orchestrator.md:29-31 routes every translation to start_translation(deck_id, language). The remote server answers "start_translation is not bound" because the workflow needs a checkout (servers/remote/server.py:440-446), and its start_presentation description names no translation route (:528-532).

The same role document is served on the cloud surface and tells the orchestrator to call a missing tool. A cloud translation request has no valid next step, and nothing in the document says this surface cannot do it.

Either scope the workflow line to the surfaces that have the tool, or bind a supported cloud translation entry before advertising it.

4. The remote analyze_template takes no layout — sdpm/references/guides/grid.md tells every slide-JSON composer to call analyze_template(template, layout="Title Only") and read the title placeholder from it. The remote tool exposes only template and deck_id (servers/remote/server.py:670-675), and the analyzer returns each layout as name plus optional notes, never placeholder boxes (sdpm/sdpm/engine/analyzer/__init__.py:37-42,51-56); the boxes come from a second call with layout=, which only the local tool has.

A cloud slide-JSON composer cannot make the prescribed call, and its start_composing analysis carries no placeholder geometry either, so it has no way to derive the usable full-slide area.

Either give the remote tool the local layout argument and layout_detail result, or have start_composing return the placeholder boxes and have the guide read that common field. #711 notes the gap in style-from-pptx as a stopgap ("the cloud's analyze_template does not take it, so a cloud derivation reads margins from Lens A instead"); grid still prescribes the call unconditionally.

Activity

  1. added
    bug
    kirocrew
    on Dec 2, 2026
  2. ShotaroKataoka commented on Dec 2, 2026

    @ShotaroKataoka
    Contributor

    🤖 KiroCrew automated comment (triage, not a maintainer decision)

    Verdict: ✅ Confirmed on main (c43f773) — thanks @naohito2000 for the careful write-up.

    # Confirmed at Size Note
    1 search-assets flags guides/aws-design.md:11-12, guides/design-rules.md:23 S Wording fix. #711 rewrites the design-rules line but keeps search-assets --type general.
    2 code_to_slide include guides/slide-json-media.md:65-82 vs tools/__init__.py:274-289 S Still wrong after #715: src should be the returned include_path (includes/<name>.json); --font-size / --no-label are not tool arguments. #654 and #691 also edit this guide.
    3 start_translation on remote workflows/orchestrator.md:31, servers/remote/server.py:445-446 S (scope) / L (cloud path) #710 already uses the "locally … / in the cloud …" split in the same file; the same shape fits here. #711 and #595 also edit orchestrator.md.
    4 remote analyze_template has no layout guides/grid.md:99,105 vs servers/remote/server.py:646-649 M #711 turns grid.md:105 into a role table but still prescribes layout="Title Only".

    Suggested fix: 1 and 2 are a small docs PR that can go now (rebase around #711). For 3, scoping the line to the surfaces that bind the tool is the smallest step; a cloud translation path is a separate feature. For 4, adding layout to the remote tool reuses the existing local argument and keeps one guide line true for both surfaces, so it looks smaller than a new start_composing field. 3 and 4 are design calls for the maintainer.

  3. naohito2000 commented on Dec 2, 2026

    @naohito2000
    ContributorAuthor

    Item 2 (code_to_slide's include path) is fixed on #711 at 18d5390, because main c43f773 (#715) made it a live defect rather than a wording problem: with src relative to the deck folder, slide-json-media's "src": "code.json" resolved to nothing and the code block was absent from the built slide with no error.

    slide-json-media now shows the include_path the call returns, and the CLI flags it advertised (-l, --font-size, --no-label, --font-family — none of which the MCP tool takes) are replaced by its actual parameters. TestTheCodeBlockRecipeUsesThePathTheToolReturns derives the path from a real code_to_slide call rather than quoting it.

    Still open here:

    1. search_assets spelled as a CLI call in aws-design and design-rules
    2. start_translation unbound on the remote surface while orchestrator.md routes every translation to it
    3. The remote analyze_template taking no layout, which grid prescribes unconditionally

    1 is a wording fix. 3 and 4 need the design call described above.

  4. naohito2000 commented on Dec 2, 2026

    @naohito2000
    ContributorAuthor

    Thanks — the triage made me re-check which lines this branch actually wrote, and two of the four turned out to be #711's rather than pre-existing. Both are fixed there at c052b17.

    Item 1, fixed. design-rules.md:32 is a line #711 rewrote, and it carried search-assets --type general into the new text; aws-design.md:12-13 predates the branch, but #711's new description for that file advertises exactly that asset-source decision. Both now read search_assets(query="…", type_filter="general") and search_assets(query="…", source_filter="aws"), and the [category/service] sentence names the tool's results rather than a CLI.

    Item 4, guide side fixed; the tool-side call is still yours. grid.md's role table is #711's own text, and its slide-JSON row prescribed layout="Title Only" to every composer. The remote tool's analysis is sdpm.engine.analyzer.analyze_template, which returns layout names with no layout_detail, so a cloud slide-JSON composer had no placeholder geometry and no way to ask for it. The row now states the fallback — slide_size for the height, the style's geometry tokens for the margins, checked against a preview — so it is true on both surfaces whichever way you decide.

    I left the tool change out deliberately: your note that adding layout to the remote tool reuses the existing local argument and keeps one guide line true for both surfaces reads right to me, and if you take that route the fallback sentence in the row comes back out. A contract test (TestTheFullSlideAreaRowIsTrueOnBothSurfaces) asserts that the local signature has layout, that the remote one does not, and that the row states the fallback — so it will fail the moment the remote tool gains the argument, which is the reminder to simplify the row.

    Item 3 stays open and untouched. orchestrator.md:31 is in no hunk of #711, so it is not mine to change there. The locally … / in the cloud … shape from #710 looks like the right smallest step.

    So this issue is down to items 3 and 4's tool side.

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

    bugkirocrew

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions