# Agent ignores tool parameter names on first call

**URL:** <https://community.openai.com/t/agent-ignores-tool-parameter-names-on-first-call/1378336>\
**Category:** ChatGPT Apps SDK\
**Tags:** chatgpt-app, mcp, apps-sdk\
**Created:** [April 1, 2026, 9:29pm UTC](https://community.openai.com/t/agent-ignores-tool-parameter-names-on-first-call/1378336 "2026-04-01T21:29:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![malteCondor](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@malteCondor](https://community.openai.com/u/malteCondor)\
**Post date:** [April 1, 2026, 9:29pm UTC](https://community.openai.com/t/agent-ignores-tool-parameter-names-on-first-call/1378336/1 "2026-04-01T21:29:21Z")

</div>

Hi there,

We are building an MCP app using the OpenAI Apps SDK and noticing that the ChatGPT agent frequently sends tool calls with incorrect parameter names. The tool schemas are defined correctly, but the agent “improvises” — it then retries with, mostly, the correct names on the second attempt, which leads to duplicate widget renders and a degraded user experience.

| Schema defines | Agent sends (1st attempt) | Agent sends (2nd attempt) |
| --- | --- | --- |
| `locationIds: ["NYC", "LAX"]` (array) | `locationId: "NYC"` (string) | `locationIds: ["NYC", "LAX"]` |
| `categoryIds: ["A", "B"]` | `categories: ["A", "B"]` | `categoryIds: ["A", "B"]` |
| `startDate` + `endDate` | `date: "2026-06-25"` | `startDate` + `endDate` |
| `userTypes: ["ADULT", "ADULT", "CHILD"]` | `adults: 2, children: 1` | still `adults: 2`, never uses `userTypes` |

As a workaround, we accept common aliases in the tool handler and normalize them server-side (e.g., if we receive `locationId` as a string, wrap it into `[locationId]`). This works but feels brittle and adds maintenance overhead.

We use the MCP TypeScript SDK with Zod schemas, registered via `server.registerTool()`. Each parameter has a type, description, and defaults where appropriate. The schemas are straightforward — flat objects, no deep nesting. Example structure:

```auto
server.registerTool("my_tool", {
  inputSchema: {
    itemIds: z.array(z.string()).describe("List of item IDs, e.g. ['abc', 'def']"),
    startDate: z.string().describe("Start date in YYYY-MM-DD format"),
    endDate: z.string().describe("End date in YYYY-MM-DD format"),
  },
  ...
});

```

Are there schema design guidelines that improve first-call accuracy?

Thank you!

---

<div class="post-metadata">

**Author:** ![OpenAI\_Support](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/openai_support/32/561845_2.png) [@OpenAI\_Support](https://community.openai.com/u/OpenAI_Support)\
**Post date:** [August 22, 2026, 4:24pm UTC](https://community.openai.com/t/agent-ignores-tool-parameter-names-on-first-call/1378336/2 "2026-08-22T16:24:42Z")

</div>

Hi there — thanks for documenting the tool-parameter behavior and the workaround you found.

Since this topic has been inactive for some time, we’re closing it now. If you’re still seeing incorrect parameter names on first tool calls with the current Apps SDK/MCP setup, please start a new topic with an updated reproduction, current SDK version, and relevant non-sensitive examples.

Thanks for being part of the community.

Avinash

---

<div class="post-metadata">

**Author:** ![avinash.api](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/avinash.api/32/741581_2.png) [@avinash.api](https://community.openai.com/u/avinash.api)\
**Post date:** [August 22, 2026, 4:25pm UTC](https://community.openai.com/t/agent-ignores-tool-parameter-names-on-first-call/1378336/3 "2026-08-22T16:25:02Z")

</div>

Closed on August 22, 2026, 4:25pm UTC



---

<div class="post-metadata">

**Author:** ![VeitB](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/veitb/32/712987_2.png) [@VeitB](https://community.openai.com/u/VeitB)\
**Post date:** [August 22, 2026, 5:14pm UTC](https://community.openai.com/t/agent-ignores-tool-parameter-names-on-first-call/1378336/4 "2026-08-22T17:14:43Z")

</div>

Unlisted on August 22, 2026, 5:14pm UTC


