{
  "sourceRepository": "FleetPayLLC/core",
  "sourceCommit": "368eda327e1573949322035b6c131d540fddd20d",
  "inheritanceSources": [
    {
      "path": "src/app/Mcp/Tools/BaseSupervisorTool.php",
      "sha256": "4a05365a7479f5b86e8074b1a2f3ba16f192015c923588185e6a25c8c772ae81"
    },
    {
      "path": "src/app/Mcp/Tools/Concerns/ResolvesCompany.php",
      "sha256": "7e59b36cf5c2db88b11cf56780fa836b6e3cf418b6a9c8a84f1beb811c1af3ee"
    }
  ],
  "status": "static-source-review-not-server-discovery",
  "notes": [
    "Selected read queries only. Not a tools/list response or proof of external availability.",
    "declaredInputSchema preserves declared primitive types. The reviewed PHP schema methods do not declare required fields; runtimeRequired records explicit execute guards separately.",
    "BaseSupervisorTool adds company_name/company_cnpj through toArray. Resolution precedence is company_id, company_cnpj, company_name. Panel sessions pin their company before resolution. runtimeRequired describes execute guards after resolution, not mandatory raw client arguments.",
    "Descriptions, runtime filtering and middleware authorization are documented on the localized reference page. RuntimeRequired does not grant access.",
    "Examples use fictional identifiers. They are tools/call method and params only, not a complete JSON-RPC transport request. No endpoint or credentials are provided.",
    "Output schemas and environment-specific discovery must be confirmed in sandbox before client generation."
  ],
  "tools": [
    {
      "id": "documents",
      "name": "fleetpay_core_documents_list",
      "source": "src/app/Mcp/Tools/Documents/ListDocumentsTool.php",
      "sourceSha256": "7ccf96ad6e097cf68cd52ad79d57967139d116468d4e1d36d94b8ba9947dc0e9",
      "declaredInputSchema": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "limit": {
            "type": "integer"
          },
          "cursor": {
            "type": "integer"
          }
        }
      },
      "inheritedInputProperties": {
        "company_name": {
          "type": "string"
        },
        "company_cnpj": {
          "type": "string"
        }
      },
      "runtimeRequired": [
        "company_id"
      ],
      "runtimeRequiredStage": "execute-after-company-resolution-and-authorization",
      "example": {
        "method": "tools/call",
        "params": {
          "name": "fleetpay_core_documents_list",
          "arguments": {
            "company_id": 101,
            "limit": 25
          }
        }
      }
    },
    {
      "id": "balances",
      "name": "fleetpay_core_account_balance",
      "source": "src/app/Mcp/Tools/Account/GetAccountBalanceTool.php",
      "sourceSha256": "bf3513daafb6a77196e7f7c4161eeac18c25eeed0174dd4b7126e3599bc0550a",
      "declaredInputSchema": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "integer"
          },
          "account_id": {
            "type": "integer"
          }
        }
      },
      "inheritedInputProperties": {
        "company_name": {
          "type": "string"
        },
        "company_cnpj": {
          "type": "string"
        }
      },
      "runtimeRequired": [
        "company_id"
      ],
      "runtimeRequiredStage": "execute-after-company-resolution-and-authorization",
      "example": {
        "method": "tools/call",
        "params": {
          "name": "fleetpay_core_account_balance",
          "arguments": {
            "company_id": 101,
            "account_id": 202
          }
        }
      }
    },
    {
      "id": "driver-payments",
      "name": "fleetpay_core_drivers_payments_list",
      "source": "src/app/Mcp/Tools/Drivers/GetDriverPaymentsTool.php",
      "sourceSha256": "3f3a0cec1f41fe6495f27408cbcb72137ba6fddd9be46138cb39af99fffc9ff6",
      "declaredInputSchema": {
        "type": "object",
        "properties": {
          "driver_id": {
            "type": "integer"
          },
          "company_id": {
            "type": "integer"
          }
        }
      },
      "inheritedInputProperties": {
        "company_name": {
          "type": "string"
        },
        "company_cnpj": {
          "type": "string"
        }
      },
      "runtimeRequired": [
        "company_id",
        "driver_id"
      ],
      "runtimeRequiredStage": "execute-after-company-resolution-and-authorization",
      "example": {
        "method": "tools/call",
        "params": {
          "name": "fleetpay_core_drivers_payments_list",
          "arguments": {
            "company_id": 101,
            "driver_id": 303
          }
        }
      }
    },
    {
      "id": "receivables",
      "name": "fleetpay_core_receivables_list",
      "source": "src/app/Mcp/Tools/Receivables/ListReceivablesTool.php",
      "sourceSha256": "c146d4664d4bafff993812fea6beb48368810ffdae9d5889208ab5b64719195e",
      "declaredInputSchema": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "integer"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "limit": {
            "type": "integer"
          },
          "cursor": {
            "type": "integer"
          }
        }
      },
      "inheritedInputProperties": {
        "company_name": {
          "type": "string"
        },
        "company_cnpj": {
          "type": "string"
        }
      },
      "runtimeRequired": [
        "company_id"
      ],
      "runtimeRequiredStage": "execute-after-company-resolution-and-authorization",
      "example": {
        "method": "tools/call",
        "params": {
          "name": "fleetpay_core_receivables_list",
          "arguments": {
            "company_id": 101,
            "from": "2026-09-01",
            "to": "2026-09-30",
            "limit": 25
          }
        }
      }
    }
  ]
}
