---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps]
keyword: [Extend, Orchestration Builder, Orchestrate Connectors, Connectors]
nav: wcp_docs
parent_url: /wcp_docs/
title: Troubleshoot Custom Agent Actions
layout: subsection
---

### Prerequisites

-   Have a Developer, Collaborator, or Developer Support role on the app.
-   Security: These domains in the Agent System of Record functional area:

    -   <i>Agent Management Hub</i>
    -   <i>Setup: Agents</i>

-   To change security policies in step 9: <i>Security Configuration</i> domain in the System functional area.
-   To find the Workday IDs of resources in step 7: connect to the tenant on the Developer Site as a user with the security above. For more information, see:: [Connect API Explorers to a Tenant](https://developer.workday.com/documentation/GUID-49bcc9b8-b3d6-453b-b3da-5f5024effc44-enHYPHENus).


### Context

Use these steps when an agent doesn't list a Custom Agent Action, a call to it fails, or it doesn't return the result you expect.

An agent calls Custom Agent Actions through the Workday Agent Gateway. The agent is registered in the Agent System of Record. Its registration lists skills, and each skill lists the Custom Agent Actions and the Workday resources the agent can use: REST APIs, SOAP operations, reports and WQL data sources. In Agent Management Hub, each skill has an <b>Available To</b> list of security groups. A user in one of those groups signs in to Workday from the MCP client, and each step in the Custom Agent Action then runs as that user.

The MCP client is the application your agent runs in, such as Claude Code, Cursor or an agent framework. It connects to the Workday Agent Gateway using the Model Context Protocol (MCP), signs in, lists the agent's tools and calls them. To troubleshoot, use an MCP client that shows the raw tool list and results.

The MCP client lists a Custom Agent Action only when all of these are true: the app that contains it is deployed to the tenant, the action is registered in a skill of the agent, the skill is enabled, and the signed-in user is in a security group in the skill's <b>Available To</b>. If any of these is missing, the action isn't listed and no error is returned.

Check each of these in order, and stop at the first step that finds the problem.

### Steps

1.  Confirm the Custom Agent Action is deployed to the tenant.
    1.  In Orchestration Builder, click <b>Configure Request</b> on the orchestration's start step. On the <b>Custom Agent Actions</b> tab, note the <b>Action ID</b>.
    2.  Click <b>Validate</b> and confirm there are no errors.
    3.  On the Developer Site, open the app and select the <b>Promotions</b> tab. Confirm that the version containing the Custom Agent Action is deployed to the tenant in the MCP client's endpoint URL, `https://<Agent Gateway host>/<tenant name>/mcp`.

2.  Confirm the MCP client lists the Custom Agent Action.
    1.  In the MCP client, connect to `https://<Agent Gateway host>/<tenant name>/mcp` and sign in to Workday as a member of a security group in the skill's <b>Available To</b>.
    2.  List the agent's tools. The Custom Agent Action is listed under the identifier registered for it. Some MCP clients change characters in tool names, such as replacing `/` with `_`.

3.  If the Custom Agent Action isn't listed, confirm that:

    -   The app is deployed to the tenant. See step 1.
    -   The identifier registered in the skill is the Action ID.
    -   The skill is enabled in Agent Management Hub.
    -   The signed-in user is a member of a security group in <b>Available To</b>.

4.  Call the Custom Agent Action from the MCP client and read the result.
    1.  If the run started, note its Run ID. A successful result has it in _meta as X-Orchestrate-Id. A failed run adds lines with AppRefId, Orchestration and OrchId. OrchId is the Run ID.
    2.  If the result is an error with no Run ID, the call failed before the orchestration ran. Find the message in the table in step 10 below.

        <b>Note:</b> The agent calls the action by the name the tool list shows. Another valid identifier for the same action isn't accepted unless it's the one registered.


5.  Find the run on the <b>Orchestration Activity</b> page.
    1.  On the Developer Site, open the app, select <b>Orchestration Activity</b>, then select the orchestration.
    2.  Click <b>Filter</b>. In <b>Other IDs</b>, enter the <b>Run ID</b> from step 4. If you don't have a Run ID, filter by <b>Date Range</b>, <b>Tenant</b> or <b>Status</b>.

        <b>Note:</b> A status of <b>Completed</b> means the orchestration finished. It doesn't mean the action succeeded: an orchestration that handles its own error and returns it in the response also completes. A step error the orchestration doesn't handle gives <b>Completed With Errors</b>.


6.  Review the run.
    1.  Expand the run's <b>Current Status</b> and click <b>View Logs</b>, or <b>View Error Logs</b> if steps failed. Run Logs open filtered to the run.
    2.  To view only the messages your Log steps wrote, search for `LogStep`.
    3.  To view the successes and failures of each step, expand the <b>Run ID</b>, click <b>Open in Orchestration Builder</b>, and select <b>Summary Report</b>.

        <b>Note:</b> When you open Run Logs from Orchestration Builder, they show the last 15 minutes by default. Change the time range to include the run.


7.  If a Workday call in the run fails with a 403 error (REST), a 401 error (SOAP) or `The task submitted is not authorized`, but the orchestration runs successfully in Orchestration Builder, find the Workday ID of each resource the orchestration calls. Orchestration Builder runs the orchestration as you. Through an agent, each step can call only the resources registered on the agent.
    1.  List every Workday REST API, SOAP operation, report and WQL data source the orchestration calls, including in suborchestrations.
    2.  Connect to the tenant on the Developer Site and copy the access token. See Connect API Explorers to a Tenant.
    3.  In an HTTP client such as Bruno or Postman, send a GET request to the Agent Resource Search API on the Agent Gateway host for the tenant's region: `https://<Agent Gateway host>/asor/v1/agentResourceSearch`. Example: `https://us.agent.workday.com/asor/v1/agentResourceSearch` in the US. For more information, see: [GUID-e383be0b-45c4-42a1-b51f-74c4a4775747.dita](GUID-e383be0b-45c4-42a1-b51f-74c4a4775747.dita) in the Administrator Guide for the host in each region.
    4.  Include this header: `Authorization: Bearer <token>`. Replace `<token>` with the token you copied.
    5.  Narrow the search with query parameters: searchString (text in the resource name), toolType (REST or SOAP) and operationType (VIEW for GET, CREATE for POST, PATCH for PATCH).
    6.  In the response, copy the wid of each result. When more than one result has the same name, copy every wid.
    7.  For WQL, use the ID for each method the orchestration uses: 9749ba9ac47e1000073fdc1bc8a5001a for GET and 3e15b2a1676d10000c9572ea9cc264b3 for POST.
    8.  If the Agent Resource Search API doesn't return an operation, such as a SOAP operation that writes data, find its Workday ID with a custom report. For more information, see: [Register External Agents](/wcp_docs/GUID-267aee04-5657-4f75-9ddb-95a657f43d75.html) in the Administrator Guide.

        <b>Note:</b> The tenant's own REST host rejects the Developer Site access token. Use the Agent Gateway host.


8.  Register the missing resources on the agent.
    1.  Add the Workday ID of each missing resource to the skill in the agent definition. Send the agent definition again with the Agent System of Record API, POST /asor/v1/agentDefinition. Keep the same name, provider and version to update the existing agent. See Register External Agents in the Administrator Guide.
    2.  Sign in again from the MCP client to get a new access token.

        <b>Note:</b> An access token issued before you change the registration doesn't include the new resources.


9.  If a step fails for some users and not others, review their security.
    1.  In Agent Management Hub, open the agent. On the <b>Skills</b> tab, click <b>View Security</b>. The <b>View Security for Agent Skill</b> report lists each tool in the skill and the security policies that secure it.
    2.  Find rows where <b>Functional Status</b> is <b>Review Required</b> or <b>Config Required</b>. These policies don't include the security groups in <b>Available To</b>.
    3.  On each of those policies, add a security group the users belong to. For a domain, select <b>Domain</b> > <b>Edit Domain Security Policy Permissions</b> from the related actions menu.
    4.  Access the <b>Activate Pending Security Policy Changes</b> task.

        <b>Note:</b> Registering a resource on the agent doesn't grant users access to it. The signed-in user needs access to every resource the orchestration calls.


10. This table explains common issues and error message, and provides solutions:

<table><thead><tr><th>Issue</th><th>Cause and Solution</th></tr></thead><tbody><tr><td>The MCP client doesn't list the Custom Agent Action.</td><td>The app isn't deployed to the tenant, the action isn't registered in a skill of the agent, the skill isn't enabled, or the user isn't in <b>Available To</b>. No error is returned. See steps 1 and 2.</td></tr><tr><td><code>Unknown tool:</code> followed by a tool name.</td><td>The agent called a name that isn't registered on the agent. Call the action by the name the MCP client's tool list shows, or register the action under that name. See step 2.</td></tr><tr><td><code>The input arguments do not match the expected input schema for tool</code> followed by the orchestration name and the input at fault.</td><td>The agent sent an input that's missing, unknown or the wrong type. In each request property's description on the <b>Custom Agent Actions tab</b>, state its expected format and whether it's required.</td></tr><tr><td><code>Unexpected error executing tool:</code> followed by a tool name and an HTTP status.</td><td>The orchestration run failed. Find the run with the OrchId from the result. See steps 5 and 6.</td></tr><tr><td><code>Tool:</code> followed by a tool name and <code>completed with errors</code>.</td><td>The run finished, but steps recorded errors. Find the run with the OrchId from the result. See steps 5 and 6.</td></tr><tr><td>A Workday call fails with a 403 error (REST), a 401 error (SOAP), or <code>The task submitted is not authorized</code>, but the orchestration runs successfully in Orchestration Builder.</td><td>A Workday resource the orchestration calls isn't registered on the agent. Register it, then sign in again from the MCP client. See steps 7 and 8.</td></tr><tr><td>A step fails for some users and not others.</td><td>The users' security groups don't have access to a security policy that secures a resource the orchestration calls. See step 9.</td></tr><tr><td>The run status is <b>Completed</b>, but the agent reports a failure.</td><td>The orchestration handled an error and returned it in the response. Review the run's Run Logs. See step 6.</td></tr><tr><td><code>Response size too large</code>.</td><td>The response is larger than the limit stated in the message: 2 MB, or 1 MB when you enter <b>Response Properties</b> descriptions on the end step. Return less data.</td></tr><tr><td>The run status is <b>Timed Out</b>.</td><td>The orchestration ran longer than 5 minutes, the limit for synchronous orchestrations. Do less work in each call.</td></tr></tbody></table><br/>



### Result

The MCP client lists the Custom Agent Action, and the agent calls it successfully.

