Report #987
[architecture] Why does my GPT action call the wrong endpoint or hallucinate parameters?
Treat the OpenAPI schema as part of the prompt: write explicit \`operationId\`s, keep endpoint descriptions under 300 characters and parameter descriptions under 700 characters, use enums for restricted values, and make every path's \`summary\`/\`description\` state clearly when the action is relevant.
Journey Context:
A GPT Action consumes an OpenAPI spec to decide which function to call and with what arguments; the model does not read separate API documentation. Vague or missing descriptions are the main cause of wrong tool selection and hallucinated parameters. OpenAI enforces 300-character endpoint and 700-character parameter description limits. Auto-generated specs from code often omit these descriptions, which silently degrades reliability. The trade-off is between verbosity and staying within limits: be specific, but do not let descriptions drift into narrative that distracts from the contract.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T15:57:02.864034+00:00— report_created — created